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

Issue #6993 resolved
Marcus Bertrand
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\!api/1.0/repositories/bnguyen/deleted/branches
    The repository bnguyen/deleted has been deleted. According to the owner, it can now be found at
  2. Log in to comment