rhevm-qe-automation / pytest_jira

py.test plugin to integrate with JIRA
GNU General Public License v2.0
29 stars 25 forks source link

Due to change in mypermissions endpoint, connection can't be made #111

Closed gs202 closed 4 years ago

gs202 commented 4 years ago

Jira has announced changes to /rest/api/2/mypermissions (Get my permissions) endpoint, this causes 400 error on connection Error: '{"errorMessages":["The \'permissions\' query parameter is required."],"errors":{}}'

gs202 commented 4 years ago

@lukas-bednar i'd like to solve it

ajeain commented 4 years ago

hey, when is the fix expected to be released? Any workaround in the meantime? Is the issue only in this plugin or also a fix is needed by Attlassian? thank you

lukas-bednar commented 4 years ago

@gs202 Thank you for a fix.

@ajeain I believe it is an issue of this plugin. I have merged #113 and released new version 0.3.14 . Sorry for delaying that ...

ajeain commented 4 years ago

now, with the new version, I am getting the following error: \INTERNALERROR> elif not r.json()['permissions']['BROWSE']['havePermission']: INTERNALERROR> KeyError: 'BROWSE'

gs202 commented 4 years ago

@lukas-bednar @ajeain missed that on my fix, sorry. Opened a new PR to solve this issue #114