Developer forum

Forum » Dynamicweb 10 » Creating directory that already exists returns 500 error

Creating directory that already exists returns 500 error

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

When adding a new folder under Digital Assets that already exists, you get a JSON 500 error instead of a friendly warning.

Steps to reproduce

  1. Click Digital Assets
  2. Under Media Files click the Plus icon
  3. Enter Test2 as the directory name
  4. Click OK.
  5. Click Digital Assets again
  6. Under Media Files click the Plus icon
  7. Enter Test2 as the directory name again
  8. Click OK again.

Actual results

                A JSON 500 error appears: {"status":"error","message":"The file or folder with name \"Test2\" already exists","exception":null,"model":null,"modelIdentifier":null,"resultActions":[]}

Expected results:

                A warning dialog about the duplicate folder name is shown.


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

tested with last DW10 admin, I don't see the exception but no warning shown anyaway. I've created new task 10474 against it. Thanks.

BR, Oleg QA  

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Thanks Oleg!

 

You must be logged in to post in the forum