Mule
  1. Mule
  2. MULE-4999

HttpRequestBodyToParamMap should transform GET method

    Details

    • User impact:
      Medium
    • Similar Issues:
      None

      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;

        Activity

        Show
        Dirk Olmes added a comment - 3.x: http://fisheye.codehaus.org/changelog/mule/?cs=18898

          People

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

            Dates

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

              Development