Details
-
Bug
-
Resolution: Fixed
-
Low
-
2.4.0, 6.10.0
-
None
-
Severity 3 - Minor
-
13
-
Description
Issue Summary
When retrieving a repository via REST, the returned JSON does not include the repository's hierarchy ID.
Steps to Reproduce
- 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().