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

SkinAction - Possibly wrong encoding and content length

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.7 M3
    • 1.4.1, 1.5 M2, 1.5 RC1, 1.5 RC2, 1.5, 1.6 M1, 1.4.2, 1.5.1, 1.6 M2
    • {Unused} Core
    • None
    • Tested on XWiki 1.4.1, tomcat 6, mysql 5
    • skin encoding length patch

    Description

      Response from the SkinAction does not take care of xwiki.encoding and may therefore differ from the current encoding of xwiki document. This is particularly an issue with Javascript scripts, and moreover when these scripts make use of $msg.get() that return accentuated chars.

      In my case, the xwiki, db, tomcat, system, and al, are set to UTF-8 but javascript were still served as ISO-8859-1. Do not ask me from where it get it, I do not know, but it does.

      Additionally, renderFileFromObjectField does not calculate byte length taking care of the xwiki encoding, which could lead to similar issues as XWIKI-1321

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            softec Denis Gervalle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: