Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-10216

SafeAction does not work using ui:include including s:link

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • TBD EAP 5
    • EAP_EWP 5.1.2
    • Seam2
    • None
    • Hide

      Steps
      --------
      1. unzip the test_app.zip and copy the booking directory to the jboss-eap-5.1/seam/examples/booking directory.
      2. set the jboss.home in jboss-eap-5.1.2/seam/build.properties file.
      3. In the booking directory, run ant deploy
      4. run.sh -c default
      5. access the following test case requests URL in Browser.

      Test Case
      --------
      [1] test1.seam (<s:link>)
      1) QueryString actionMethod=test1.xhtml:slinktest.test
      request) http://localhost:8080/seam-booking/test1.seam?actionMethod=test1.xhtml%3Aslinktest.test

      result) In standard out, you can check the following log:"INFO [STDOUT] ***** SlinkTestAction.test() *****"

      2) QueryString actionMethod=/test1.xhtml:slinktest.test (inserted "/" front on test1.xhtml)
      request) http://localhost:8080/seam-booking/test1.seam?actionMethod=%2Ftest1.xhtml%3Aslinktest.test

      result) same [1]-1)

      [2] test2.seam (<s:link> is included in <ui:include>)
      1) QueryString actionMethod=test2.xhtml:slinktest.test
      request) http://localhost:8080/seam-booking/test2.seam?actionMethod=test2.xhtml%3Aslinktest.test

      result) In 1st request, you will not find out the standard log. But, in 2nd request, you can check the following log "INFO [STDOUT] ***** SlinkTestAction.test() *****"

      2) QueryString actionMethod=/test2.xhtml:slinktest.test (inserted "/" front on test1.xhtml)
      request) http://localhost:8080/seam-booking/test2.seam?actionMethod=%2Ftest2.xhtml%3Aslinktest.test

      result) There are no logs in the standard log.

      Show
      Steps -------- 1. unzip the test_app.zip and copy the booking directory to the jboss-eap-5.1/seam/examples/booking directory. 2. set the jboss.home in jboss-eap-5.1.2/seam/build.properties file. 3. In the booking directory, run ant deploy 4. run.sh -c default 5. access the following test case requests URL in Browser. Test Case -------- [1] test1.seam (<s:link>) 1) QueryString actionMethod=test1.xhtml:slinktest.test request) http://localhost:8080/seam-booking/test1.seam?actionMethod=test1.xhtml%3Aslinktest.test result) In standard out, you can check the following log:"INFO [STDOUT] ***** SlinkTestAction.test() *****" 2) QueryString actionMethod=/test1.xhtml:slinktest.test (inserted "/" front on test1.xhtml) request) http://localhost:8080/seam-booking/test1.seam?actionMethod=%2Ftest1.xhtml%3Aslinktest.test result) same [1] -1) [2] test2.seam (<s:link> is included in <ui:include>) 1) QueryString actionMethod=test2.xhtml:slinktest.test request) http://localhost:8080/seam-booking/test2.seam?actionMethod=test2.xhtml%3Aslinktest.test result) In 1st request, you will not find out the standard log. But, in 2nd request, you can check the following log "INFO [STDOUT] ***** SlinkTestAction.test() *****" 2) QueryString actionMethod=/test2.xhtml:slinktest.test (inserted "/" front on test1.xhtml) request) http://localhost:8080/seam-booking/test2.seam?actionMethod=%2Ftest2.xhtml%3Aslinktest.test result) There are no logs in the standard log.
    • Not Required
    • NEW

    Description

      SafeAction does not work using ui:include including s:link.

      Attachments

        Activity

          People

            mnovotny@redhat.com Marek Novotny
            rhn-support-ksuzumur Keishi Suzumura
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: