Skip to content

[macOS] Emojis in file name fatally interrupts complete sync #5231

Closed

Description

@strugee

Steps to reproduce

  1. Create a file with some invalid characters. I believe something🎲.txt will trigger the problem, although I'm not sure.
  2. Wait until the sync client UI shows the "please rename this file with invalid characters" error
  3. Make some other changes

Expected behaviour

Sync should pick up the changes made in step 3

Actual behaviour

Sync stops completely and refuses to continue uploading and downloading

Server configuration

Operating system: Debian 8

Web server: Apache 2.4

Database: MySQL

PHP version: PHP 5.6.24-0+deb8u1

ownCloud version: 9.0.4

Storage backend (external storage): local filesystem

Client configuration

Client version: 2.2.3 (will test with the latest ASAP)

Operating system: Mac OS X

OS language: English

Installation path of client: /Applications/ownCloud.app

I can share my logs if necessary, but I'd rather not as it seems like this should be reproducible/solvable without them.

Activity

  1. changed the title [-]Invalid characters fatally interrupts sync[/-] [+]Emojis in file name fatally interrupts complete sync[/+] on Oct 9, 2016
  2. guruz commented on Oct 9, 2016

    @guruz
    Contributor

    At the moment this is by design.
    We're thinking to make those kind of situations less fatal, but nothing is decided yet.

  3. jnweiger commented on Oct 20, 2016

    @jnweiger
    Contributor

    If my copy/paste serves my right, the UTF-8 code of that glyph is a 4-byte code "f0 9f 8e b2"
    This cannot work in any mariadb database, unless
    a) local admin experiments with CHARACTER SET utf8mb4, or
    b) brave local admin dares to experiment with sqlite, or
    c) we do a bold step and start storing filenames as binary blobs without any enforced semantics (A filename is a byte stream from unknown source. It may trigger odd unicode-glyphs when interpreted as utf8, or worse, it may even have no meaning in unicode-land at all.)

  4. ckamm commented on Oct 28, 2016

    @ckamm
    Contributor

    The client considers the "400 Bad Request" that it gets from the server a error which should lead to a failed sync.

    For me, the error is blacklisted and suppressed in future sync runs though (it still pops up occasionally). And changes to other files do trigger sync runs that can finish successfully. @strugee does that not work for you?

  5. strugee commented on Oct 28, 2016

    @strugee
    Author

    @ckamm I can't reproduce. Creating a new file does trigger a new sync, but it gets interrupted by the bad filename before uploading the new file.

  6. SamuAlfageme commented on Mar 16, 2017

    @SamuAlfageme
    Contributor

    This should be fixed after ownCloud v10.0 make its release \o/

  7. added this to the 2.3.2 milestone on Mar 28, 2017
  8. changed the title [-]Emojis in file name fatally interrupts complete sync[/-] [+][macOS] Emojis in file name fatally interrupts complete sync[/+] on Apr 19, 2017
  9. guruz commented on Apr 19, 2017

    @guruz
    Contributor

    It's not fixed by server only unfortunately, there's also an issue with UTF-8-MAC and iconv..
    #5661 (comment)

  10. guruz commented on Apr 19, 2017

    @guruz
    Contributor

    Let's track this in #5661

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions