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

Repository hierarchy IDs are not included in REST responses.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 7.0.0
    • 2.4.0, 6.10.0
    • API - REST
    • None

    Description

      Issue Summary

      When retrieving a repository via REST, the returned JSON does not include the repository's hierarchy ID.

      Steps to Reproduce

      1. Retrieve a repository using /rest/api/1.0/projects/<KEY>/repos/<slug> (or observe any other REST response with a repository in it)

      Expected Results

      There is a "hierarchyId" property providing the repository's hierarchy ID.

      Actual Results

      No "hierarchyId" is present.

      Workaround

      There is no workaround for the REST payload. However, if you have access to the server disk, you can check $BITBUCKET_HOME/shared/data/repositories/<ID>/repository-config and find the hierarchy ID there. The other alternative is to check the repository table in the database, which will also have it. Java apps also have access to Repository.getHierarchyId().

      Attachments

        Activity

          People

            bturner Bryan Turner (Inactive)
            bturner Bryan Turner (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: