Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-10312

Repository Browse REST API 404

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Tracked Elsewhere
    • None
    • None
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Problem Definition

      REST API endpoint for repository browsing returns a 404 for valid repositories that are empty.

       projects/pkey/repos/rslug/browse
      

      Suggested Solution

      When using the browse REST point:
      For empty repos: return a valid request with with no content or a useful message.

      Workaround

      Use a try/catch block and post-process the list of 404 repos to know which ones are really empty.

              bturner Bryan Turner (Inactive)
              bstuart Ben Stuart (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: