Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-19072

[GSS](7.2.z) j_security_check fails without trailing slash redirect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 7.2.7.GA
    • Undertow
    • None
    • Workaround Exists
    • Hide

      Use an expression filter to add the trailing slash for the app context:

                      <expression-filter name="appRedirect" expression="regex('^/SimpleWar$') -> redirect ('/SimpleWar/')"/>
      
      Show
      Use an expression filter to add the trailing slash for the app context: <expression-filter name= "appRedirect" expression= "regex( '^/SimpleWar$' ) -> redirect ( '/SimpleWar/' )" />
    • Hide

      -Deploy SimpleWar
      -Run with provided standalone xml and users.properties and roles.properties
      -Request locahost:8080/SimpleWar and attempt logging in (admin/admin)

      Show
      -Deploy SimpleWar -Run with provided standalone xml and users.properties and roles.properties -Request locahost:8080/SimpleWar and attempt logging in (admin/admin)

      After UNDERTOW-1578, a trailing slash redirect is not done before the form login page is presented. This results in the context being lost for the j_security_check POST and it fails:

      localhost.localdomain - - [25/Mar/2020:15:51:42 -0400] "POST /j_security_check;jsessionid=2rinyfprMaTeJG4yNWSNptFHZvr73Vd1paGSWcOt HTTP/1.1" 405 104 "http://localhost:8080/SimpleWar" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0" -
      

            flaviarnn Flavia Rainone
            rhn-support-aogburn Aaron Ogburn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: