Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1565

Response is broken for String entities if charset is not explicitly specified

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.1.1.Final, 3.0.21.Final
    • 3.1.0.Final
    • jaxrs
    • None

    Description

      If the response entity type is a String and the charset is not explicitly set, the String is converted to a byte[] using UTF-8. Since the default charset in HTTP is ISO-8859-1, the responses are invalid. Either, the conversion should use o.getBytes(StandardCharsets.ISO_8859_1) or the response charset should be set to utf-8 in that case.
      See also RESTEASY-1092, RESTEASY-1066, https://github.com/resteasy/Resteasy/pull/559/files

      Attachments

        Issue Links

          Activity

            People

              rsigal@redhat.com Ronald Sigal
              jkemnade Jochen Kemnade (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: