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

When copying the comment link, the link is broken

    XMLWordPrintable

Details

    Description

      Issue Summary

      The feature to copy the comment link under the commits page, it's copying a broken link.

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Access Bitbucket.
      2. Access a project.
      3. Clicking on a repository link (e.g. https://instenv-257393-fd4d.instenv.internal.atlassian.com/projects/IE/repos/77g68265fyop1/browse)
      4. Clicking the commits button in the toolbar
      5. Clicking on a commit ID
      6. Clicking the + icon to add a comment

      Example:

      Copying the comment link:

      When we copy the link, it copies this link: https://instenv-257218-z20q.instenv.internal.atlassian.com?commentId=1#bin_file_0.rnd

      Which is completely wrong and broken.

      Expected Results

      The button to copy the link to the comment should create a link that redirects the user from any page to the comment on the commit.

      The correct format should be something like this:

      https://instenv-257218-z20q.instenv.internal.atlassian.com/projects/IE/repos/2hz3tqi2fzz4x/commits/9091f8227556c0e64d9ad28b37444e5ba4c05b23?commentId=1#bin_file_0.rnd

      Actual Results

      The link format is wrong:
      https://instenv-257218-z20q.instenv.internal.atlassian.com?commentId=1#bin_file_0.rnd

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available

      Tested on version 8.9.11, 8.16.3, 8.17, 8.18.0, 8.18.1, 8.9.10.

      Notes:

      On the version 8.2.4, the feature "work", but in a different way, it creates a link but it doesn't copy to the clipboard.

      Example:

       

      When clicking in the button, it changes the URL in the browser, so we can manually copy and use it.

      Attachments

        Activity

          People

            91f2c0a8617b Navpreet Ahuja
            9c941f86b120 Pablo Silva
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: