clarin-dspace
clarin-dspace copied to clipboard
BadRequestException results in Internal Server Error (500)
Examples:
GET https://dspace-dev.ufal.mff.cuni.cz/repository/server/api/submission/workspaceitems/search/shareToken?shareToken=invalid_token
or:
POST https://dspace-dev.ufal.mff.cuni.cz/repository/server/api/core/clarinusermetadata/manage?bitstreamUUID=7cc8d2a8-d81b-484d-8b81-e03afeaa0ff8
(with empty payload, when the email is required)
This happens in all cases, when the BadRequestException is thrown in dspace-server-webapp. This is because javax.ws.rs.BadRequestException is not mapped to HttpStatus.BAD_REQUEST;