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

[GSS](7.2.z) ELYWEB-36 - File UploadMultipart does not work when SSO is enabled

XMLWordPrintable

    • Hide
      1. Unzip a fresh installation of the JBoss EAP 7.1.0 and apply the latest available patch (CP5).
      2. Copy the attached standalone.xml, properties files and JKS file into the $JBOSS_HOME/standalone/configuration.
      3. Start the JBoss and deploy the attached application.
      4. Create the folder: /tmp/upload
      5. Open a private windows of the browser and open the link: http://localhost:8080/chtit-app-1.0-j2ee/upload
      6. Login in the application using user: user2 and pass: password123
      7. Upload a PNG file and submit the form.
      8. Test with SSO enabled and disabled

      The test with SSO enabled shows:

      10:20:14,656 INFO  [stdout] (default task-9) File: null
      

      And with SSO disabled shows:

      14:05:51,833 INFO  [stdout] (default task-3) File: /tmp/upload/Kotak_1351265510350343094.PNG
      
      Show
      Unzip a fresh installation of the JBoss EAP 7.1.0 and apply the latest available patch (CP5). Copy the attached standalone.xml, properties files and JKS file into the $JBOSS_HOME/standalone/configuration. Start the JBoss and deploy the attached application. Create the folder: /tmp/upload Open a private windows of the browser and open the link: http://localhost:8080/chtit-app-1.0-j2ee/upload Login in the application using user: user2 and pass: password123 Upload a PNG file and submit the form. Test with SSO enabled and disabled The test with SSO enabled shows: 10:20:14,656 INFO [stdout] ( default task-9) File: null And with SSO disabled shows: 14:05:51,833 INFO [stdout] ( default task-3) File: /tmp/upload/Kotak_1351265510350343094.PNG

      On _EAP 7.1.5 _ the application attached is getting an empty list of files in [i.] when a file is uploaded with the SSO enabled.

      i. com.stva.chtitwebapp.web.internal.MultipartMap

      public class MultipartMap extends HashMap<String, Object> {
      
      	/**
      	 * Global constructor.
      	 */
      	private MultipartMap(HttpServletRequest multipartRequest, String location, boolean multipartConfigured) throws ServletException, IOException {
      		multipartRequest.setAttribute(ATTRIBUTE_NAME, this);
      
      		this.encoding = multipartRequest.getCharacterEncoding();
      		if (this.encoding == null) {
      			multipartRequest.setCharacterEncoding(this.encoding = DEFAULT_ENCODING);
      		}
      		this.location = location;
      		this.multipartConfigured = multipartConfigured;
      
      		for (Part part : multipartRequest.getParts()) { // ======> multipartRequest.getParts() is an empty list
      			String filename = getFilename(part);
      			if (filename == null) {
      				processTextPart(part);
      			} else if (!filename.isEmpty()) {
      				processFilePart(part, filename);
      			}
      		}
      	}
      
      }
      

      Attached two logs:

      1. SSO-disabled.txt - TRACE with SSO disabled
      2. SSO-enabled.txt - TRACE with SSO enabled

      Some libraries from _ io.undertow are_ not loaded during the file upload when the SSO is enabled and the logs shows:

      • SSO enabled shows:
      10:20:14,656 INFO  [stdout] (default task-9) File: null
      
      • SSO disabled shows:
      14:05:51,833 INFO  [stdout] (default task-3) File: /tmp/upload/Kotak_1351265510350343094.PNG
      

        1. 2020fpf.jks
          4 kB
          Brad Maxwell
        2. chtit-app-1.0-j2ee.war
          5.05 MB
          Brad Maxwell
        3. example-roles.properties
          0.0 kB
          Brad Maxwell
        4. example-users.properties
          0.1 kB
          Brad Maxwell
        5. SSO-disabled.txt
          74 kB
          Brad Maxwell
        6. SSO-enabled.txt
          18 kB
          Brad Maxwell
        7. standalone_client.xml
          30 kB
          Brad Maxwell

              rhn-support-ivassile Ilia Vassilev
              rhn-support-bmaxwell Brad Maxwell
              Daniel Cihak Daniel Cihak
              Daniel Cihak Daniel Cihak
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: