Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1900

Tapestry always uses application charset for request encoding, should first check content-type header

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.3.2, 5.3.3, 5.3.4, 5.3.5, 5.3.6
    • None
    • tapestry-core
    • None

    Description

      I'm using Tapestry as a sort of REST server, using pages to act as REST gateways to business services.

      To access those pages I'm using Spring's RestTemplate which as a default uses ISO-8859-1 as the request encoding and properly seting the request's content-type header.

      Tapestry currently forces the request encoding to be the same as the application charset (see org.apache.tapestry5.internal.services.RequestImpl.setupEncoding), I believe it should first check the content-type header and use that value instead, only using application charset as a fallback.

      Attachments

        1. tap5-1900.patch
          1 kB
          Nelson Rodrigues

        Activity

          People

            hlship Howard Lewis Ship
            nrodrigues Nelson Rodrigues
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: