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

REST API doesn't work with fully qualified branch names

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 1.3.0
    • 1.2.0
    • API - REST, Repositories
    • None

    Description

      The REST API doesn't appear to work with fully qualified branch names (e.g refs/heads/master) returning a 400 Bad Request on my local machine and a 404 on stash-dev. The same call with the unqualified branch names (i.e master) works as expected.

      Doesn't work:
      https://stash-dev.atlassian.com/rest/api/latest/projects/STASH/repos/stash/commit/refs%2Fheads%2F1.0/changes?to=refs%2Fheads%2Fmaster&start=0&limit=1000

      Works:
      https://stash-dev.atlassian.com/rest/api/latest/projects/STASH/repos/stash/commit/1.0/changes?to=master&start=0&limit=1000

      Attachments

        Activity

          People

            Unassigned Unassigned
            mmcglynn Deez Nutz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: