Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Crucible REST API: Repository key problem

Oliver Hall January 26, 2023

Hi,

Hopefully this is a simple one... I'm using the Crucible REST API for an integration with Visual Studio.

I need to query certain aspects of the repositories and while I can pull the repo list easily enough using:

<host>/rest-service/repositories-v1

and I get a repository name of, say, "MyRepo" ('name' being the property indicating the repo 'key').

Using that key to retrieve that repo works too.

<host>/rest-service/repositories-v1/MyRepo

returns just that repo data.

However, when I then try to pull any detail related to that repo, I get a <code>NotFound</code> and <message>Crucible SCM repository "MyRepo" not found.</message>

e.g.

<host>/rest-service/repositories-v1/change/MyRepo/1234

Both the repo name and the revision number are valid.

Am I making an error with the REST API, permissions. the repo key or is it just broken?

Thanks,

Oliver

P.S. I have tried the REST endpoint with both Basic auth and the X-Api-Key authentication, but no difference.  I would have thought I should be getting a 404 for that anyway?

1 answer

0 votes
Oliver Hall February 16, 2023

Not an answer - just a comment.

I thought the complaints over the lack of responsiveness on the forums from Atlassian was one of those internet moans (i.e. an impatient reaction when you don't get an immediate answer) but...

We're 3 weeks in now for an issue on a product I've paid to use (albeit a modest amount) and not a single reply from Atlassian?  It's not even "poor" service... just no service at all.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
4.8.10
TAGS
AUG Leaders

Atlassian Community Events