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

Jira markup renders error text when it does not recognise certain element names

      Issue Summary

      Jira markup will render an error such as "Color value is invalid" or "Border style is not a valid CSS2 border style" when there is invalid values in the markup

      Steps to Reproduce

      1. Create an issue and set the description in text mode to include {color: blue !important} 
      2. Set the description to Visual mode

      Expected Results

      The description should ignore the second word and correctly render with the colour blue. 

      Actual Results

      Hi,
      
      Testing bug
      
      color: Color value is invalid
      Thanks
      

      Workaround

      Remove the invalid markup

      Versions Tested

      Version Is Affected?
      10.3.3 Yes
      10.3.5 Yes
      10.4.0 Yes
      10.5.0 Yes

      Other Notes

      This is a related to the following bug:

        1. image-2025-04-07-09-53-11-578.png
          122 kB
          Benjamin Suess
        2. image-2025-04-07-09-53-25-699.png
          189 kB
          Benjamin Suess

            [JRASERVER-78840] Jira markup renders error text when it does not recognise certain element names

            SET Analytics Bot made changes -
            Support reference count Original: 2 New: 1
            SET Analytics Bot made changes -
            UIS Original: 8 New: 0
            Bugfix Automation Bot made changes -
            Introduced in Version New: 9.12
            Benjamin Suess made changes -
            Description Original: h3. Issue Summary

            Jira markup will render an error such as "Color value is invalid" or "Border style is not a valid CSS2 border style" when there is invalid values in the markup
            h3. Steps to Reproduce
             # Create an issue and set the description in text mode to include \{color: blue !important} 
             # Set the description to Visual mode

            h3. Expected Results

            The description should ignore the second word and correctly render with the colour blue
            h3. Actual Results
            {code:java}
            Hi,

            Testing bug

            color: Color value is invalid
            Thanks
            {code}
            h3. Workaround

            Remove the invalid markup
            h3. Versions Tested
            ||Version||Is Affected?||
            |10.3.3|Yes|
            |10.3.5|Yes|
            |10.4.0|Yes|
            |10.5.0|Yes|
            h3. Other Notes

            This is a related to the following bug:
             * This also can occur with borderStyle
             * [JSDSERVER-15531: Tickets are getting incorrect description/comment like "Color value is invalid" when the email to create the embedded HTML that contains CSS style sheet.|https://jira.atlassian.com/browse/JSDSERVER-15531]
            New: h3. Issue Summary

            Jira markup will render an error such as "Color value is invalid" or "Border style is not a valid CSS2 border style" when there is invalid values in the markup
            h3. Steps to Reproduce
             # Create an issue and set the description in text mode to include \{color: blue !important} 
             # Set the description to Visual mode

            h3. Expected Results

            The description should ignore the second word and correctly render with the colour blue. 
            h3. Actual Results
            {code:java}
            Hi,

            Testing bug

            color: Color value is invalid
            Thanks
            {code}
            h3. Workaround

            Remove the invalid markup
            h3. Versions Tested
            ||Version||Is Affected?||
            |10.3.3|Yes|
            |10.3.5|Yes|
            |10.4.0|Yes|
            |10.5.0|Yes|
            h3. Other Notes

            This is a related to the following bug:
             * This also can occur with borderStyle or any markup that has very strict regex
             * [JSDSERVER-15531: Tickets are getting incorrect description/comment like "Color value is invalid" when the email to create the embedded HTML that contains CSS style sheet.|https://jira.atlassian.com/browse/JSDSERVER-15531]
            Benjamin Suess made changes -
            Component/s Original: Create Request [ 34394 ]
            Component/s New: Issue - Comments [ 12030 ]
            Key Original: JSDSERVER-16137 New: JRASERVER-78840
            Affects Version/s Original: 10.3.5 [ 110897 ]
            Affects Version/s Original: 10.3.3 [ 110413 ]
            Affects Version/s Original: 10.5.0 [ 110315 ]
            Affects Version/s Original: 10.4.0 [ 110312 ]
            Affects Version/s New: 9.12.0 [ 105807 ]
            Affects Version/s New: 10.3.0 [ 109301 ]
            Project Original: Jira Service Management Data Center [ 15611 ] New: Jira Data Center [ 10240 ]
            Benjamin Suess made changes -
            Description Original: h3. Issue Summary

            When the email contains embedded HTML that contains a CSS style sheet, the text is replaced with "Color value is invalid"
            h3. Steps to Reproduce
             # Configure a Mail Channel
             # Sent an email with html - Tested with the same text from the bug
            {code:java}
            Hi,

            Testing bug

            {color: revert !important}

            Thanks
            {code}

            h3. Expected Results

            The description contains the Table with CSS style sheet color in it.
            h3. Actual Results
            {code:java}
            Hi,

            Testing bug

            color: Color value is invalid
            Thanks
            {code}
            h3. Workaround

            Consider attempting to disable the HTML parsing within your Service Desk configuration:
             # Navigate to {color:#0747a6}_https://<BASE_URL>/secure/admin/SDMailInfo.jspa_{color}
             # Select "No, remove the formatting by converting HTML messages to plain text".

            Depending on the nature of the HTML received by Jira, this action could potentially reduce the amount of undesirable content added.

            This workaround will not print HTML content in its desired form, but it is very rare that a user uses HTML in an email.
            h3. Versions Tested
            ||Version||Is Affected?||
            |10.3.3|Yes|
            |10.3.5|Yes|
            |10.4.0|Yes|
            |10.5.0|Yes|
            h3. Other Notes

            This is a regression of the following bug:
             * [JSDSERVER-15531: Tickets are getting incorrect description/comment like "Color value is invalid" when the email to create the embedded HTML that contains CSS style sheet.|https://jira.atlassian.com/browse/JSDSERVER-15531]
            New: h3. Issue Summary

            Jira markup will render an error such as "Color value is invalid" or "Border style is not a valid CSS2 border style" when there is invalid values in the markup
            h3. Steps to Reproduce
             # Create an issue and set the description in text mode to include \{color: blue !important} 
             # Set the description to Visual mode

            h3. Expected Results

            The description should ignore the second word and correctly render with the colour blue
            h3. Actual Results
            {code:java}
            Hi,

            Testing bug

            color: Color value is invalid
            Thanks
            {code}
            h3. Workaround

            Remove the invalid markup
            h3. Versions Tested
            ||Version||Is Affected?||
            |10.3.3|Yes|
            |10.3.5|Yes|
            |10.4.0|Yes|
            |10.5.0|Yes|
            h3. Other Notes

            This is a related to the following bug:
             * This also can occur with borderStyle
             * [JSDSERVER-15531: Tickets are getting incorrect description/comment like "Color value is invalid" when the email to create the embedded HTML that contains CSS style sheet.|https://jira.atlassian.com/browse/JSDSERVER-15531]
            Benjamin Suess made changes -
            Summary Original: Tickets are getting incorrect description/comment like "Color value is invalid" when the email to create the embedded HTML that contains CSS style sheet. New: Jira markup renders error text when it does not recognise certain element names
            SET Analytics Bot made changes -
            UIS Original: 1 New: 8
            SET Analytics Bot made changes -
            Support reference count Original: 1 New: 2
            SET Analytics Bot made changes -
            UIS New: 1

              Unassigned Unassigned
              6bebacf0c7e4 Aline Staudt
              Affected customers:
              2 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated: