dsp-api icon indicating copy to clipboard operation
dsp-api copied to clipboard

Bulk-import error report is too vague

Open mrivoal opened this issue 6 years ago • 3 comments

Hello there!

I am currently testing the bulk-import. In fact, the test addresses a 2500 lines XML file and I find the error messages quite vague.

{"status":11,"error":"org.knora.webapi.BadRequestException: Invalid text: ''"}

or

{"status":11,"error":"org.knora.webapi.BadRequestException: Resource  is the target of a link, but was not provided in the request"}

At some point, it might be a good idea to provide a bit more details on these errors so that he/she can find them more easily.

mrivoal avatar Nov 07 '18 15:11 mrivoal

The second error looks like an error-handling bug. The first one needs improvement, too. Can you attach the XML file along with the ontologies and admin data so I can reproduce this?

benjamingeer avatar Nov 07 '18 15:11 benjamingeer

Here it is. You won't have all the data though, because data include a lot of images. Not sure it you can reproduce this without. reforme-geneve.zip

BTW, I already found the errors. I just wanted to let you know that the error messages might need improvements.

mrivoal avatar Nov 07 '18 15:11 mrivoal

Thanks. I will need to be able to reproduce this to understand why the error messages are incorrect. Will try.

benjamingeer avatar Nov 07 '18 15:11 benjamingeer