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: use workdir for temp bkp file #511

Merged
merged 5 commits into from
Aug 23, 2024
Merged

fix: use workdir for temp bkp file #511

merged 5 commits into from
Aug 23, 2024

Conversation

im-adithya
Copy link
Member

@im-adithya im-adithya commented Aug 19, 2024

Fixes #391

I failed to see the "failed to create decrypted reader" error as shown in the issue comment, but it should be good as I tested it twice (and saw only the below issue)

This PR solves the issue which gives the "failed to create temporary output file: operation not permitted" error because the directory being used is outside the permitted directory

Tests

  • HTTP - Wails
  • HTTP - HTTP
  • Wails - HTTP
  • Wails - Wails

api/backup.go Outdated Show resolved Hide resolved
.github/workflows/wails.yml Outdated Show resolved Hide resolved
@im-adithya im-adithya marked this pull request as ready for review August 19, 2024 09:39
@rolznz rolznz changed the title chore: use workdir for temp bkp file fix: use workdir for temp bkp file Aug 19, 2024
@rolznz
Copy link
Contributor

rolznz commented Aug 21, 2024

@im-adithya what tests did you do for this?

but it should be good as I tested it twice (and saw only the below issue)

what was the issue?

@im-adithya
Copy link
Member Author

im-adithya commented Aug 21, 2024

what was the issue?

I was referring to the screenshot you posted in #391

Failed to create decrypted reader: failed to read salt: EOF

But it is an old version so i think this fix should solve the problem

@rolznz
Copy link
Contributor

rolznz commented Aug 21, 2024

@im-adithya can you re-review your code and test it again

@rolznz rolznz added this to the v1.6.0 milestone Aug 21, 2024
Copy link
Contributor

@rolznz rolznz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK (Linux)

@rolznz rolznz merged commit 315cf7e into master Aug 23, 2024
8 checks passed
@rolznz rolznz deleted the task-macos-bkp branch August 23, 2024 09:47
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 this pull request may close these issues.

Restore backup on Mac Desktop does not work
3 participants