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
Files with invalid UTF-8 names should be synced #32251
Filenames should be opaque byte streams for us. Whatever bytes a user puts into owncloud, we should store that and bring it back unchanged.
Interpreting the encoding of a filename is a problem of the representation layer, not of the transport layer. I envision ownCloud to become a reliable transport layer amongst filesystems. Representation should be a best effort business for us only.
Currently the owncloud-client evaluates filenames according to the current locale and rejects files with a name that is invalid in the local encoding.
Better: owncloud-client sends the encoding along with the filename, so that representation layers (e.g. web-interface, other clients on different os) can correctly decide how to represent these names.
GitMate.io thinks the contributor most likely able to help you is @PVince81.
Possibly related issues are #20880 (If a folder has a file/folder with non-UTF-8 in its name, its contents can't be listed in the webinterface), #8217 (File contains invalid characters that can not be synced cross plattform), #21360 (File that were locked cannot still be synced with 8.2.2), #1012 ("AddDefaultCharset utf-8" should be added to main .htaccess file), and #21365 (UTF-8 NFD file name on SMB storage cannot be accessed).
This would also imply that we must get rid of any possible file name normalization we have in place in core and reexamine the reasons we had to put them there in the first place.
More trouble could happen with external storages whenever said storage is mounted with non-UTF-8 encoding.
The ownCloud macOS desktop client also does a normalization before uploading.
Hm, I think with our focus on UTF-8 on the server we're doing quite well.
@guruz normalizeUnicode() is only optionally called by normalizePath() when $keepUnicode is false.
Both server and client should not mess with glyphs. As long as one does, both may :-)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.
Activity
ownclouders commentedon Aug 6, 2018
GitMate.io thinks the contributor most likely able to help you is @PVince81.
Possibly related issues are #20880 (If a folder has a file/folder with non-UTF-8 in its name, its contents can't be listed in the webinterface), #8217 (File contains invalid characters that can not be synced cross plattform), #21360 (File that were locked cannot still be synced with 8.2.2), #1012 ("AddDefaultCharset utf-8" should be added to main .htaccess file), and #21365 (UTF-8 NFD file name on SMB storage cannot be accessed).
PVince81 commentedon Aug 6, 2018
This would also imply that we must get rid of any possible file name normalization we have in place in core and reexamine the reasons we had to put them there in the first place.
More trouble could happen with external storages whenever said storage is mounted with non-UTF-8 encoding.
jnweiger commentedon Aug 7, 2018
Oh, did not know we do filename normalization in core. Do you have a pointer where that happens?
PVince81 commentedon Aug 7, 2018
@jnweiger here https://github.com/owncloud/core/blob/stable10/lib/private/Files/Filesystem.php#L840
you can grep for usages...
guruz commentedon Aug 10, 2018
The ownCloud macOS desktop client also does a normalization before uploading.
Hm, I think with our focus on UTF-8 on the server we're doing quite well.
jnweiger commentedon Aug 10, 2018
@guruz normalizeUnicode() is only optionally called by normalizePath() when $keepUnicode is false.
Both server and client should not mess with glyphs. As long as one does, both may :-)
stale commentedon Sep 20, 2021
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.