Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1542

Undertow doesn't extract request parameters if PUT method is being called

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.21.Final
    • 2.0.20.Final
    • Servlet
    • None
    • 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
    • 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 ----------------------------------------

      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-engineering-lgao Lin Gao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: