Hi,
I am trying to implement the Web Report Designer using version 16.1.22.511 under .NET Framework 4.8.
I have a custom IDefinitionStorage, but the behaviour is exactly the same using the native FileDefinitionStorage.
I have only one report named Report1.trdp. When I try and upload two reports in the Assets Manager, Report2.trdp and Report1.trdp, the following method gets called twice.
Task<ResourceFileModel> GetModelAsync(string uri)
Please see 1_upload_report1.png and 2_upload_report2.png to see what it returns, and 3_upload_results.png to see the result (it successfully uploaded Report2.trdp, and failed to upload Report1.trdp because it already exists).
Now I would have expected the same kind of behaviour when trying to create new reports, ie allow reports that don't match by name an existing one and reject reports that do or at least warn the user.
When I try and create a new report named Report2.trdp, the following method is called (see 4_new_report2.png)
Task<byte[]> GetAsync(string resourceName)
It returns null because no such report already exists, then the following method is called
Task<ResourceFileModel> SaveAsync(SaveResourceModel model, byte[] resource)
When I try and create Report1.trdp however, the first method (GetAsync) returns an actual byte[] (see 5_new_report1.png) and an exception is thrown by Telerik.WebReportDesigner.Services (see 6_new_report1.png). If I continue the execution, the second method (SaveAsync) eventually gets called, and my Report1.trdp gets overwritten by the new report.
I've also included some details, see 7_new_report1.png.
Thanks in advance,
Arthur