Completed
Last Updated: 20 Dec 2023 16:54 by ADMIN
Created by: Andrew
Comments: 0
Category: FileManager
Type: Bug Report
0

Bug report

When using the FileManager initialized using the TagHelper and renaming nested folders a 404 error is thrown.

Reproduction of the problem

  1. Run the FileManager TagHelper Demo
  2. Create several nested folders
  3. Rename a parent folder
  4. Rename child folders of the renamed parent folder
  5. Rename the same parent folder

Current behavior

A 404 - File or directory not found is returned

Expected/desired behavior

The folder should be renamed

Environment

  • Kendo UI version: 2020.2.617
  • Browser: [all ]
Completed
Last Updated: 26 May 2022 06:44 by ADMIN
Release 2022.R2.SP.next

Bug report

When the FileManager is defined using TagHelpers the defined schema is not serialized

Reproduction of the problem

The following FileManager definition:

<kendo-filemanager name="filemanager" upload-url="@Url.Action("FileManagerUpload", "FileManager")">
    <filemanager-datasource>
        <transport>
            <read url="@Url.Action("FileManagerRead", "FileManager")" type="POST" />
            <create url="@Url.Action("FileManagerCreate", "FileManager")" type="POST" />
            <destroy url="@Url.Action("FileManagerDestroy", "FileManager")" type="POST" />
            <update url="@Url.Action("FileManagerUpdate", "FileManager")" type="POST" />
        </transport>
        <schema>
            <filemanager-model id="path" has-children="hasDirectories">
                <fields>
                    <field name="path" type="string" from="Path"></field>
                    <field name="name" type="string" from="Name"></field>
                    <field name="extension" type="string" from="Extension"></field>
                    <field name="created" type="date" from="Created"></field>
                    <field name="createdUtc" type="date" from="CreatedUtc"></field>
                    <field name="modified" type="date" from="Modified"></field>
                    <field name="modifiedUtc" type="date" from="ModifiedUtc"></field>
                    <field name="size" type="number" from="Size"></field>
                </fields>
            </filemanager-model>
        </schema>
    </filemanager-datasource>
    <toolbar>
        <items>
            <item name="createFolder" />
            <item name="upload" />
            <item name="sortDirection" />
            <item name="sortField" />
            <item name="changeView" />
            <item name="spacer" />
            <item name="details" />
            <item name="search" />
        </items>
    </toolbar>
</kendo-filemanager>

generates the following script, without a schema definition:

<script> 
  kendo.syncReady(function() {
    jQuery("#filemanager").kendoFileManager({
        "uploadUrl": "/FileManager/FileManagerUpload",
        "toolbar": {
            "items": [{
                "name": "createFolder"
            }, {
                "name": "upload"
            }, {
                "name": "sortDirection"
            }, {
                "name": "sortField"
            }, {
                "name": "changeView"
            }, {
                "name": "spacer"
            }, {
                "name": "details"
            }, {
                "name": "search"
            }]
        },
        "dataSource": {
            "schema": {
                "model": {
                    "id": "path",
                    "hasChildren": "hasDirectories"
                }
            },
            "transport": {
                "destroy": {
                    "type": "POST",
                    "url": "/FileManager/FileManagerDestroy"
                },
                "read": {
                    "type": "POST",
                    "url": "/FileManager/FileManagerRead"
                },
                "update": {
                    "type": "POST",
                    "url": "/FileManager/FileManagerUpdate"
                },
                "create": {
                    "type": "POST",
                    "url": "/FileManager/FileManagerCreate"
                }
            }
        }
    });
}); 
</script>

Expected/desired behavior

The FileManager DataSource schema should be serialized

Environment

  • Kendo UI version: 2021.2.616
  • Browser: [all]
Completed
Last Updated: 30 Aug 2023 14:07 by ADMIN
Release R2.2023-Increment.1(15.Mar.2023)

Bug report

The AllowedExtensions configuration for the Upload in the FileManager is not exposed and allowed extensions cannot be configured.

Reproduction of the problem

The following configuration for the Upload in a FileManaget is not supported:

@(Html.Kendo().FileManager().Name("filemanager")
    .Upload(upld=>upld.Validation(val=>val.AllowedExtensions(new string[] { ".doc" , ".jpg" })))
)

while it is available in a standalone Upload component:

    @(Html.Kendo().Upload()
        .Name("files")
        .Validation(validation => validation.AllowedExtensions(new string[] { ".pdf" }))
    )

Expected/desired behavior

The allowed extensions should be configurable in the FileManager

Environment

  • Kendo UI version: 2023.1.117
  • Browser: [all]
Completed
Last Updated: 19 May 2023 08:01 by ADMIN
Release R2.2023-Increment.3(7.June.2023)

Bug report

File Manager's built-in Search tool filters incorrectly when the input is cleared.

Regression introduced with 2023.1.314

Reproduction of the problem

  1. Open the following dojo.
  2. Type inside the rendered Search input "Doc".
  3. Clear the Search input and observe the behavior.

Current behavior

Clearing the Search input's value does not re-render the existing folders and files.

Expected/desired behavior

Clearing the Search input's value should re-render the existing folders and files.

Environment

  • Kendo UI version: 2023.1.314
  • Browser: [all]
Completed
Last Updated: 25 Aug 2023 11:50 by ADMIN

Bug report

When setting the <dialogs> and/or <messages> configuration of the FileManager TagHelper

<dialogs>
	<upload />
	<rename-prompt />
	<delete-confirm />
	<move-confirm />
</dialogs>
<messages>
	<dialogs>
		<upload clear="Clear files" />
		<move-confirm />
		<delete-confirm />
		<rename-prompt cancel="Do not rename" ok-text="Yes rename"/>
		<export-as-dialog />
		<search />
	</dialogs>
</messages>

an error is is shown and the configuration cannot be compiled:
RZ2011 Tag helpers 'Kendo.Mvc.TagHelpers.FileManagerDialogsUploadSettingsTagHelper' and 'Kendo.Mvc.TagHelpers.FileManagerMessagesDialogsUploadSettingsTagHelper' targeting element 'upload' must not expect different TagStructure values.

Reproduction of the problem

Add the above configuration an the try to compile the FileManager TagHelper configuration.

Expected/desired behavior

No error should be thrown and a valid configuration should be compiled.

Environment

  • Kendo UI version: 2023.2.606
  • Browser: [all]