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

fix: make sure to create parent directories in sftp #1225

Merged
merged 5 commits into from
Oct 21, 2023
Merged

Conversation

0utplay
Copy link
Member

@0utplay 0utplay commented May 13, 2023

Motivation

When creating a new file on a sftp storage in a non existant directory the file creation will fail instead of creating the parent directories. This will result in an exception when installing a template on a sftp storage due to the creation of the config/sponge/sponge.conf file.

Modification

Made sure to create the directories before opening an outputstream or creating a file in a sftp template storage. Furthermore the tests were extended to cover the creation of files in non existant directories

Result

The parent directories are created.

@0utplay 0utplay added v: 4.X This pull should be included in the 4.0 release t: fix A pull request introducing a fix for a bug. in: module An issue/pull request releated to one of the internal modules labels May 13, 2023
@0utplay 0utplay requested a review from derklaro May 13, 2023 21:23
@0utplay 0utplay self-assigned this May 13, 2023
@0utplay 0utplay requested a review from derklaro May 16, 2023 09:03
@github-actions
Copy link

github-actions bot commented May 16, 2023

Test Results

  47 files  ±0    47 suites  ±0   1m 24s ⏱️ +7s
322 tests ±0  322 ✔️ ±0  0 💤 ±0  0 ±0 
652 runs  ±0  652 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit eea778b. ± Comparison against base commit 5a564d0.

♻️ This comment has been updated with latest results.

@0utplay 0utplay modified the milestones: 4.0.0-RC9, 4.0.0-RC10 Jul 9, 2023
@derklaro derklaro merged commit 8045877 into nightly Oct 21, 2023
6 checks passed
@derklaro derklaro deleted the sftp-storage branch October 21, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: module An issue/pull request releated to one of the internal modules t: fix A pull request introducing a fix for a bug. v: 4.X This pull should be included in the 4.0 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants