Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-190

Encoding declaration of POSTed XML documents is ignored

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: update
    • Labels:
      None

      Description

      Currently, the post.sh script and the SimplePostTool use this header to define encoding:

      Content-type:text/xml; charset=utf-8

      And the XML encoding declaration of the POSTed document is ignored.

      According to RFC 3023, the correct way would be to use "Content-type:application/xml" and use the XML document's encoding.

      One this is fixed, the "please use UTF-8 encoding" warning is SimplePostTool can be removed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bdelacretaz Bertrand Delacretaz
              • Votes:
                1 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: