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

Saving cookies fails if ~/.jira.d is not present #32

Closed
mikepea opened this issue Jan 29, 2016 · 0 comments
Closed

Saving cookies fails if ~/.jira.d is not present #32

mikepea opened this issue Jan 29, 2016 · 0 comments

Comments

@mikepea
Copy link
Collaborator

mikepea commented Jan 29, 2016

If /etc/go-jira.yml is used to set the endpoint, then there is no reason for the user to create their ~/.jira.d directory manually.

This then leads to CmdLogin breaking, as it cannot save the cookies file:

2016-01-29T11:02:54.109Z ERROR [util.go:252] Failed to open /Users/mikepea/.jira.d/cookies.js: open /Users/mikepea/.jira.d/cookies.js: no such file or directory
@coryb coryb closed this as completed in 6644579 Jan 29, 2016
coryb added a commit that referenced this issue Jan 29, 2016
Fixes #32 - make path to cookieFile if it's not present
pdericson pushed a commit to pdericson/go-jira that referenced this issue Sep 14, 2017
TL;DR, this ensures ~/jira.d is present, with 0755 perms.

If ~/jira.d isn't present, we can't write to the cookieFile, which
breaks CmdLogin. This is particularly an issue when using /etc/go-jira.yml
to get an entire team using go-jira easily :)

This fixes this by ensuring the cookieFile dir is present before
writing to it.
pdericson pushed a commit to pdericson/go-jira that referenced this issue Sep 14, 2017
Fixes go-jira#32 - make path to cookieFile if it's not present
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

1 participant