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

[GSS](7.3.z) Stax maxAttributeSize is only vaguely respected

    XMLWordPrintable

Details

    • +
    • Hide

      1. Configure the system property org.apache.cxf.stax.maxAttributeSize to 5000 in EAP standalone.xml and start EAP:
      <system-properties>
      <property name="org.apache.cxf.stax.maxAttributeSize" value="5000"/>
      </system-properties>
      2. Deploy the attached service modified from jaxws-ejb of quickstarts
      3. Run the modified program

      Show
      1. Configure the system property org.apache.cxf.stax.maxAttributeSize to 5000 in EAP standalone.xml and start EAP: <system-properties> <property name="org.apache.cxf.stax.maxAttributeSize" value="5000"/> </system-properties> 2. Deploy the attached service modified from jaxws-ejb of quickstarts 3. Run the modified program

    Description

      System property org.apache.cxf.stax.maxAttributeSize only vaguely limits attribute values. If I set the property to 5000 I can send up to 8295 characters in an attribute value without EAP denying the request.
      Reviewing the source code for woodstox reveal that the limit is checked against the size of the buffer before the last buffer expansion. After 2459 characters the buffer is grown to 3687. After 5531 characters the limit is checked against 3687 instead of 5531 and not until 8296 characters is the limit checked against the previous buffer size 5531 which is larger than 5000.

      Attachments

        Issue Links

          Activity

            People

              istudens@redhat.com Ivo Studensky
              rhn-support-ivassile Ilia Vassilev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: