Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-95418

Copying comments from Jira into Confluence editor prevents saving the page

      Issue Summary

      This is reproducible on Data Center: yes

      Unable to update/save a page after pasting a comment that was copied from Jira, it results in "There was an error processing the request." error. see screen recording

      This issue didn't exist in older versions of Confluence like 7.19.17.

      Steps to Reproduce

      1. Go to Jira >> open a Jira ticket that has comments >> Copy one of the comments (including the date)
      2. Go to Confluence >> edit a page >> paste the copied comment
      3. Try to update the page

      Expected Results

      The page should be published without any errors

      Actual Results

      The page can't be updated, and the editor can't be closed, it shows the error when clicking "Update" or "Close"

      Workaround

      Click on the date picker in the comment that was pasted in the page, then choose a date, and then update the page.

            [CONFSERVER-95418] Copying comments from Jira into Confluence editor prevents saving the page

            8.5.14 - the same problem

            Paweł Sitarz added a comment - 8.5.14 - the same problem

            Jakobus Schürz added a comment - - edited

            I can reproduce this behaviour.

            In atlassian-confluence.log i found:
            ```
            com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while transforming editor format to storage format (com.atlassian.confluence.content.render.xhtml.XhtmlException: An error occurred due to invalid dat
            e time format during unmarshalling a time from storage format.)                                                                                                                                                                               
            ...
            ...
            ...
            Caused by: java.lang.IllegalArgumentException: Invalid format: "2024-05-03T09:54:02+0200" is malformed at "T09:54:02+0200"
            ```

             

            In Jira is used a date-time-field in header-line of a comment, and copy&paste paste it to confluence also as date-time-field. But confluence expects only a date-field there.

             

            Confluence version 8.5.8 and 8.5.9

            Jakobus Schürz added a comment - - edited I can reproduce this behaviour. In atlassian-confluence.log i found: ``` com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while transforming editor format to storage format (com.atlassian.confluence.content.render.xhtml.XhtmlException: An error occurred due to invalid dat e time format during unmarshalling a time from storage format.)                                                                                                                                                                                ... ... ... Caused by: java.lang.IllegalArgumentException: Invalid format: "2024-05-03T09:54:02+0200" is malformed at "T09:54:02+0200" ```   In Jira is used a date-time-field in header-line of a comment, and copy&paste paste it to confluence also as date-time-field. But confluence expects only a date-field there.   Confluence version 8.5.8 and 8.5.9

              Unassigned Unassigned
              mkurdi@atlassian.com Mohamed K
              Affected customers:
              7 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated: