Uploaded image for project: 'Mule'
  1. Mule
  2. MULE-4999

HttpRequestBodyToParamMap should transform GET method

    Details

    • User impact:
      Medium
    • Similar Issues:

      Description

      In org.mule.transport.http.transformers.HttpRequestBodyToParamMap, method public Object transform(MuleMessage message, String encoding), following code seems to be invalid:
      boolean isUrlEncoded = contentType.startsWith("application/x-www-form-urlencoded");
      It throws Null Exception when invoked with GET HTTP method.
      Suggested change:
      boolean isUrlEncoded = (contentType!=null)? contentType.startsWith("application/x-www-form-urlencoded") : false;

        Attachments

          Activity

            People

            • Assignee:
              dirk Dirk Olmes
              Reporter:
              lu_k Łukasz Kolek
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                19/Aug/10