-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[enc] remember original fopen access type in pre-proxy #7454
Conversation
So you eventually decided to try out that route 😄 |
@schiesbn you can test this with the FTP storage which also messes up the file mode. |
@PVince81 Yes, I already tested it with FTP, works fine here. |
Nice. Here is the issue for reference: #5950 |
…ey change during the fopen call, e.g. 'r' becomes 'r+' if we open an URL
A new inspection was created. |
makes sense. But can't test at the moment. 👍 |
@ser72 I created a branch with the same fixes based on stable6 and some additional fixes which aren't backported yet. On stable6 S3 works for you if I understand you correctly... Can you try this branch https://github.com/owncloud/core/tree/enc_remember_fopen_mode_stable6 with respect to #7428 |
👍 Thanks @schiesbn . Sorry you had to "fix" so many times for me to test. Looks like master needs some work. :) But this fix is good. |
@ser72 great that this fixes the issue at least for stable6. Can you make one final test for me? Can you try it once more with this branch: https://github.com/owncloud/core/tree/enc_isolated_fixes The other branch you tested first contains some additional fixes. I would like to know if we need them or if it also works with the single fix proposed here. Thanks! |
👍 This branch works as well. |
Great, thanks for testing! |
No worries! Thanks for fixing :) |
Code makes sense 👍 |
still waiting for Jenkins before I merge it @karlitschek backport after Jenkins finished? |
Another Last Minute backport. :-/ But I guess we have to. |
🚀 Test Passed. 🚀 |
🚀 Test Passed. 🚀 |
[enc] remember original fopen access type in pre-proxy
backported to stable6: 9661001 |
remember original fopen access type in pre-proxy because sometimes they change during the fopen call, e.g. 'r' becomes 'r+' if we open an URL.
This fixes failing downloads of unencrypted files while encryption is enabled from a ftp mount.
@PVince81 this could also solve the webdav problems we discussed yesterday, but at the moment I don't have a webdav to test. Will try it tomorrow.
@ser72 This could also solve the S3 issue you reported #7428. Maybe you can give it a try...