Uploaded image for project: 'Gateway'
  1. Gateway
  2. GTWY-2333

Group registration in remote gateway group results in ISE

XMLWordPrintable

    • Icon: Defect Defect
    • Resolution: Done
    • Icon: Major Major
    • 1.3.0-RC1, 1.3.0
    • 1.3.0-M4
    • None
    • None

      The workflow for a user request for group membership may result in an internal server error.

      Steps to reproduce.

      Preconditions:

      Identify a resource on the User's home gateway that requires membership in a remote gateway group. Example:

        http://esg.prototype.ucar.edu/browse/viewDataset.htm?datasetId=b9df239f-ab0c-11df-a9e6-00c0f03d5b7c

      Be sure to be logged out of both home (esg) and remote (esg2) gateway.

      1) login to home gateway (esg.prototype)
      2) navigate to CMIP5-research authorized dataset:
      3) click on "Download Files"
      4) Select CMIP5 research group and click "subscribe".
      5) esg2 login page: login w/ esg openid (eg: home gw openid)
      6) esg2 "Group Registration" page: enter details and click "Subscribe"
      7) esg2 "Group Registation Complete" page: click "Done"
      8) an "Internal Server Error" page is generated on esg2.

      Expected result: "Done" should have re-directed to the original dataset "Download Files" target on esg.prototype.

      Note: Same result (ISE) occurs if user is "new" to the remote gateway (esg2) or if the user has logged in previously and registered and is known to the remote gateway. Further, same result if user is logged in initially at remote gateway.

      Overall the workflow appears to be working properly. The final redirect step is failing and may not be sensitive to the originating gateway URL.

      Exception trace from remote gateway (esg2) tomcat log:

      Caused by: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is sgf.gateway.service.metadata.api.ObjectNotFoundException: The resource you requested could not be found. Type: sgf.gateway.model.metadata.DatasetImpl Identifier: b9df239f-ab0c-11df-a9e6-00c0f03d5b7c
              at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:656)
              at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at sgf.gateway.web.filters.metrics.ClickstreamFilter.doFilter(ClickstreamFilter.java:75)
              at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
              at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at sgf.gateway.web.filters.metrics.UserAgentFilter.doFilter(UserAgentFilter.java:86)
              at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
              at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:366)
              at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
              at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter.doFilter(AbstractPreAuthenticatedProcessingFilter.java:89)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:109)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:167)
              at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
              at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at sgf.gateway.web.filters.exception.UnhandledExceptionFilter.doFilter(UnhandledExceptionFilter.java:99)
              ... 14 more
      Caused by: sgf.gateway.service.metadata.api.ObjectNotFoundException: The resource you requested could not be found. Type: sgf.gateway.model.metadata.DatasetImpl Identifier: b9df239f-ab0c-11df-a9e6-00c0f03d5b7c
              at sgf.gateway.service.metadata.impl.spring.MetadataServiceImpl.getDataset(MetadataServiceImpl.java:342)
              at sgf.gateway.web.controllers.browse.ViewDatasetFilesLicenseAgreementController.formBackingObject(ViewDatasetFilesLicenseAgreementController.java:98)
              at org.springframework.web.servlet.mvc.AbstractFormController.getErrorsForNewForm(AbstractFormController.java:361)
              at org.springframework.web.servlet.mvc.AbstractFormController.showNewForm(AbstractFormController.java:341)
              at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:281)
              at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
              at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
              at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
              at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
              at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
              ... 63 more
      2011-04-25 07:19:04,302 sgf.gateway.service.messaging.impl.handler.LoggingExceptionHandler [ERROR]: An exception occurred.
      sgf.gateway.exceptions.UnhandledException: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is sgf.gateway.service.metadata.api.ObjectNotFoundException: The resource you requested could not be found. Type: sgf.gateway.model.metadata.DatasetImpl Identifier: b9df239f-ab0c-11df-a9e6-00c0f03d5b7c
              at sgf.gateway.web.filters.exception.UnhandledExceptionFilter.setupExceptionDetails(UnhandledExceptionFilter.java:187)
              at sgf.gateway.web.filters.exception.UnhandledExceptionFilter.reportException(UnhandledExceptionFilter.java:170)
              at sgf.gateway.web.filters.exception.UnhandledExceptionFilter.doHandleException(UnhandledExceptionFilter.java:154)
              at sgf.gateway.web.filters.exception.UnhandledExceptionFilter.handleException(UnhandledExceptionFilter.java:127)
              at sgf.gateway.web.filters.exception.UnhandledExceptionFilter.doFilter(UnhandledExceptionFilter.java:105)
              at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
              at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is sgf.gateway.service.metadata.api.ObjectNotFoundException: The resource you requested could not be found. Type: sgf.gateway.model.metadata.DatasetImpl Identifier: b9df239f-ab0c-11df-a9e6-00c0f03d5b7c
              at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:656)
              at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at sgf.gateway.web.filters.metrics.ClickstreamFilter.doFilter(ClickstreamFilter.java:75)
              at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
              at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at sgf.gateway.web.filters.metrics.UserAgentFilter.doFilter(UserAgentFilter.java:86)
              at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
              at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:366)
              at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
              at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter.doFilter(AbstractPreAuthenticatedProcessingFilter.java:89)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:109)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
              at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:167)
              at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
              at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at sgf.gateway.web.filters.exception.UnhandledExceptionFilter.doFilter(UnhandledExceptionFilter.java:99)
              ... 14 more
      Caused by: sgf.gateway.service.metadata.api.ObjectNotFoundException: The resource you requested could not be found. Type: sgf.gateway.model.metadata.DatasetImpl Identifier: b9df239f-ab0c-11df-a9e6-00c0f03d5b7c
              at sgf.gateway.service.metadata.impl.spring.MetadataServiceImpl.getDataset(MetadataServiceImpl.java:342)
              at sgf.gateway.web.controllers.browse.ViewDatasetFilesLicenseAgreementController.formBackingObject(ViewDatasetFilesLicenseAgreementController.java:98)
              at org.springframework.web.servlet.mvc.AbstractFormController.getErrorsForNewForm(AbstractFormController.java:361)
              at org.springframework.web.servlet.mvc.AbstractFormController.showNewForm(AbstractFormController.java:341)
              at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:281)
              at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
              at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
              at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
              at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
              at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
              ... 63 more

              nhook Nathan Hook
              ejn Eric Nienhouse
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: