Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
6.13.2
-
1
-
Severity 3 - Minor
-
1
-
Description
Summary
Have a plugin with a REST API deployed that specifies a package: applinks-oauth:
<rest key="applinksRestV2OAuth" path="/applinks-oauth" version="1.0" description="Provides REST endpoints for interacting with the AppLinks OAuth plugin"><package>com.atlassian.applinks.oauth.rest</package></rest>
- Open the REST API Browser version 3.2.2 on a Confluence 6.13.2
- Deselect "Show only public APIs"
- Type "applinks-oauth" in the browser
- Notice that the path is duplicated:
applinks-oauth/1.0/applinks-oauth/1.0
instead of
applinks-oauth/1.0
Since the path is wrong a call of the service via the REST API Browser results in a HTTP 404.
Expected Result
Incorrect paths resulting in a 404 when called with the REST API Browser.
Actual Result
Proper URLs to the REST services of a add-on that specifies a <package> element.
Notes
- When package element is present in the rest module then you get a duplicate path
- On a Confluence 5.10.9 this is not a problem. All URLs are correctly shown with REST API Browser version 3.2.2.
- Add-ons that do not specify the <package> element work fine.
- If the package element is removed, then the REST API Browser works fine even with Confluence 6.13.2.
- The REST API service is usable outside of the REST API Browser. However, the REST API Browser happens to display incorrect URLs (with the duplication) and each call will results in a 404.