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

[GSS](7.2.z) UNDERTOW-1542 - Undertow doesn't extract request parameters if PUT method is being called

XMLWordPrintable

    • +
    • Workaround Exists
    • Hide
      • Use POST method instead of PUT
      • Avoid using these methods below to extract data from request.
        ----------------------------------------
        > + getParameterNames
        > + getParameterValues
        > + getParameterMap
        ----------------------------------------
      Show
      Use POST method instead of PUT Avoid using these methods below to extract data from request. ---------------------------------------- > + getParameterNames > + getParameterValues > + getParameterMap ----------------------------------------
    • Hide

      1. Deploy attached reproducer "simple.war" onto vanilla EAP 7.1/7.2
      2. curl -X PUT -d echo=john http://localhost:8080/simple/servlet
      3. Check the log, confirm there is no logging "++++++++++ testing name = ......"

      Reproducer uses " request.getParameterNames()" to reproduce only, please update the reproducer code to test other two methods "getParameterValues" and "getParameterMap"

      Thanks

      Show
      1. Deploy attached reproducer "simple.war" onto vanilla EAP 7.1/7.2 2. curl -X PUT -d echo=john http://localhost:8080/simple/servlet 3. Check the log, confirm there is no logging "++++++++++ testing name = ......" Reproducer uses " request.getParameterNames()" to reproduce only, please update the reproducer code to test other two methods "getParameterValues" and "getParameterMap" Thanks

      If PUT method is being used, we cannot extract request parameters/values in Undertow using these methods below:
      ----------------------------------------
      > + getParameterNames
      > + getParameterValues
      > + getParameterMap
      ----------------------------------------

      Similar bug was fixed via UNDERTOW-916 however that was only for one method "getParameter(String)". We would like all these methods above fixed

              rhn-engineering-lgao Lin Gao
              rhn-support-lywang Lyle Wang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified