jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Groovy Modules
  • GMOD-271

NP for missing encoder in encoderRegistry

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: HTTPBuilder-0.5.2
  • Fix Version/s: None
  • Component/s: HttpBuilder
  • Labels:
    None
  • Environment:
    Groovy Version: 1.8.5 JVM: 1.6.0_29 Vendor: Apple Inc. OS: Mac OS X

Description

When a requestContentType and a POST/PUT body are specified and the given request content type has no registered encoder in the encoder registry, a NP is thrown.

def response = httpUrlClient.request(
                url: URL,
                method: 'POST',
                requestContentType: 'x-www-form-urlencoded', // instead of application/x-www-form-urlencoded
                body: params)

leads to

java.lang.NullPointerException
at groovyx.net.http.HttpURLClient.request(HttpURLClient.java:207)
at groovyx.net.http.HttpURLClient$request.call(Unknown Source)

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    GMOD-271_fix.patch
    09/Feb/12 4:25 PM
    2 kB
    Andre Steingress

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Andre Steingress added a comment - 09/Feb/12 4:25 PM

patch including bug fix and test-case

Show
Andre Steingress added a comment - 09/Feb/12 4:25 PM patch including bug fix and test-case

People

  • Assignee:
    Unassigned
    Reporter:
    Andre Steingress
Vote (0)
Watch (0)

Dates

  • Created:
    09/Feb/12 3:45 PM
    Updated:
    09/Feb/12 4:25 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.