Skip to content
Snippets Groups Projects
Verified Commit 275f0f07 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

revert changes in AbstractCaosDBServerResource

parent 7197d0b8
No related branches found
No related tags found
No related merge requests found
......@@ -408,8 +408,12 @@ public abstract class AbstractCaosDBServerResource extends ServerResource {
try {
getRequest().getAttributes().put("THROWN", t);
throw t;
} catch (final AuthenticationException | AuthorizationException e) {
return error(ServerMessages.NOT_PERMITTED, Status.CLIENT_ERROR_FORBIDDEN);
} catch (final AuthenticationException e) {
getResponse().setStatus(Status.CLIENT_ERROR_FORBIDDEN);
return null;
} catch (final AuthorizationException e) {
getResponse().setStatus(Status.CLIENT_ERROR_FORBIDDEN);
return null;
} catch (final Message m) {
return error(m, Status.CLIENT_ERROR_BAD_REQUEST);
} catch (final FileUploadException e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment