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

Not well-formed XML produced by XML view when a user with "&" in the name is set as a value of a User Picker custom field

XMLWordPrintable

      The "&" character in the value (user login name) is not properly escaped by the User Picker custom field in the XML view. (Probably in other user custom field types too.)

      Reproduction sequence:
      1. Create a user with login name "a&b"
      2. Create a User Picker custom field
      3. On any issue, set the value of the field to that user.
      4. Open XML view of the issue

      Observed:
      <customfieldvalue>a&b</customfieldvalue>

      Expected:
      <customfieldvalue>a&amp;b</customfieldvalue>
      or
      <customfieldvalue><![CDATA[a&b]]></customfieldvalue>

      Note that when the Assignee is set to that user, the login name is properly escaped.

              Unassigned Unassigned
              bbf762edcc79 Igor Sereda [ALM Works]
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: