Skip to content
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

go-jira-1.0.18 is unable to log into Jira #198

Closed
williamh opened this issue Jul 30, 2018 · 11 comments
Closed

go-jira-1.0.18 is unable to log into Jira #198

williamh opened this issue Jul 30, 2018 · 11 comments

Comments

@williamh
Copy link

This is with go-jira 1.0.18 and a private jira instance.
I have tried both with config.yml and without config.yml. Here is what my config.yml looks like:
endpoint: https://jira.domain.biz
user: [email protected]
...

This seemed to start when I upgraded to 1.0.18 from 1.10.17, but when I downgraded again it didn't resolve.

Can you help?

Thanks,

William

@williamh
Copy link
Author

I was also advised that nothing changed on our Jira instance yesterday.

@coryb
Copy link
Contributor

coryb commented Jul 31, 2018

I don't see anything in the changelog that would likely break you, and since you tested by reverting back to 1.0.17 and it still didn't work, I don't see how it could be caused from a code change.

So I am not sure what is going on. What authentication configuration options to you use? Do you use API tokens? Do you use a password-source configuration option (ie use pass or keyring to get password)?

If you are using the session/cookie authentication perhaps there is an issue with your cookies file, try removing $HOME/.jira.d/cookies.js and logging in with jira login.

There is a new jira session command which should help report if you have an active session (it will not attempt to login it, it will just report active sessions).

@artem-nefedov
Copy link

Can confirm that the same is happening to me.
Removing cookie file does not help.
Calling jira login reports "OK Found session for username", but afterwards it just asks for password again, and -vvv output shows "You are not authenticated".

@williamh
Copy link
Author

williamh commented Aug 1, 2018

After reverting to 1.0.17 and removing cookies.js. I was able to log in successfully.
The step I missed yesterday was removing cookies.js.

@coryb
Copy link
Contributor

coryb commented Aug 2, 2018

I no longer have an environment to easily test this code, my work and my test site both use api tokens now. I will try to setup a local jira instance to see if I can use it for testing, I dont have any idea what is happening at the moment.

@williamh williamh changed the title Suddenly, I am unable to log into Jira with go-jira go-jira-1.0.18 is unable to log into Jira Aug 2, 2018
@coryb
Copy link
Contributor

coryb commented Aug 3, 2018

I have released a new version, which I think addresses this issue. It seems there was a subtle change in some of the dependencies that broke some logic replaying requests post-login. Please give it a try, hopefully it will fix your issues.

@artem-nefedov
Copy link

For me, the new version works, but it asks for password every time, even though the cookie file is created.
With -vvv it always says "You are not authenticated", if I enter password it proceeds to work as normal. Removing cookie file manually does not help.

@coryb
Copy link
Contributor

coryb commented Aug 3, 2018

Okay, thanks for feedback, I will see if I can reproduce this issue and see why cookies might not be stored/resent correctly.

@coryb
Copy link
Contributor

coryb commented Aug 3, 2018

Opened a new issue #201 for the cookies-no-working issue.

@coryb
Copy link
Contributor

coryb commented Aug 4, 2018

I have released another version to fix a regression with cookies cached on disk not being applied to subsequent requests.

@coryb coryb closed this as completed Aug 4, 2018
@FilBot3
Copy link

FilBot3 commented Aug 8, 2018

Thank you @coryb for always be quick to respond and help out. v1.0.20 works for me as well so far for everything I do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants