Jetzt verfügbar:  Berichte für DRACOONMehr Infos

perform-authorize is failing with 500 internal server error

Kommentare

7 Kommentare

  • Offizieller Kommentar
    Avatar
    Michael Netter

    Thank you for your valuable feedback. We strive to fix bugs as soon as possible.

    Can you please provide additional information:

    - Which client are you using and which version?

    - Are you using an SDK, and if so, which version?

    - Are you using https://dracoon.team as backend?

    - Can you please provide additional log files / stacktraces?

     

    Thank you in advance!

    Best regards

    Michael

    Aktionen für Kommentare Permalink
  • Avatar
    Akanksha Soni

    Hi Michael,

    We are not using any Dracoon SDK, we have integrated the Dracoon server with our product and yes we are using https://dracoon.team as backend.

    Following is the error we see :-

    HTTP Status 500 - Request processing failed; nested exception is java.lang.IllegalArgumentException: Model has no value for key '"action":"exchange","integration":"dracoon"'

    type Exception report

    message Request processing failed; nested exception is java.lang.IllegalArgumentException: Model has no value for key '"action":"exchange","integration":"dracoon"'

    description The server encountered an internal error that prevented it from fulfilling this request.

    exception

    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalArgumentException: Model has no value for key '"action":"exchange","integration":"dracoon"'

    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)

    org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:901)

    javax.servlet.http.HttpServlet.service(HttpServlet.java:650)

    org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:875)

    javax.servlet.http.HttpServlet.service(HttpServlet.java:731)

    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320)

    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)

    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:66)

    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)

    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)

    org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)

    org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357)

    org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270)

    com.dracoon.oauth.session.CookieSessionFilter.doFilter(CookieSessionFilter.java:109)

    com.dracoon.oauth.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:36)

    com.dracoon.oauth.multitenant.TenantResolverFilter.doFilter(TenantResolverFilter.java:69)

    org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)

     

    root cause

    java.lang.IllegalArgumentException: Model has no value for key '"action":"exchange","integration":"dracoon"'

    org.springframework.web.servlet.view.RedirectView.replaceUriTemplateVariables(RedirectView.java:387)

    org.springframework.web.servlet.view.RedirectView.createTargetUrl(RedirectView.java:346)

    org.springframework.web.servlet.view.RedirectView.renderMergedOutputModel(RedirectView.java:307)

    org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:316)

    org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1370)

    org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1116)

    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1055)

    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)

    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:998)

    org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:901)

    javax.servlet.http.HttpServlet.service(HttpServlet.java:650)

    org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:875)

    javax.servlet.http.HttpServlet.service(HttpServlet.java:731)

    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320)

    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)

    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:66)

    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)

    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)

    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)

    org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)

    org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)

    org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357)

    org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270)

    com.dracoon.oauth.session.CookieSessionFilter.doFilter(CookieSessionFilter.java:109)

    com.dracoon.oauth.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:36)

    com.dracoon.oauth.multitenant.TenantResolverFilter.doFilter(TenantResolverFilter.java:69)

    org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)

    note The full stack trace of the root cause is available in the Apache Tomcat/7.0.76 logs.

    Apache Tomcat/7.0.76

    0
    Aktionen für Kommentare Permalink
  • Avatar
    Michael Netter

    Thank you for your detailed error report. To identify the root cause, could you please describe the steps you conduct that lead to this error?

    0
    Aktionen für Kommentare Permalink
  • Avatar
    Akanksha Soni

    1) Redirect the client Dracoon login page using https://dracoon.team/oauth/login

    2) Enter the email-id and password for user and click login

    3) Click on Authorize

    Expected Behavior is, it should allow the user to login but it fails

    PFA are the screenshots

    0
    Aktionen für Kommentare Permalink
  • Avatar
    Florian Scheuer

    Thank you, we can reproduce this issue and are working on a solution.

    Best regards,
    Florian

    0
    Aktionen für Kommentare Permalink
  • Avatar
    Michael Netter

    I'm happy to inform you that a fix will be available next monday. There are no changes needed on your behalf.

    0
    Aktionen für Kommentare Permalink
  • Avatar
    Akanksha Soni

    Thanks Michael and Florian for resolving this issue. 

    0
    Aktionen für Kommentare Permalink

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.