1. Bitbucket Website
  2. Public Issue Tracker
  3. master


Issue #6993 resolved

Do not return the full html when accessing branches over the api for a deleted repo (BB-8058)

Marcus Bertrand [Atlassian]
staff created an issue

If you access the API for /branches on a deleted (but redirected) repo, you'll get the full page 404 with the redirect instructions. The API shouldn't do this.

This has been shown to break some clients expecting a pure json response. Like Bamboo.

Comments (4)

  1. Brian Nguyen

    Confirmed that this works as expected.

    $ curl https://bitbucket.org/\!api/1.0/repositories/bnguyen/deleted/branches
    The repository bnguyen/deleted has been deleted. According to the owner, it can now be found at http://www.atlassian.com/
  2. Log in to comment