Repository hierarchy IDs are not included in REST responses.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 7.0.0
    • Affects Version/s: 2.4.0, 6.10.0
    • Component/s: API - REST
    • None
    • Severity 3 - Minor
    • 13

      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().

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

              Created:
              Updated:
              Resolved: