You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ownCloud external storage mount doesn't work with encryption #5952
yes, sounds like similar problems we had with samba. The strange think here is that webdav worked in the past, I always used the webdav back-end to test encryption and I doubt that the fseek() implementation changed lately.
I've tried on the latest master and it might be something else.
When downloading a file the file is empty.
Editing text files directly with the text editor work.
There is an additional issue when using two ownCloud: if backend OC is encrypted and not frontend OC, when uploading a file through frontend OC with WebDAV, the part file will not be treated correctly by the backend OC.
The key file resolution will cut off the .part from the frontend's part file, which prevents the encryption code to use the key.
The issue is when the remote server is encrypted.
Try uploading a file there using the sync client: the part file cannot be renamed properly on the remote server.
One idea would be to disable encryption for the "ownCloud" external storage backend but keep it for the "WebDAV" external storage backend which is now more intended for "real" WebDAV servers like lighttpd.
Note that for server to server sharing we already disable encryption of the remote files.
Disabling encryption would prevent the issue of having files encrypted multiple times in cascade.
Activity
schiessle commentedon Nov 19, 2013
yes, sounds like similar problems we had with samba. The strange think here is that webdav worked in the past, I always used the webdav back-end to test encryption and I doubt that the fseek() implementation changed lately.
PVince81 commentedon Nov 20, 2013
I've tried on the latest master and it might be something else.
When downloading a file the file is empty.
Editing text files directly with the text editor work.
Here is the error log:
PVince81 commentedon Nov 20, 2013
Note that I have OC 5.0.13 as WebDAV backend, I haven't tried with an OC 6 backend.
Pazu commentedon Nov 21, 2013
Reminds me also of owncloud-archive/apps#1344.
PVince81 commentedon Feb 4, 2014
There is an additional issue when using two ownCloud: if backend OC is encrypted and not frontend OC, when uploading a file through frontend OC with WebDAV, the part file will not be treated correctly by the backend OC.
The key file resolution will cut off the
.partfrom the frontend's part file, which prevents the encryption code to use the key.PVince81 commentedon Jun 16, 2014
We might need to eventually find a fix for this to make server to server sharing work properly with encryption.
@karlitschek @craigpg FYI
schiessle commentedon Jun 16, 2014
didn't had a look at this issue in detail. But I tested server-to-server sharing with encryption and I could read/write files just fine
PVince81 commentedon Jun 17, 2014
The issue is when the remote server is encrypted.
Try uploading a file there using the sync client: the part file cannot be renamed properly on the remote server.
PVince81 commentedon Aug 19, 2014
One idea would be to disable encryption for the "ownCloud" external storage backend but keep it for the "WebDAV" external storage backend which is now more intended for "real" WebDAV servers like lighttpd.
Note that for server to server sharing we already disable encryption of the remote files.
Disabling encryption would prevent the issue of having files encrypted multiple times in cascade.
27 remaining items
DeepDiver1975 commentedon Jan 7, 2015
@schiesbn can you come up with a PR - THX
schiessle commentedon Jan 7, 2015
yes, this would be the simple and quick solution. I will prepare a PR later today
DeepDiver1975 commentedon Jan 7, 2015
great - thx
PVince81 commentedon Jan 7, 2015
Fix is here: #13156
CC @ZacharyDuBois FYI
PVince81 commentedon Jan 7, 2015
There's a better fix here #13160
Please ignore the previous one.
Note that it will still encrypt files on the target OC for now (see comment here: #13156 (comment))
[-]WebDAV mount doesn't work with encryption[/-][+]ownCloud external storage mount doesn't work with encryption[/+]ZacharyDuBois commentedon Jan 8, 2015
I will give it a test the next time I get a chance :)
MorrisJobke commentedon Jan 16, 2015
fixed with #13160
carlaschroder commentedon Jan 28, 2015
removing release note tag cos 13160