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

New-JiraSession fails when ApplicationData folder does not exist yet #512

Open
hmmwhatsthisdo opened this issue Jul 24, 2024 · 0 comments · Fixed by #513
Open

New-JiraSession fails when ApplicationData folder does not exist yet #512

hmmwhatsthisdo opened this issue Jul 24, 2024 · 0 comments · Fixed by #513

Comments

@hmmwhatsthisdo
Copy link
Contributor

Description

Calling New-JiraSession fails if executing in an environment where the folder returned by [System.Environment]::GetFolderPath('ApplicationData') doesn't exist yet. This happens frequently in embedded/serverless environments.

Steps To Reproduce

  1. Use an embedded/serverless execution platform (e.g. AWS Lambda) to import JiraPS
  2. Call New-JiraSession

Expected behavior

JiraPS creates specified config directory, even if it doesn't exist yet

Screenshots

Your Environment

JiraPS 2.14.7

Possible Solution

Adjusting GetFolderPath calls to include "Create" should fix this.

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

Successfully merging a pull request may close this issue.

1 participant