Jetty
  1. Jetty
  2. JETTY-385

response.encodeURL() returns a different value during a foward dispatch

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1.4
    • Fix Version/s: 6.1.5rc0
    • Component/s: Servlet
    • Labels:
      None
    • Number of attachments :
      1

      Description

      Recreate steps:

      1. create a jsp that prints the value of response.encodeURL()
      2. create a servlet that also prints the value of response.encodeURL()
      3. add a forward dispatch to the jsp from the servlet's doGet()
      4. disable cookies in your browser
      5. access the servlet from your browser
      6. note the output from the jsp which includes ;sessionid=xxx but the output from the servlet does not

      You can deploy the attached WAR and access it at http://localhost:8080/ajetty to observe the different output in your jetty command window.

        Activity

        Hide
        Paul McMahan added a comment -

        thanks for taking a look. this problem is affecting the jsf (myfaces) integration in the geronimo-jetty6-jee5 assembly. I can provide more details on the geronimo-tck@ list, or if you have a jetty tck list I could post there as well.

        Show
        Paul McMahan added a comment - thanks for taking a look. this problem is affecting the jsf (myfaces) integration in the geronimo-jetty6-jee5 assembly. I can provide more details on the geronimo-tck@ list, or if you have a jetty tck list I could post there as well.
        Hide
        Greg Wilkins added a comment -

        Something strange is going on with my version of firefox... it wont let me disable cookies???
        makes it difficult to debug this

        Show
        Greg Wilkins added a comment - Something strange is going on with my version of firefox... it wont let me disable cookies??? makes it difficult to debug this
        Hide
        Greg Wilkins added a comment -

        The issue was that sessions that were created during a dispatch, were not visible after the dispatch.
        This is fixed in svn and will be in 6.1.5

        Show
        Greg Wilkins added a comment - The issue was that sessions that were created during a dispatch, were not visible after the dispatch. This is fixed in svn and will be in 6.1.5
        Hide
        Paul McMahan added a comment -

        verified the fix. thanks Greg!

        Show
        Paul McMahan added a comment - verified the fix. thanks Greg!

          People

          • Assignee:
            Greg Wilkins
            Reporter:
            Paul McMahan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: