Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-21871

Long workspace IDs are truncated in Connect apps leading to profileTabs url not be opened correctly

XMLWordPrintable

      Issue Summary

      Long workspace IDs are truncated in Connect apps pages leading to profileTabs urls (Profile tab documentation ) not be opened correctly.

      Steps to Reproduce

      1. create a workspace with a long ID (e.g. ccurti-workspace-with-long-id-value)
      2. create an app with a Profile tab (see snippet from the Connect app descriptor below)
      3. open the workspace page
      4. click on the icon corresponding to the app

      Expected Results

      The app page opens correctly and the page defined as the url parameter is shown.

      Actual Results

      The app page doesn't open because the url is truncated.

      The screenshot shows the url from the Connect app being truncated to ccurti-workspace-with-long-id-

      Notes

      Installing the app also results in the "Resource not found" screen but, even if the error screen is shown, the app is correctly installed.

      Connect descriptor example

      "profileTabs": [
                  {
                      "key": "account-graphs-page",
                      "name": {
                          "value": "Graphs"
                      },
                      "url": "/account-graphs?target_account_uuid={target_user.uuid}&user_uuid={user.uuid}",
                      "params": {
                          "auiIcon": "aui-iconfont-link"
                      }
                  }
              ],
      

      Workaround

      Change the workspace ID to a shorter value (e.g. ccurti-workspace)

        1. screenshot-1.png
          72 kB
          Caterina Curti
        2. screenshot-2.png
          78 kB
          Caterina Curti

              Unassigned Unassigned
              ccurti Caterina Curti
              Votes:
              12 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: