Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-1805

DefaultHttpHeaderMapper does not support wildcard (*) as an Accept-Charset header value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.0.5
    • Component/s: Web Services
    • Labels:
      None

      Description

      When a client passes '*' in an Accept-Charset header, the following exception occurs:

      java.nio.charset.IllegalCharsetNameException: *
      	java.nio.charset.Charset.checkName(Charset.java:284)
      	java.nio.charset.Charset.lookup2(Charset.java:458)
      	java.nio.charset.Charset.lookup(Charset.java:437)
      	java.nio.charset.Charset.forName(Charset.java:502)
      	org.springframework.http.HttpHeaders.getAcceptCharset(HttpHeaders.java:184)
      	org.springframework.integration.http.support.DefaultHttpHeaderMapper.getHttpHeader(DefaultHttpHeaderMapper.java:705)
      	org.springframework.integration.http.support.DefaultHttpHeaderMapper.toHeaders(DefaultHttpHeaderMapper.java:309)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mark.fisher Mark Fisher
              Reporter:
              mark.fisher Mark Fisher
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: