clarin-dspace icon indicating copy to clipboard operation
clarin-dspace copied to clipboard

BadRequestException results in Internal Server Error (500)

Open kuchtiak-ufal opened this issue 9 months ago • 0 comments

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;

kuchtiak-ufal avatar Apr 01 '25 15:04 kuchtiak-ufal