-
Type: Bug
-
Status: Resolved
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: Technical / Transverse
-
Epic Link:
-
Tags:
-
Team:NOS
-
Sprint:NOS 11.1.30 - 2020-03 2, NOS 11.1.33 - 2020-05 1
Gitty nodes are logging this exception:
java.lang.IllegalStateException: Insufficient permissions
at com.nuxeo.connect.security.ConnectAuthHelper.ensureCorrectUser(ConnectAuthHelper.java:248)
at com.nuxeo.connect.rest.impl.UserRightResourceImpl.getRights(UserRightResourceImpl.java:48)
at sun.reflect.GeneratedMethodAccessor299.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
at
...
Need to investigate if this exception worth to be checked/logged or if we can improve it.
It seems to me we miss an Exception handler for this exception, and we need to ensure the response is correctly sent if raised.