You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new study
Import DICOM
At step 3, clinical-context, select newly created study
Error is thrown:
studies | 2024-12-10T13:59:02.077Z ERROR 1 --- [mcat-handler-62] o.s.n.s.c.GlobalExceptionHandler : Unexpected error in the rest service.
studies |
studies | java.lang.IllegalArgumentException: Failed to evaluate expression 'hasRole('ADMIN') or @studySecurityService.hasRightOnSubjectsForOneStudy(returnObject, 'CAN_SEE_ALL')'
studies | at org.springframework.security.access.expression.ExpressionUtils.evaluateAsBoolean(ExpressionUtils.java:33)
studies | at org.springframework.security.authorization.method.PostAuthorizeAuthorizationManager.check(PostAuthorizeAuthorizationManager.java:70)
studies | at org.springframework.security.authorization.method.PostAuthorizeAuthorizationManager.check(PostAuthorizeAuthorizationManager.java:40)
studies | at org.springframework.security.config.annotation.method.configuration.DeferringObservationAuthorizationManager.check(DeferringObservationAuthorizationManager.java:47)
studies | at org.springframework.security.authorization.method.AuthorizationManagerAfterMethodInterceptor.attemptAuthorization(AuthorizationManagerAfterMethodInterceptor.java:178)
studies | at org.springframework.security.authorization.method.AuthorizationManagerAfterMethodInterceptor.invoke(AuthorizationManagerAfterMethodInterceptor.java:123)
studies | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
studies | at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:765)
studies | at org.springframework.security.authorization.method.AuthorizationManagerBeforeMethodInterceptor.invoke(AuthorizationManagerBeforeMethodInterceptor.java:198)
studies | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
studies | at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:765)
studies | at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:717)
studies | at org.shanoir.ng.subject.service.SubjectServiceImpl$$SpringCGLIB$$0.findAllSubjectsOfStudyAndPreclinical(<generated>)
studies | at org.shanoir.ng.subject.controler.SubjectApiController.findSubjectsByStudyId(SubjectApiController.java:180)
studies | at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
studies | at java.base/java.lang.reflect.Method.invoke(Unknown Source)
studies | at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:351)
studies | at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196)
studies | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
studies | at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:765)
studies | at org.springframework.security.authorization.method.AuthorizationManagerBeforeMethodInterceptor.invoke(AuthorizationManagerBeforeMethodInterceptor.java:198)
studies | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
studies | at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:765)
studies | at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:717)
studies | at org.shanoir.ng.subject.controler.SubjectApiController$$SpringCGLIB$$0.findSubjectsByStudyId(<generated>)
studies | at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
studies | at java.base/java.lang.reflect.Method.invoke(Unknown Source)
studies | at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:261)
studies | at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:189)
studies | at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:118)
studies | at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:917)
studies | at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:829)
studies | at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
studies | at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1089)
studies | at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:979)
studies | at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014)
studies | at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:903)
studies | at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:564)
studies | at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:885)
studies | at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658)
studies | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:205)
studies | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149)
studies | at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
studies | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174)
studies | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149)
studies | at org.shanoir.ng.utils.MDCFilter.doFilter(MDCFilter.java:32)
studies | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174)
studies | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149)
studies | at org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:108)
studies | at org.springframework.security.web.FilterChainProxy.lambda$doFilterInternal$3(FilterChainProxy.java:231)
studies | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:365)
studies | at org.springframework.security.web.access.intercept.AuthorizationFilter.doFilter(AuthorizationFilter.java:100)
studies | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374)
studies | at org.shanoir.ng.utils.MDCFilter.doFilter(MDCFilter.java:32)
studies | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374)
studies | at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:126)
studies | at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:120)
studies | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374)
studies | at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:131)
studies | at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:85)
studies | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374)
studies | at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:100)
studies | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374)
studies | at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:179)
studies | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374)
studies | at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
studies | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374)
studies | at org.springframework.security.oauth2.server.resource.web.authentication.BearerTokenAuthenticationFilter.doFilterInternal(BearerTokenAuthenticationFilter.java:145)
studies | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
studies | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374)
studies | at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:107)
studies | at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:93)
studies | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374)
studies | at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:91)
studies | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
studies | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374)
studies | at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:90)
studies | at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:75)
studies | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
studies | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374)
studies | at org.springframework.security.web.context.SecurityContextHolderFilter.doFilter(SecurityContextHolderFilter.java:82)
studies | at org.springframework.security.web.context.SecurityContextHolderFilter.doFilter(SecurityContextHolderFilter.java:69)
studies | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374)
studies | at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:62)
studies | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
studies | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374)
studies | at org.springframework.security.web.session.DisableEncodeUrlFilter.doFilterInternal(DisableEncodeUrlFilter.java:42)
studies | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
studies | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:374)
studies | at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:233)
studies | at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:191)
studies | at org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:113)
studies | at org.springframework.web.servlet.handler.HandlerMappingIntrospector.lambda$createCacheFilter$3(HandlerMappingIntrospector.java:195)
studies | at org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:113)
studies | at org.springframework.web.filter.CompositeFilter.doFilter(CompositeFilter.java:74)
studies | at org.springframework.security.config.annotation.web.configuration.WebMvcSecurityConfiguration$CompositeFilterChainProxy.doFilter(WebMvcSecurityConfiguration.java:225)
studies | at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:352)
studies | at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:268)
studies | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174)
studies | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149)
studies | at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
studies | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
studies | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174)
studies | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149)
studies | at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
studies | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
studies | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174)
studies | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149)
studies | at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
studies | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
studies | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174)
studies | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149)
studies | at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:91)
studies | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
studies | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174)
studies | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149)
studies | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
studies | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
studies | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
studies | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115)
studies | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
studies | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
studies | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:340)
studies | at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:391)
studies | at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
studies | at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:896)
studies | at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1744)
studies | at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
studies | at java.base/java.lang.VirtualThread.run(Unknown Source)
studies | Caused by: org.springframework.expression.ExpressionInvocationTargetException: A problem occurred when trying to execute method 'hasRightOnSubjectsForOneStudy' on object of type [org.shanoir.ng.study.security.StudySecurityService]
studies | at org.springframework.expression.spel.ast.MethodReference.throwSimpleExceptionIfPossible(MethodReference.java:253)
studies | at org.springframework.expression.spel.ast.MethodReference.getValueInternal(MethodReference.java:138)
studies | at org.springframework.expression.spel.ast.MethodReference$MethodValueRef.getValue(MethodReference.java:400)
studies | at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:98)
studies | at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:212)
studies | at org.springframework.expression.spel.ast.OpOr.getBooleanValue(OpOr.java:56)
studies | at org.springframework.expression.spel.ast.OpOr.getValueInternal(OpOr.java:51)
studies | at org.springframework.expression.spel.ast.OpOr.getValueInternal(OpOr.java:37)
studies | at org.springframework.expression.spel.ast.SpelNodeImpl.getTypedValue(SpelNodeImpl.java:119)
studies | at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:309)
studies | at org.springframework.security.access.expression.ExpressionUtils.evaluateAsBoolean(ExpressionUtils.java:30)
studies | ... 128 common frames omitted
studies | Caused by: org.shanoir.ng.shared.exception.EntityNotFoundException: Cannot find any subject with id in []
studies | at org.shanoir.ng.study.security.StudySecurityService.hasRightOnSubjectsForOneStudy(StudySecurityService.java:248)
studies | at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
studies | at java.base/java.lang.reflect.Method.invoke(Unknown Source)
studies | at org.springframework.expression.spel.support.ReflectiveMethodExecutor.execute(ReflectiveMethodExecutor.java:139)
studies | at org.springframework.expression.spel.ast.MethodReference.getValueInternal(MethodReference.java:124)
studies | ... 137 common frames omitted
The text was updated successfully, but these errors were encountered:
Create a new study
Import DICOM
At step 3, clinical-context, select newly created study
Error is thrown:
The text was updated successfully, but these errors were encountered: