Issue Summary

      Customers are not able to the new assets widget from Confluence "Administration > General Configuration > External Gadgets" page, as it fails with "Invalid gadget URL".

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Setup a Jira service Management instance with version 5.10.1v
      2. Set up a confluence instance with any version.
      3. Select the Application links between 2 instances and ensure they are connected.
      4. Go to Jira dashboards, and select "Add gaget". 
      5. Select the "Assets Widget" click on the "show XML link" and copy the XML link from it.
      6. Go to Confluence Application, Administration > General Configuration > External Gadgets and add the copied URL.

      This is working as expected in the 5.4.0 LTS version, and 5.4.9 version.

      Expected Results

      The expected result is that the gadget link gets added and reflected in the "Added Gadgets" section.

      Actual Results

      The addition of XML fails and displays error "Invalid URL".


      When trying to use a wget command to retrieve the XML file it fails with a 404 error.

      bash-3.2$ wget http://localhost:49101/j9101/rest/gadgets/1.0/g/com.riadalabs.jira.plugins.insight:rlabs-gadget-widgets/includes/js/gadget/widgets/WidgetGadget.xml
      --2023-09-28 18:03:12--  http://localhost:49101/j9101/rest/gadgets/1.0/g/com.riadalabs.jira.plugins.insight:rlabs-gadget-widgets/includes/js/gadget/widgets/WidgetGadget.xml
      Resolving localhost (localhost)... ::1, 127.0.0.1
      Connecting to localhost (localhost)|::1|:49101... connected.
      HTTP request sent, awaiting response... 404 
      2023-09-28 18:03:12 ERROR 404: (no description).
      

      However, the same command works fine in 5.4.0 version.

      bash-3.2$ wget http://localhost:8940/j940/rest/gadgets/1.0/g/com.riadalabs.jira.plugins.insight:rlabs-gadget-widgets/includes/js/gadget/widgets/WidgetGadget.xml
      --2023-10-02 17:37:34--  http://localhost:8940/j940/rest/gadgets/1.0/g/com.riadalabs.jira.plugins.insight:rlabs-gadget-widgets/includes/js/gadget/widgets/WidgetGadget.xml
      Resolving localhost (localhost)... ::1, 127.0.0.1
      Connecting to localhost (localhost)|::1|:8940... connected.
      HTTP request sent, awaiting response... 200 
      Length: 98521 (96K) [application/xml]
      Saving to: ‘WidgetGadget.xml.1’
      
      WidgetGadget.xml.1                                              100%[=====================================================================================================================================================>]  96.21K  --.-KB/s    in 0s      
      
      2023-10-02 17:37:34 (352 MB/s) - ‘WidgetGadget.xml.1’ saved [98521/98521]
      

      Workaround

      Disable the following feature flag: assets.permission.view.widget
      Instructions can be found on this Knowledge Base Article: https://confluence.atlassian.com/jirakb/how-to-manage-dark-features-in-jira-959286331.html
      Warning We recommend turning the Feature Flag back on after the gadget URL has been added.

            [JSDSERVER-14708] Not able to add jira assets gadget in confluence external gadgets

            Benjamin Suess made changes -
            Status Original: Gathering Impact [ 12072 ] New: Short Term Backlog [ 12074 ]
            SET Analytics Bot made changes -
            Support reference count Original: 5 New: 6

            Hi 1463fcb5e3fd,
            are there any updates? or fixes planned ? our managers are actually looking since 7 month to an error message instead to the reports :/

            Christian Solle added a comment - Hi 1463fcb5e3fd , are there any updates? or fixes planned ? our managers are actually looking since 7 month to an error message instead to the reports :/
            SET Analytics Bot made changes -
            UIS Original: 2 New: 1
            SET Analytics Bot made changes -
            Support reference count Original: 4 New: 5
            SET Analytics Bot made changes -
            Support reference count Original: 5 New: 4
            SET Analytics Bot made changes -
            UIS Original: 1 New: 2
            SET Analytics Bot made changes -
            Support reference count Original: 4 New: 5
            Tripta Kaur made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 991777 ]

            Hi 1463fcb5e3fd,

            can you please remove the described workaround as it is not working.
            It does not show the the current state for the customer (not working until released fix)

            // Christian

            Christian Solle added a comment - Hi 1463fcb5e3fd , can you please remove the described workaround as it is not working. It does not show the the current state for the customer (not working until released fix) // Christian

              Unassigned Unassigned
              1463fcb5e3fd Sireesha
              Affected customers:
              8 This affects my team
              Watchers:
              10 Start watching this issue

                Created:
                Updated: