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

[GSS](7.2.z) Need to handle InputStream after picketlink authentication

XMLWordPrintable

    • ?
    • Hide

      reproducer

      reproducer.zip
      ├── readme.txt
      ├── standalone
      │   ├── configuration
      │   │   ├── idp-roles.properties
      │   │   ├── idp-users.properties
      │   │   └── standalone.xml
      │   └── deployments
      │       ├── identity.war
      │       ├── sales-post.war
      │       └── UploadTest.war   <- test app without picketlink
      └── test.txt
      

      Steps to reproduce
      1. Install JBoss EAP 7.2.x
      2. Put reproducer.zip under the $JBOSS_HOME
      4. unzip -qo reproducer.zip (standalone directory will be overrided)
      5. Start JBoss EAP 7.2.x

      Expected behavior
      6. Access http://localhost:8080/UploadTest/test.jsp
      7. Select $JBOSS_HOME/test.txt file and submit upload button in test.jsp page.
      8. You can confirm contents of uploaded file like a below.

      InputStream : start
      [-----------------------------6828907527883172581384011172]
      [Content-Disposition: form-data; name="test_upload"; filename="test.txt"]
      [Content-Type: text/plain]
      []
      [test1]
      [test2]
      [test3]
      []
      [-----------------------------6828907527883172581384011172--]
      InputStream : end 
      

      picketlink behavior
      9. Access http://localhost:8080/sales-post/test.jsp
      10. Login below

      Username : user
      Password : samplePass
      

      11. Select $JBOSS_HOME/test.txt file and submit upload button in test.jsp page.
      12. You cannot confirm contents of uploaded file like a below.

      InputStream : start
      InputStream : end 
      
      Show
      reproducer reproducer.zip ├── readme.txt ├── standalone │   ├── configuration │   │   ├── idp-roles.properties │   │   ├── idp-users.properties │   │   └── standalone.xml │   └── deployments │   ├── identity.war │   ├── sales-post.war │   └── UploadTest.war <- test app without picketlink └── test.txt Steps to reproduce 1. Install JBoss EAP 7.2.x 2. Put reproducer.zip under the $JBOSS_HOME 4. unzip -qo reproducer.zip (standalone directory will be overrided) 5. Start JBoss EAP 7.2.x Expected behavior 6. Access http://localhost:8080/UploadTest/test.jsp 7. Select $JBOSS_HOME/test.txt file and submit upload button in test.jsp page. 8. You can confirm contents of uploaded file like a below. InputStream : start [-----------------------------6828907527883172581384011172] [Content-Disposition: form-data; name="test_upload"; filename="test.txt"] [Content-Type: text/plain] [] [test1] [test2] [test3] [] [-----------------------------6828907527883172581384011172--] InputStream : end picketlink behavior 9. Access http://localhost:8080/sales-post/test.jsp 10. Login below Username : user Password : samplePass 11. Select $JBOSS_HOME/test.txt file and submit upload button in test.jsp page. 12. You cannot confirm contents of uploaded file like a below. InputStream : start InputStream : end

      The customer needs to handle file upload after picketlink authentication. However, it seems that InputStream data cannot get from HttpServletRequest after that.

              rhn-support-ivassile Ilia Vassilev
              rhn-support-enagai Eiichi Nagai (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: