Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5040

getRequestURL doesn't return url in address bar but rather actual path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 7.1.1.Final
    • Web
    • None

    Description

      Given:

      • an application MyEar.ear configured to use JAAS security that contains MyWar.war configured to redirect protected requests to a FORM login page
      • a login page - MyEar.ear/MyWar.war/WEB-INF/login.jsp
      • 2 conceptual sites - a user and admin site. The user site is accessed as http://server:port/MyEar/user and the admin site is accessed as http://server:port/MyEar/admin. The login page calls request.getRequestURL() to determine which site is being accessed and generates the content of the login page differently based on which site is being accessed among other things.

      In JBoss 4, request.getRequestURL() returns

      In JBoss 7, request.getRequestURL() returns http://server:port/MyEar/WEB-INF/login.jsp.

      Ultimately, this seems to imply the URL in the address bar is not available to JSPs. This impacts all related get URL/path methods and for us, is a HUGE problem.

      JBAS-6570 was open for AS6 but closed (understandably).

      Attachments

        Activity

          People

            rmaucher Remy Maucherat
            kdolan1 Kelly Dolan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: