Open arnoldrw opened 1 year ago
This is an important bug and was the reason why our Jira Cloud tests were failing.
I think the default value for the permission scheme is actually always Actually as you say the best option is to leave blank.1000
. So perhaps that is the best option?
I really dislike the current create_project()
method. It may be best to re-implement now that we have a working test setup:
Currently:
Bug summary
Currently this code is present in client.py which calls this api.
The problem comes from the last two lines:
The problem that can arise is as follows. If:
Then the create call will fail with the error:
This is due to the mismatch between the two levels.
Since issueSecurityScheme is an optional parameter in the create endpoint
Suggestion to fix would be in a case where issueSecurityScheme was not passed by the caller, then do not set one.
In addition - the setting based on detecting "default" in the name present here could cause similar unintentional harm.
Is there an existing issue for this?
Jira Instance type
Jira Cloud (Hosted by Atlassian)
Jira instance version
No response
jira-python version
3.5.2
Python Interpreter version
3.8
Which operating systems have you used?
Reproduction steps
Stack trace
Expected behaviour
Project created successfully - and issue security scheme not being provided is respected by not being set.
Additional Context
No response