API retuning "Project does not exist" when it does

Dennis Christilaw November 29, 2022

Hey all, not sure where my last post went, but I have an API issue where we're calling for a project via Adobe WorkFront and JIRA Cloud is returning "The value '{project_key}' does not exist from the field 'project'."

I see this project in a list of projects when I query the API, so I know it's there, not sure it will not return for Workfront.

Let me know if there is more information I can provide.

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 29, 2022

Welcome to the Atlassian Community!

One very quick one to check to start with - does the user you are using to try to read Jira Cloud have the "browse project" permission for the "missing" project?  If they can't see the issues in the project, you can get "this project does not exist" in the response!

Dennis Christilaw November 29, 2022

Thanks for the response!!

I thought it might be the perms as well, so, just to test, I set the user at Admin level in the project just to verify if it was indeed perms issue and I still get the same error.

I can select another project and it works just fine, it's just this one project.

It's not using any special schemes outside the ordinary.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 29, 2022

Mmm, this catches out a lot of people - admin means admin, not "can do anything" or project permissions. Making them an admin might not give them browse project.

You have to check the permission scheme - to whom does it grant "browse project"?  And is that user included by the rule? 

Dennis Christilaw November 30, 2022

I added a few more permission groups and this seems to have solved the issue. Better error messages would help here as well.

Thanks!

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 30, 2022

Yes, it would be better for a message of "project does not exist, or you cannot see it". (You don't want to leak information by saying "project exists, but you're not allowed in", it should not give away that the project exists)

Like Dennis Christilaw likes this
Dennis Christilaw November 30, 2022

"Permission Denied" is acceptable, it's generic and can mean you don't have perms to the company, board, project, other things and does not really risk much, but for those of us doing work like this, it would have made this a lot easier to troubleshoot.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 30, 2022

No, because you've now told your attacker that the project exists. 

Unless you change all the messaging to "permission denied", irrespective of whether it's the permissions or the non-existence of the project.

Dennis Christilaw November 30, 2022

True, but if an attacker has gotten this far, you have a LOT more issues than this. :)

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 30, 2022

Um, why?  Anyone can issue a REST call to look at a project on a Cloud system.  They could get this far in the first attempt, just by reading the docs or Community posts.

Amani BH
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 9, 2023

@Dennis Christilaw  I'm also facing the same issue, so could you please provide the privileges assigned when this issue was faced?

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 9, 2023

They added "browse project" for the user they were using

Suggest an answer

Log in or Sign up to answer