Filenames and special char

Ask all your questions regarding OC 9.0 Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
zark22
Newbie
Posts: 5
Joined: Wed Jul 13, 2016 12:41 pm

Filenames and special char

Postby zark22 » Wed Jul 13, 2016 12:48 pm

I'm having a (metric) ton of issues with an owncloud i've setup for a friend.

The main issue is due to filenames.

I've looked around in the "data" folder, and i realized that owncloud is actually keeping all original filenames and data structures.
This is great for disaster recovery, but can cause issues with file/directory names.

Also, the ":" char is crashing php 3rdparty/sabre/uri/lib/functions.php:181

The fix right now is telling my friend to avoid special char in his folders ... But that's just band-aid ...



Please add an option to let owncloud handle the server FS in a more robust manner. (we all backup the sql anyways).
And a fix is needed for that phplib to avoid crashing the whole sync if a filename or directory contains ":"



Thankyou

tflidd
Forum Moderator
Posts: 7159
Joined: Sat Dec 07, 2013 7:27 pm
ownCloud version: 8.2.3
Webserver: Apache
Database: MySQL
OS: Linux

Re: Filenames and special char

Postby tflidd » Wed Jul 13, 2016 2:04 pm

How do you get this error? Which version are you using? I could rename a file with a colon in its name but there was no error. The client is not syncing some files that can cause problems on the client-OS.

For a feature request to disable all special characters, please use github.com/owncloud/core/issues, there are no developers on this forum.

zark22
Newbie
Posts: 5
Joined: Wed Jul 13, 2016 12:41 pm

Re: Filenames and special char

Postby zark22 » Wed Jul 13, 2016 6:06 pm

version 9.0.3
in the log :
Unsupported operand types at /var/www/owncloud/3rdparty/sabre/uri/lib/functions.php#181

and friend is getting in his ui :

...p/webdav/%231 GARMENT/SP/Q217/SILVER_11:06 - server replied : Internal Server Error

when i check in the /data directory i can find the path "/%231 GARMENT/SP/Q217/SILVER_11:06/" with files in them though.


When i check out the "/var/www/owncloud/3rdparty/sabre/uri/lib/functions.php#181" file, it's clearly a split function that has trouble because of the ":" char .. So i'm guessing that's what i causing the issue.
Maybe the guy uploaded it from one machine, that went okay, and now it has to be downloaded on another, and that somehow bugs out.
I'm on windows, so i can't try the ":" trick in the filename ..

tflidd
Forum Moderator
Posts: 7159
Joined: Sat Dec 07, 2013 7:27 pm
ownCloud version: 8.2.3
Webserver: Apache
Database: MySQL
OS: Linux

Re: Filenames and special char

Postby tflidd » Wed Jul 13, 2016 7:28 pm

You get this error using the client? Or just by uploads via web-interface?

zark22
Newbie
Posts: 5
Joined: Wed Jul 13, 2016 12:41 pm

Re: Filenames and special char

Postby zark22 » Thu Jul 14, 2016 12:00 pm

using the client on OSX


user1 created a folder which is shared
user2 added a folder in there with a ":" in the dir name
user1 cannot synchronize anymore

tflidd
Forum Moderator
Posts: 7159
Joined: Sat Dec 07, 2013 7:27 pm
ownCloud version: 8.2.3
Webserver: Apache
Database: MySQL
OS: Linux

Re: Filenames and special char

Postby tflidd » Thu Jul 14, 2016 2:26 pm

Thanks for your details, I was able to reproduce this error and created this bug report: https://github.com/owncloud/core/issues/25479
You might want to add your configuration (OS, webserver, ...).

Kajoka
Newbie
Posts: 7
Joined: Tue Aug 04, 2015 10:20 am

Re: Filenames and special char

Postby Kajoka » Thu Jul 14, 2016 2:46 pm

@tflidd thanks!

zark22
Newbie
Posts: 5
Joined: Wed Jul 13, 2016 12:41 pm

Re: Filenames and special char

Postby zark22 » Mon Jul 18, 2016 3:40 pm

Great thank you.


There are also strange issues with "/" in the names .. (yes, apparently on OsX you can put slashes in filenames .... )


I would suggest owncloud base64's all filenames to avoid url collisions ... personally that's how i would design it.

tflidd
Forum Moderator
Posts: 7159
Joined: Sat Dec 07, 2013 7:27 pm
ownCloud version: 8.2.3
Webserver: Apache
Database: MySQL
OS: Linux

Re: Filenames and special char

Postby tflidd » Mon Jul 18, 2016 4:30 pm

It's probably the same/similar issue. You can mention that in the linked bug report.

Personally, I wouldn't use any symbols in filenames that are not supported on other platforms.

zark22
Newbie
Posts: 5
Joined: Wed Jul 13, 2016 12:41 pm

Re: Filenames and special char

Postby zark22 » Tue Jul 19, 2016 2:28 pm

you cannot expect users to just know this :)

It should be handled anyways.
Either block it from the client "cannot sync files/folders with illegal char", or handle it :)


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 9.0”

Who is online

Users browsing this forum: No registered users and 1 guest