-
-
Notifications
You must be signed in to change notification settings - Fork 876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.0.1 - JiraCookieAuth - TypeError: session() takes 1 positional argument but 2 were given when creating a JIRA instance with auth=(username,password) #1035
Comments
To clarify, this exact code was working fine this morning with version 2.0.0 |
Thx for your issue. I'll help investigate this afternoon. |
I can repro on jira v8.5.4 => that's a start |
i think the "auth" parameter was "potentially" misused in prev versions or worked by accident. I don't know the exact history of those parameters. could you try conn = JIRA('https://jira.motus.com', basic_auth=(username, password)) that seems to work for me if this is the case we might need to add something in the readme to warn people about the changes in v3.0.0 I was going to point you to the documentation here https://jira.readthedocs.io/en/master/api.html#jira.JIRA but i see the documentation for auth is not properly generated. => PR #1038 will fix that following example in the documentation shows though the usecase you're pointing to I'll start a branch which at least adds a failing test for this |
created a branch with a test testing this. |
|
@ssbarnea maybe we should also raise a deprecation warning here when people are using Jira Cloud? its not yet deprecated for jira server so it should work here |
with new jira 3.0.1 auth stopped working and has issues with to many params underneath. Using `basic_auth` seem to be more stable approach. See also pycontribs/jira#1035
+1 on cookie based auth. |
@ssbarnea cookie based login is still broken for jira server... |
Based on what I see on screen it seems that that merge did close this ticket even if it did not had a "fixes: #num" block on it. A glitch in the github matrix? Next time just reopen if you think appropiate. |
Is there a workaround for this (other than downgrading to 2.0.0) ? It is still failing in the last version
|
…ycontribs#1038) * some part of the documentation wasn't properly generated. see pycontribs#1035 * adding warnings about deprecated auth mechanism for jira cloud in examples * this should fix the mismatch between the white background and the line length of the docs Co-authored-by: Neefs, Jef <jef.neefs@barco.com>
Before raising any bug be sure that you used the latest release and that it still reproduces with the latest master. No other version is supported.
Describe the bug
Using the new package published an hour ago, I get a runtime arg error when opening a connection.
To Reproduce
Expected behavior
I get a connection
Stack Trace
Version Information
Type of Jira instance:
Python Interpreter: 3.8
jira-python: 3..0.1
OS: WSL Ubuntu
IPython (Optional):
Other Dependencies:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: