Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-12094

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

    XMLWordPrintable

Details

    • 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 ----------------------------------------

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-lgao Lin Gao
              rhn-engineering-lgao Lin Gao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: