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

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

    XMLWordPrintable

Details

    Description

      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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            58f67110e2d2 madmike
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: