Trouble with permissions using JWT for Jira Rest API

102 views
Skip to first unread message

Holger Frohloff

unread,
Sep 19, 2016, 5:42:07 PM9/19/16
to Atlassian Connect Dev
Hi,

I am developing an add-on for JIRA server (and Jira cloud).
I run my server locally using this command:
atlas-run-standalone --container tomcat7x --product jira --bundled-plugins com.atlassian.bundles:json-schema-validator-atlassian-bundle:1.0.4,com.atlassian.upm:atlassian-universal-plugin-manager-plugin:2.20.1-D20150924T170115,com.atlassian.jwt:jwt-plugin:1.5.4,com.atlassian.plugins:atlassian-connect-plugin:1.1.66 --jvmargs -Datlassian.upm.on.demand=true

- I have the "read" and "write" scopes (and I even tried with PROJECT_ADMIN scope). (see it queried with the JWT…)


- I create my JWT with the Ruby Gem "jwt" (through using https://github.com/MeisterLabs/atlassian-jwt-authentication).
- I have no trouble authenticating with JIRA and JWT and getting a list of projects or a single project.

What I want to do

Whenever I try to do this, I get the following error: "You cannot edit the configuration of this project."

What can I do, what am I missing?

Thank you.
Holger

Robert Massaioli

unread,
Sep 19, 2016, 6:06:26 PM9/19/16
to Atlassian Connect Dev
Hi Holger,

I just wanted to quickly say that the development environment that you are using to run Atlassian Connect is no longer supported. Also, the version of Atlassian Connect that you are running is extremely old (1.1.66). Git tells me that we released that version on Tue Dec 8 12:25:32 2015.  The version that is currently running in production is 1.1.107 and can be seen here: https://developer.atlassian.com/static/connect/docs/latest/release-notes/release-notes.html

What I strongly recommend you do is perform your development against a Cloud development environment by following the steps here: https://developer.atlassian.com/static/connect/docs/latest/guides/development-setup.html

If the problem still persists there then please let us know and we can look into it further.

Cheers,
Robert

Holger Frohloff

unread,
Sep 21, 2016, 1:45:31 AM9/21/16
to Atlassian Connect Dev
Thanks for your feedback Robert.
The cloud development environment is so incredibly slow, that it is a pain to use for API requests. Is there a way to speed that up?

Thanks in advance.
Holger

Holger Frohloff

unread,
Sep 21, 2016, 1:45:31 AM9/21/16
to Atlassian Connect Dev
Hi Robert.

I just tried the exact same steps with my cloud dev environment and I receive the same response:
"You cannot edit the configuration of this project."

Thank you for any help!

Best,
Holger

Am Dienstag, 20. September 2016 00:06:26 UTC+2 schrieb Robert Massaioli:

Peter Brownlow

unread,
Sep 27, 2016, 2:30:08 AM9/27/16
to Atlassian Connect Dev
Hi Holger,

Are you PUTting to /rest/api/{version}/project/{project}/properties/{property} from JavaScript in the user's browser, or from your server?
If from your server, could you try the debugging step of making the add-on user an administrator of this project? I suspect that the problem may involve user permissions.

Also, what HTTP response code is being returned with the error message?


-Peter
Reply all
Reply to author
Forward
0 new messages