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

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

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.2.0.GA
    • Fix Version/s: 7.2.7.GA
    • Component/s: Web Services
    • Labels:
      None
    • Target Release:
    • Steps to Reproduce:
      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
    • QE Test Coverage:
      +

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  istudens Ivo Studensky
                  Reporter:
                  m.vassileva Maria Vassileva
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: