Skip to content

[OC 10.0][OS X] libsync is able to download files with 4 byte-unicode names but upload etc #5661

Closed

Description

@SamuAlfageme

4 byte-unicode (a.k.a. emoji) filenames are supported in ownCloud 10.0 (owncloud/core#4513)

Expected behavior

The client should be able to handle this filenames as long as the underlying filesystem supports them as well.

Actual behavior

  • Sync a file/folder with an emoji filename from the server into the desktop client (v2.3.1)
  • Upload a file/folder to the server with a 4byte-unicode name prompts this error
  • Delete/rename the file/folder on the server, the client doesn't keep up with these changes

Solving this will be enough to close some old issues:

Activity

  1. modified the milestones: 2.3.1, 2.3.2 on Mar 28, 2017
  2. added
    p2-high
    on Mar 28, 2017
  3. guruz commented on Mar 28, 2017

    @guruz
    Contributor

    Note that this might be macOS specific because we have to do file name mangling on macOS https://github.com/owncloud/client/search?utf8=%E2%9C%93&q=normalization&type= .

    How does it look on other OS?

    @michaelstingl this would mandate an earlier 2.3.2

  4. SamuAlfageme commented on Mar 28, 2017

    @SamuAlfageme
    ContributorAuthor

    @guruz you're right, I assumed the name-conversion error was platform-independent but just tried with Win10 and no flags were raised there. My bad 😅

  5. changed the title [-][OC 10.0] libsync is able to download files with 4 byte-unicode names but nothing else[/-] [+][OC 10.0][OS X] libsync is able to download files with 4 byte-unicode names but nothing else[/+] on Mar 28, 2017
  6. michaelstingl commented on Mar 28, 2017

    @michaelstingl
    Contributor

    @michaelstingl this would mandate an earlier 2.3.2

    Works for me

  7. ogoffart commented on Mar 29, 2017

    @ogoffart
    Contributor

    I bet that's because iconv can't convert the string on macOS (cf. #2777 )

    i.e: c_utf8_from_locale returns a null string in csync_vio_local_readdir. (because the iconv call itself returns null in c_iconv)

    This used to block the whole sync before commit f6cd2c7, but now such file are simply ignored.

    So I believe this is a bug in iconv. Maybe we simply need to update iconv.
    Alternatively, we should not use iconv at all and use a callback from the Qt code to convert from "UTF-8-MAC", whatever that is. (i guess that's NFD vs. NFC normalisation)

  8. guruz commented on Apr 19, 2017

    @guruz
    Contributor

    Maybe we simply need to update iconv.

    We use the system iconv.

    @ogoffart Any proposal for your Qt code?
    Alternatively 2: Instead of using POSIX/csync _treaddir we could use something from Qt for reading directories.

  9. guruz commented on Apr 19, 2017

    @guruz
    Contributor

    This is messy. I'm trying a few things but I think this is too invasive for a patch release.

  10. changed the title [-][OC 10.0][OS X] libsync is able to download files with 4 byte-unicode names but nothing else[/-] [+][OC 10.0][OS X] libsync is able to download files with 4 byte-unicode names but upload etc[/+] on Apr 19, 2017
  11. added a commit that references this issue on Apr 19, 2017
  12. guruz commented on Apr 21, 2017

    @guruz
    Contributor

    @michaelstingl @pmaier1 Moving to 2.4, the needed patch is too invasive

  13. modified the milestones: 2.4.0, 2.3.2 on Apr 21, 2017
  14. added
    ReadyToTest
    on Jul 17, 2017
  15. SamuAlfageme commented on Sep 26, 2017

    @SamuAlfageme
    ContributorAuthor

    👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ReadyToTestp2-highsev3-mediumtype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions