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 { ...@@ -408,8 +408,12 @@ public abstract class AbstractCaosDBServerResource extends ServerResource {
try { try {
getRequest().getAttributes().put("THROWN", t); getRequest().getAttributes().put("THROWN", t);
throw t; throw t;
} catch (final AuthenticationException | AuthorizationException e) { } catch (final AuthenticationException e) {
return error(ServerMessages.NOT_PERMITTED, Status.CLIENT_ERROR_FORBIDDEN); getResponse().setStatus(Status.CLIENT_ERROR_FORBIDDEN);
return null;
} catch (final AuthorizationException e) {
getResponse().setStatus(Status.CLIENT_ERROR_FORBIDDEN);
return null;
} catch (final Message m) { } catch (final Message m) {
return error(m, Status.CLIENT_ERROR_BAD_REQUEST); return error(m, Status.CLIENT_ERROR_BAD_REQUEST);
} catch (final FileUploadException e) { } catch (final FileUploadException e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment