Adding Sprint Health and Sprint Burndown gadgets results in "The resource /jira/rest/webResources/1.0/resources, cannot be found" error
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Problem
When trying to add a Sprint Health or Sprint Burndown Gadget in Confluence, an error may be encountered in the preview window.
When making the following actions:
- Register the external gadget
- While editing a page, insert a macro and choose the Sprint Health or Sprint Burndown gadget
The following appears in the a captured HAR file or in the UI:
The resource /jira/rest/webResources/1.0/resources, cannot be found.
Diagnosis
Environment
Confluence 6.6.13 and other versions
- JIRA 7.7.2 and other versions
Cause
The trigger for this problem is the fact that gadget incorrectly fills form data for the POST request to:
https://<confluence_url>/plugins/servlet/gadgets/makeRequest
In particular, url param is a relative URL, instead of being fully qualified (absolute) URL.
Workaround
Currently there is no known workaround for this behavior, however this error will not stop you from adding the Macro, whether if you see the error in the UI or in a HAR file of the captured web traffic.
This same error is seen when the macro is successfully added, therefore this error can be safely ignored.
A bug has been opened on this to track the issue: JSWSERVER-20149 - Adding Sprint Health and Sprint Burndown gadgets results in "The resource /jira/rest/webResources/1.0/resources, cannot be found" error