Uploaded image for project: 'Confluence Server and Data Center'
  1. Confluence Server and Data Center
  2. CONFSERVER-57887

Path problems with the REST API Browser under some Confluence versions

    XMLWordPrintable

    Details

      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>
      
      1. Open the REST API Browser version 3.2.2 on a Confluence 6.13.2
      2. Deselect "Show only public APIs"
      3. Type "applinks-oauth" in the browser
      4. 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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              acalantog Anne Calantog
              Votes:
              13 Vote for this issue
              Watchers:
              18 Start watching this issue

                Dates

                Created:
                Updated: