Skip to content

Syncing via SFTP External Storage fails for files with hash character #21301

Closed

Description

@nwl

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.

Activity

  1. RobinMcCorkell commented on Dec 19, 2015

    @RobinMcCorkell
    Contributor

    Confirmed on current master

    cc @bantu

  2. karlitschek commented on Dec 20, 2015

    @karlitschek
    Contributor
  3. nwl commented on Dec 20, 2015

    @nwl
    Author

    Also, as a separate issue, the failure is blocking too. It won't progress on any other file syncing once it hits the error.

  4. PVince81 commented on Dec 21, 2015

    @PVince81
    Contributor

    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.

  5. 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
  6. PVince81 commented on Dec 21, 2015

    @PVince81
    Contributor

    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.

  7. added this to the milestone on Dec 21, 2015
  8. nwl commented on Dec 21, 2015

    @nwl
    Author

    @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.

  9. PVince81 commented on Dec 21, 2015

    @PVince81
    Contributor

    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".

  10. nwl commented on Dec 21, 2015

    @nwl
    Author

    Should I file a separate bug for that?

  11. PVince81 commented on Dec 21, 2015

    @PVince81
    Contributor

    I'm fine with keeping this current ticket to track that. Thanks.

  12. nwl commented on Jan 6, 2016

    @nwl
    Author

    Looks like the upstream issue has been fixed. Will the latest version of phpseclib get included with the next release of owncloud?

  13. nwl commented on Jan 7, 2016

    @nwl
    Author

    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.

  14. 4 remaining items

  15. removed this from the milestone on Feb 12, 2016
  16. PVince81 commented on May 31, 2016

    @PVince81
    Contributor

    Still not solved in 9.1 beta1.

    Seems we missed upgrading the library... hopefully next opportunity is 9.2.

    Assigning to self.

  17. self-assigned this
    on May 31, 2016
  18. modified the milestones: , , , 9.1.1 on Jun 30, 2016
  19. PVince81 commented on Jul 1, 2016

    @PVince81
    Contributor

    PR to update phpseclib to 2.0.2: #25339

  20. PVince81 commented on Oct 4, 2016

    @PVince81
    Contributor

    Fixed on master thanks to phpseclib update! Fix will be in 9.2

  21. lock commented on Aug 3, 2019

    @lock

    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.

  22. locked as resolved and limited conversation to collaborators on Aug 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions