File upload fails when PicketLink SSO is enabled in JBoss EAP 7

Solution Verified - Updated -

Issue

  • File Upload Fails with IllegalStateException reported in the logs:

    java.lang.IllegalStateException: UT000017: Form value is a file, use getFileItem() instead
        at io.undertow.server.handlers.form.FormData$FormValueImpl.getValue(FormData.java:304) ~[undertow-core-2.0.20.Final-redhat-00001.jar!/:2.0.20.Final-redhat-00001]
        at org.picketlink.identity.federation.bindings.wildfly.sp.SPFormAuthenticationRequestWrapper.getParameter(SPFormAuthenticationRequestWrapper.java:73) ~[picketlink-wildfly8-2.5.5.SP12-redhat-00005.jar!/:2.5.5.SP12-redhat-00005]
    ...
    
  • File upload (multipart) fails with sizes around or over 20Kb

Environment

  • Red Hat JBoss Enterprise Application Platform (JBoss EAP)
    • 7.1.2 and later
  • Security Assertion Markup Language (SAML)
  • Picketlink as SAML Service Provider (SP)
  • File Upload

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content