Completed
Last Updated: 14 Oct 2020 12:39 by ADMIN
John
Created on: 20 Mar 2020 10:44
Category: FileManager
Type: Bug Report
0
FileManager does not remove the added folder when the Create end point returns an error

Bug report

Related item with FM issues/enhancements: telerik/kendo#10473

Reproduction of the problem

  1. Set the Create end point to throw an error, e.g: throw new Exception("some message");
  2. Click the New Folder button in the FileManager

Current behavior

The FileManager's Error event fires, its dataSource throws a js exception:
kendo.all.js:165968 Uncaught Error: Error! The requested URL returned 500 - error

and the added folder is still displayed in the FileManager view.

Expected/desired behavior

The view is refreshed and the added folder is removed.

Environment

  • Kendo UI version: 2020.1.219
  • jQuery version: x.y
  • Browser: [all ]
2 comments
ADMIN
Veselin Tsvetanov
Posted on: 27 Mar 2020 07:40

Hi John,

Thank you for the additional information provided. I have just added the information that Destroy and Update scenarios reveal the same issue to the Bug item in our GitHub repository:

https://github.com/telerik/kendo-ui-core/issues/5680

Regards,
Veselin Tsvetanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
John
Posted on: 20 Mar 2020 11:58

Similarly, errors returned from the Destroy and Update endpoints are not processed correctly.

I've got to believe there has to be a workaround for these issues.  How else could any one use the FileManager widget?  It would only be usable in situations where all creates, all updates, and all deletions are always allowed.