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
Syncing via SFTP External Storage fails for files with hash character #21301
Server: 8.2.1 on Ubuntu 14.04
Client: 2.1.0 OSX 10.10
I have user-mounted external storage via SFTP.
On the external storage server, there is a file which contains a # in the filename:
Radio_#1.txt
On the client, it reports Service Unavailable while trying to download it:
Error downloading https://...../webdav/Radio_%231.txt - server replied: Service Unavailable
Removing the # from the filename and restarting the client sync allows the file to download as normal.
changed the title [-]Syncing via SFTP External Storage fails for files with special characters[/-][+]Syncing via SFTP External Storage fails for files with hash character[/+]on Dec 21, 2015
This is an upstream issue in phpseclib: phpseclib/phpseclib#778
Unfortunately no workaround on ownCloud side works because if we pre-encode the hash the file name will stay encoded when arriving on the SFTP storage.
However, It does sound like an ownCloud issue that it blocks on this failure, rather than continues and just logs the sync on those specific files as having failed.
Right, the problem here with "blocking the next files after error" is that it returns "Service unavailble", probably internally a StorageNotAvailable exception.
It should probably return a proper error instead, like NotFound or something. Seems like a case of "error is mistakenly interpreted as StorageNotAvailable".
Activity
RobinMcCorkell commentedon Dec 19, 2015
Confirmed on current master
cc @bantu
karlitschek commentedon Dec 20, 2015
@icewind1991
nwl commentedon Dec 20, 2015
Also, as a separate issue, the failure is blocking too. It won't progress on any other file syncing once it hits the error.
PVince81 commentedon Dec 21, 2015
It's not special characters, it's the hash character.
Umlauts and co should work fine.
See #11692 (comment)
Let's keep this ticket open to track the issue, because the linked issue is more about unit tests.
[-]Syncing via SFTP External Storage fails for files with special characters[/-][+]Syncing via SFTP External Storage fails for files with hash character[/+]PVince81 commentedon Dec 21, 2015
This is an upstream issue in phpseclib: phpseclib/phpseclib#778
Unfortunately no workaround on ownCloud side works because if we pre-encode the hash the file name will stay encoded when arriving on the SFTP storage.
nwl commentedon Dec 21, 2015
@PVince81 Thanks for the update.
However, It does sound like an ownCloud issue that it blocks on this failure, rather than continues and just logs the sync on those specific files as having failed.
PVince81 commentedon Dec 21, 2015
Right, the problem here with "blocking the next files after error" is that it returns "Service unavailble", probably internally a
StorageNotAvailableexception.It should probably return a proper error instead, like NotFound or something. Seems like a case of "error is mistakenly interpreted as StorageNotAvailable".
nwl commentedon Dec 21, 2015
Should I file a separate bug for that?
PVince81 commentedon Dec 21, 2015
I'm fine with keeping this current ticket to track that. Thanks.
nwl commentedon Jan 6, 2016
Looks like the upstream issue has been fixed. Will the latest version of phpseclib get included with the next release of owncloud?
nwl commentedon Jan 7, 2016
Also, found a silent failure in syncing a file with the Icelandic character í
SyncLog shows no failure or error and the client just doesn't sync the file.
4 remaining items
PVince81 commentedon May 31, 2016
Still not solved in 9.1 beta1.
Seems we missed upgrading the library... hopefully next opportunity is 9.2.
Assigning to self.
PVince81 commentedon Jul 1, 2016
PR to update phpseclib to 2.0.2: #25339
PVince81 commentedon Oct 4, 2016
Fixed on master thanks to phpseclib update! Fix will be in 9.2
lock commentedon Aug 3, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.