If a user is member of an organisation in Access Dashboard, but the IdP for that Organisation is removed in Manage, Dashboard throws an exception and the user cannot log in anymore (even if there are other valid IdP's for this user).
12:12:11.506 [http-nio-8080-exec-2] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.web.client.HttpClientErrorException$NotFound: 404 Not Found on GET request for "https://manage.test.surfconext.nl/manage/api/internal/metadata/saml20_idp/c39d035b-a493-429c-9ea5-6711c45c90e3": "{"timestamp":"2026-07-06T10:12:11.496+00:00","status":404,"error":"Not Found","path":"/internal/metadata/saml20_idp/c39d035b-a493-429c-9ea5-6711c45c90e3","exception":"manage.exception.ResourceNotFoundException"}"] with root cause
org.springframework.web.client.HttpClientErrorException$NotFound: 404 Not Found on GET request for "https://manage.test.surfconext.nl/manage/api/internal/metadata/saml20_idp/c39d035b-a493-429c-9ea5-6711c45c90e3": "{"timestamp":"2026-07-06T10:12:11.496+00:00","status":404,"error":"Not Found","path":"/internal/metadata/saml20_idp/c39d035b-a493-429c-9ea5-6711c45c90e3","exception":"manage.exception.ResourceNotFoundException"}"
at org.springframework.web.client.HttpClientErrorException.create(HttpClientErrorException.java:112)
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:186)
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:147)
at access.manage.ResilientErrorHandler.handleError(ResilientErrorHandler.java:32)
at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:953)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:902)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:801)
at org.springframework.web.client.RestTemplate.getForEntity(RestTemplate.java:442)
at access.manage.RemoteManage.providerDetails(RemoteManage.java:86)
at access.manage.RemoteManage.providerByManageIdentifier(RemoteManage.java:96)
at access.api.UserController.lambda$me$10(UserController.java:201)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at access.api.UserController.me(UserController.java:197)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:360)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:380)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:728)
at access.api.UserController$$SpringCGLIB$$0.me(<generated>)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:258)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:191)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:118)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:991)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:896)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1089)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:979)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:903)
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:564)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:885)
If a user is member of an organisation in Access Dashboard, but the IdP for that Organisation is removed in Manage, Dashboard throws an exception and the user cannot log in anymore (even if there are other valid IdP's for this user).
Exception: