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

src endpoint(API 2.0) doesn't support branch name contains a slash symbol

    XMLWordPrintable

Details

    Description

      Summary

      src endpoint(API 2.0) returns an error 404 while making a request with a branch name contains a slash symbol

      Example:
      Branch name: try/slash
      curl -u <username>:<password> https://api.bitbucket.org/2.0/repositories/<username>/<repo-name>/src/try/slash/
      Returned Status Code: 404 { "type": "error", "error":

      {"message": "Changeset not found." }

      }

      Branch name: master
      curl -u <username>:<password> https://api.bitbucket.org/2.0/repositories/<username>/<repo-name>/src/master/
      Returned Status Code: 200 OK

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rchia Ronald C.
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: