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

OpenID Login fails after second try

XMLWordPrintable

    • Icon: Defect Defect
    • Resolution: Done
    • Icon: Major Major
    • 1.3.0-M1, 1.3.0
    • 1.3.0-M1
    • None
    • None

      Entering a password and clicking "sign in" during OpenID login generates and Internal Server Error when a correct password is entered after a previous incorrect password login error. Log output is below.

      Steps to reproduce.

      1) Click Login tab
      2) Enter OpenID and click "Go"
      3) Enter *incorrect* password. Results in Login Page with: Error: Bad Credentials
      4) Enter *correct* password.
      5) An internal server error results.

      Looks like the subsequent login is missing a "mode" form variable.

      Once in this state, a login via username and password also fails with Internal Server Error.

      Log output:

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:48
      9)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: org.openid4java.message.MessageException: 0x100: Required parameter m
      issing: openid.mode
              at org.openid4java.message.Message.validate(Message.java:188)
              at org.openid4java.message.AuthRequest.validate(AuthRequest.java:229)
              at org.openid4java.message.AuthRequest.createAuthRequest(AuthRequest.jav
      a:116)
              at sgf.gateway.web.controllers.security.openid.OpenidProviderLoginContro
      ller.onSubmit(OpenidProviderLoginController.java:88)
              at org.springframework.web.servlet.mvc.SimpleFormController.processFormS
      ubmission(SimpleFormController.java:272)
              at org.springframework.web.servlet.mvc.AbstractFormController.handleRequ
      estInternal(AbstractFormController.java:268)
              at org.springframework.web.servlet.mvc.AbstractController.handleRequest(
      AbstractController.java:153)
              at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.ha
      ndle(SimpleControllerHandlerAdapter.java:48)
              at org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatch
      erServlet.java:790)
              ... 65 more

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

                Created:
                Updated:
                Resolved: