Uploaded image for project: 'Seam Faces'
  1. Seam Faces
  2. SEAMFACES-101

First request in the short.ly example returns weird action URL due to a bug in prettyfaces on JBossAS 6

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Done
    • 3.0.0.CR1
    • 3.0.0.Final
    • None
    • None
    • jbossas6

    • Hide

      1. cd examples/short-ly
      2. mvn clean package jboss:hard-deploy -Pjbossas
      3. start jboss
      4. remove any local jsessionid cookies
      5. go to http://127.0.0.1:8080/short.ly/ , fill anything, click create
      6. notice it didn't create anything and instead written into a log a line such as:
      [STDOUT] Sent redirect for key: %3Bjsessionid%3Dcc08b47dabc51c5c65ccfb747ba004e9 => null

      Show
      1. cd examples/short-ly 2. mvn clean package jboss:hard-deploy -Pjbossas 3. start jboss 4. remove any local jsessionid cookies 5. go to http://127.0.0.1:8080/short.ly/ , fill anything, click create 6. notice it didn't create anything and instead written into a log a line such as: [STDOUT] Sent redirect for key: %3Bjsessionid%3Dcc08b47dabc51c5c65ccfb747ba004e9 => null
    • Workaround Exists
    • Hide

      add the line <version>3.2.0</version> to the example/short-ly/pom.xml:

      <dependency>
      <groupId>com.ocpsoft</groupId>
      <artifactId>prettyfaces-jsf2</artifactId>
      <version>3.2.0</version>
      </dependency>

      Show
      add the line <version>3.2.0</version> to the example/short-ly/pom.xml: <dependency> <groupId>com.ocpsoft</groupId> <artifactId>prettyfaces-jsf2</artifactId> <version>3.2.0</version> </dependency>

    Description

      The first request in a session to the deployed short.ly example produces a form with weird action URL, such as action="/short.ly/;jsessionid=cc08b47dabc51c5c65ccfb747ba004e9;jsessionid=CC08B47DABC51C5C65CCFB747BA004E9", which is handled incorrectly on the postback, interpreting the first jsessionid as a redirect key.

      This appears to be a bug in prettyfaces. Updating to prettyfaces 3.2.0 seems to fix the problem.

      Attachments

        Activity

          People

            bleathem@redhat.com Brian Leathem (Inactive)
            maschmid@redhat.com Marek Schmidt
            Archiver:
            samahaja@redhat.com Sagar Mahajan

            Dates

              Created:
              Updated:
              Resolved:
              Archived: