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

JIRA issues are not added to Confluence page when URL is present in highlighted text

      Problem

      JIRA issues can be created directly by highlighting a text on a Confluence page but if the selected text contains a URL the following message is shown and the issue is not added to the page. On JIRA side, issues is created successfully.

      xxx issues has been created, but there are problems in adding them to the page. You can manually add them later using JIRA macro.

      Steps to Reproduce

      1. On a page with text and URLs, Highlight some text including the URL.
      2. Click on 'Create Issue'
      3. Select the Project
      4. Click on 'Create'

      Expected Results

      Jira issue should be created and added to the page, like this:

      On the browser console, you can see addedToPage = True in server response from a POST request https://xxxxxxxxxx/confluence/rest/highlighting/1.0/insert-storage-fragment 

      Actual Results

      No issue was added and the message is shown.

      On the browser console, we can see a response from the server with addedToPage = False

      Technical Notes

      The following warning can be seen in Confluence logs:

       2024-03-07 13:49:48,569 WARN [http-nio-8090-exec-33 url: /confluence/rest/highlighting/1.0/insert-storage-fragment; user: admin] [plugins.highlight.service.DefaultSelectionModifier] modify Could not modify storage format to decorate with a marker
       -- url: /confluence/rest/highlighting/1.0/insert-storage-fragment | userName: admin | referer: https://xxx.xxx.xxx/confluence/display/ds/test2 | traceId: 3887955ad2ae53dd  

      Workaround

      There is no currently any workaround for this issue but you can still manually add the issue to the page later.

            [CONFSERVER-94844] JIRA issues are not added to Confluence page when URL is present in highlighted text

            In behalf of Kris Collette, I wish to summarize shortly on how this bug is impacting our business: 

            We use Confluence and Jira as Knowledge Management System. Each Confluence page needs constant updating, depending on specification changes. Whenever a page requires an update, the text on the page will be selected (and that also can be an URL) and a ticket in Jira created with the out of the box functionality to send to a specialists for approving the changes on the page being proposed by a user.

            This bug is affecting around 1800 users. So a lot of users are affected by the bug.

            For now, we reported out the issue and let the user know that the selection of the URL should be avoided until we have a fix. 

            Selina Niyitegeka added a comment - In behalf of Kris Collette, I wish to summarize shortly on how this bug is impacting our business:  We use Confluence and Jira as Knowledge Management System. Each Confluence page needs constant updating, depending on specification changes. Whenever a page requires an update, the text on the page will be selected (and that also can be an URL) and a ticket in Jira created with the out of the box functionality to send to a specialists for approving the changes on the page being proposed by a user. This bug is affecting around 1800 users. So a lot of users are affected by the bug. For now, we reported out the issue and let the user know that the selection of the URL should be avoided until we have a fix. 

              Unassigned Unassigned
              f7fe77b3bc24 Filipe Rodrigues
              Affected customers:
              0 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated: