Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-827

Import do not properly handle file encodings

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 B4
    • Fix Version/s: 1.0 B6
    • Component/s: Administration
    • Labels:
      None
    • Similar issues:

      Description

      When importing a xar file, all contained documents are parsed using the default encoding of the server JVM, regardless of the effective encoding of the files.

      This leads to incorrect documents when running the server in an UTF-8 configuration and importing the released xar (as they are encoded using ISO-8859-1, and as they effectively contain iso-8859-1 characters, which are, BTW typos coming from French).

      I already corrected this pb on the current svn snapshot. I'll post the patch in a comment.

      Gilles,

        Attachments

        1. Package.java.diff
          1 kB
        2. XWIKI-827.diff
          5 kB
        3. XWIKI-827.patch
          5 kB
        4. XWIKI-827.patch
          169 kB
        5. XWIKI-827-test.patch
          5 kB
        6. XWIKI-827-unittest.patch
          6 kB
        7. XWIKI-827-unittest.patch
          5 kB
        8. XWikiDocument.java.diff
          1 kB

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              serasset Gilles Sérasset
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: