1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues

Issues

Issue #8044 closed

user/follows API method returns deleted repositories (BB-9197)

Michael Müller
created an issue

The follows method on the user endpoint returns deleted repositories if a redirect url was supplied when they were deleted. Only after a call to a repositories endpoint method you find out it was deleted by receiving a 404 error. If no redirect url was supplied, they do not show up after the deletion.

I consider this a bug partly because there seems to be no way to find out that the repository no longer exists other than waiting for the 404 and partly because the other methods on the user endpoint do not return these repositories.

I see two possible fixes:

  • remove all deleted repositories from the responses (API users would no longer see the redirect url in the 'website' property)
  • provide the information that the repository was deleted (read_only or state would be a good place)

Comments (3)

  1. Log in to comment