Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-10294

Unable to delete application link from the UI

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 5.6.0, 5.5.3
    • 5.5.0, 5.5.1
    • AppLinks
    • None

    Description

      Summary

      In Bitbucket Server 5.5.0, user is unable to delete application link from the UI.

      Environment

      • v5.5.0

      Steps to Reproduce

      1. Create application link to another Atlassian application.
      2. In Bitbucket, select the drop-down menu for the application link, and select DELETE.

      Expected Results

      A confirmation window is launched for the user to confirm that they want to delete the application link.

      Actual Results

      Nothing happens in the UI. The below exception is thrown as a javascript error when viewing in Developer Mode from a web browser:

      feature-v3-list.js?_statichash=82a64f9123446a05ab2389bf34a4847f-CDN%2F-2001741899%2F03c7a41%2F1%2Fc927019836e7ac65711f3ef3c7049813&locale=en-US:1 Uncaught TypeError: w.contains is not a function
          at e.onActionsDropdownClick (feature-v3-list.js?_statichash=82a64f9123446a05ab2389bf34a4847f-CDN%2F-2001741899%2F03c7a41%2F1%2Fc927019836e7ac65711f3ef3c7049813&locale=en-US:1)
          at HTMLLIElement.e (lodash.js?_statichash=45ac997d8d855ac6b5bb9881d6ec9694-CDN%2F-2001741899%2F03c7a41%2F1%2F8d9cf7fa28519806ff23dad84de13a0c&locale=en-US:46)
          at HTMLDocument.dispatch (jquery.js?_statichash=45ac997d8d855ac6b5bb9881d6ec9694-CDN%2F-2001741899%2F03c7a41%2F1%2F8d9cf7fa28519806ff23dad84de13a0c&locale=en-US:3)
          at HTMLDocument.r.handle (jquery.js?_statichash=45ac997d8d855ac6b5bb9881d6ec9694-CDN%2F-2001741899%2F03c7a41%2F1%2F8d9cf7fa28519806ff23dad84de13a0c&locale=en-US:3)
      onActionsDropdownClick @ feature-v3-list.js?_statichash=82a64f9123446a05ab2389bf34a4847f-CDN%2F-2001741899%2F03c7a41%2F1%2Fc927019836e7ac65711f3ef3c7049813&locale=en-US:1
      e @ lodash.js?_statichash=45ac997d8d855ac6b5bb9881d6ec9694-CDN%2F-2001741899%2F03c7a41%2F1%2F8d9cf7fa28519806ff23dad84de13a0c&locale=en-US:46
      dispatch @ jquery.js?_statichash=45ac997d8d855ac6b5bb9881d6ec9694-CDN%2F-2001741899%2F03c7a41%2F1%2F8d9cf7fa28519806ff23dad84de13a0c&locale=en-US:3
      r.handle @ jquery.js?_statichash=45ac997d8d855ac6b5bb9881d6ec9694-CDN%2F-2001741899%2F03c7a41%2F1%2F8d9cf7fa28519806ff23dad84de13a0c&locale=en-US:3 
      

      Extracting from above, the specific error is:

      Uncaught TypeError: w.contains is not a function 
      

      Workaround

      Users can execute a CURL REST call to remove the application link. This call is made when you normally delete an application link.

      1. From the Application Links page, select the EDIT icon for the application link you want to delete
      2. In the browser address bar, after the /edit/, copy the ID listed in the URL. Here is an example URL below:
        http://localhost:7990/plugins/servlet/applinks/edit/20ab2cd0-37c8-3935-8b0f-35aedfc4a712
        
      1. Execute CURL command pasting the ID you retrieved from the URL into the command, and an administrator username and password:
        curl -X DELETE -u USERNAME:PASSWORD -H "Accept: application/json"  http://localhost:7990/rest/applinks/3.0/applinks/20ab2cd0-37c8-3935-8b0f-35aedfc4a712
        

      Attachments

        Issue Links

          Activity

            People

              mmcglynn Deez Nutz (Inactive)
              mwilliams@atlassian.com Mark A.
              Votes:
              4 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: