Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-29772

XML view generates invalid XML for date customfield in languages that use accented characters for the months - regression

    XMLWordPrintable

Details

    Description

      Actual behavior:

      The XML generated is invalid since dates in customfield have accented chars.

      Steps to reproduce:

      1. Add a date custom field
      2. Ensure that the database, file encoding and application server are all using the utf-8 encoding as per the guide in page
      3. Change the default language of your JIRA instance to French for example
      4. Choose a sample issue and set the value of the new custom field to "1 February 2012" (in french 1er février 2012)
      5. Display the updated issue in the navigator
      6. click on the view/xml menu
      7. The browser displays this error message

      The problem is probably due to the fact that com.atlassian.jira.datetime.DateTimeVelocityUtils.formatRSS(Date) method referenced in xml-date.vm does not escape accented characters in a consistent manner.

      Expected behavior:

      Have the XML properly encoded for those characters.

      Workaround:

      No workarounds available.

      Attachments

        1. screenshot-1.jpg
          screenshot-1.jpg
          73 kB
        2. screenshot-2.jpg
          screenshot-2.jpg
          81 kB
        3. screenshot-3.jpg
          screenshot-3.jpg
          47 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pcora Pedro Cora
              Votes:
              3 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: