core icon indicating copy to clipboard operation
core copied to clipboard

Own cloud doesn't display files with names with spaces at the end

Open tastle73 opened this issue 11 years ago • 12 comments

I know this is a edge case here, but one of my users reported that a bunch of his files were not syncing to owncloud v 8.0.4 on RHEL7

We found that the missing files were actually in the /var/www..../data/ directory but had spaces at the end of them. I don't know how this happened, but when we 'sed'-ed the blanks off the end, they appeared in the web interface and the sync programs.

tastle73 avatar Jul 02 '15 14:07 tastle73

I've just done 2 tests in the WebGUI

  1. Create a file test .txt. The file is correctly stored in the DB cache and is visible, but the HTML is trimming the filename to test.txt
  2. Create a file called "test ". The file is correctly stored in the DB cache and is visible. No trimming is taking place.

So it seems the GUI itself doesn't have a problem with those files, unless they're of a specific media type.

Would you mind using this template to describe your problem in more details?

oparoz avatar Jul 02 '15 15:07 oparoz

@oparoz I think he meant the desktop sync doesn't work for such files.

PVince81 avatar Jul 03 '15 10:07 PVince81

@PVince81 I just wasn't sure if the sed happened on the server or on the client side. I just wanted to see if the interface itself had problems with such files. I imagine those files have an invisible character. That has happened to me before.

oparoz avatar Jul 03 '15 14:07 oparoz

I think the web UI trims spaces in file names when displaying them, but internally still uses the correct name in the "data-file" attribute.

Just tried with Webdav on master and it works fine, so should work in the upcoming 8.1 too. Sync client 1.8.3 works too, upload and download.

PVince81 avatar Jul 03 '15 14:07 PVince81

Make sure your test has a trailing slash.  My end user was having trouble with the sync program for osx. Nobody was seeing the files he was adding 

Sent via the Samsung Galaxy S® 6, an AT&T 4G LTE smartphone

-------- Original message -------- From: Vincent Petry [email protected] Date: 07/03/2015 10:26 (GMT-05:00) To: owncloud/core [email protected] Cc: tastle73 [email protected] Subject: Re: [core] Own cloud doesn't display files with names with spaces at the end (#17350)

I think the web UI trims spaces in file names when displaying them, but internally still uses the correct name in the "data-file" attribute.

Just tried with Webdav on master and it works fine, so should work in the upcoming 8.1 too. Sync client 1.8.3 works too, upload and download.


Reply to this email directly or view it on GitHub: https://github.com/owncloud/core/issues/17350#issuecomment-118363358

tastle73 avatar Jul 03 '15 14:07 tastle73

@tastle73 a trailing slash ? Can you give an example file name ?

I heard that OS X allowed people to add slashes in file names, which internally are actually colons, see https://github.com/owncloud/client/issues/854 I think such files containing colons aren't synced by the client.

PVince81 avatar Jul 03 '15 15:07 PVince81

I’m sorry, I meant a trailing space. So a filename with a space at the end of it

tastle73 avatar Jul 06 '15 15:07 tastle73

I already tried with trailing spaces and it worked fine with sync client 1.8.4. Which version did that user have ?

PVince81 avatar Aug 21 '15 10:08 PVince81

I updated them to the latest on the site: 1.8.4 . I have more clarification. It seems to be files that are a hop beyond the OC server on a SMB share from a RHEL 6 machine not syncing TO his OS X machine if they have these space characters after the filename.

tastle73 avatar Aug 21 '15 17:08 tastle73

I've been reporting on this issue in this ticket: https://github.com/owncloud/client/issues/3694 "Damaged folder names prevent completion of client 'discovering' step"

Files or folders with either a leading or trailing space in the name fail to sync.

mmccarn avatar Sep 07 '15 21:09 mmccarn

This seems to be fixed in the client 2.0.2. Please test with an updated client and report back if this is still happening.

Thanks

MorrisJobke avatar Jan 20 '16 10:01 MorrisJobke

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.

lock[bot] avatar Aug 06 '19 20:08 lock[bot]