** Description changed:
the partial filename of a file is longer than the filename, and this can
lead to some interesting problems: if the creation of the partial errors
out because of this,
2010-10-09 01:30:20,369 - ubuntuone.SyncDaemon.sync - ERROR - T:LOCAL:F
6ac2ebf8-13c1-421c-9e57-d6da99c60722
['528d2446-60b8-458a-af58-8ccfe2bd352f'::'97cbf601-062c-4d86-a918-6e048ec65585']
'"Purchased from Ubuntu One/Herbert von Karajan_Philharmonia
Orchestra_Elisabeth Schwarzkopf_Marga H\xc3\xb6ffgen_Ernst Haefliger_Otto
Edelmann/Beethoven: The 9 Symphonies/Symphony No. 9 in D minor 'Choral' Op. 125
(2008 Digital Remaster): III. Adagio molto e cantabile - Andante
moderato.mp3"' | Executing ACTION_FUNC 'get_file' gave an exception:
IOError(36, 'File name too long')
Traceback (most recent call last):
- File "/usr/lib/pymodules/python2.6/ubuntuone/syncdaemon/fsm/fsm.py", line
137, in on_event
- af(event_name, parameters, *args)
- File "/usr/lib/pymodules/python2.6/ubuntuone/syncdaemon/sync.py", line 464,
in get_file
- share_id=self.key['share_id'])
- File
"/usr/lib/pymodules/python2.6/ubuntuone/syncdaemon/filesystem_manager.py", line
907, in create_partial
- open(partial_path, "w").close()
+ File "/usr/lib/pymodules/python2.6/ubuntuone/syncdaemon/fsm/fsm.py", line
137, in on_event
+ af(event_name, parameters, *args)
+ File "/usr/lib/pymodules/python2.6/ubuntuone/syncdaemon/sync.py", line 464,
in get_file
+ share_id=self.key['share_id'])
+ File
"/usr/lib/pymodules/python2.6/ubuntuone/syncdaemon/filesystem_manager.py", line
907, in create_partial
+ open(partial_path, "w").close()
IOError: [Errno 36] File name too long:
"/home/john/.cache/ubuntuone/partials/6ac2ebf8-13c1-421c-9e57-d6da99c60722.u1partial.Symphony
No. 9 in D minor 'Choral' Op. 125 (2008 Digital Remaster): III. Adagio molto
e cantabile - Andante moderato.mp3"
syncdaemon then deletes the file on the server.
(ecryptfs has stronger limits on the filename length than usual; see
lp:344878)
Logs attached.
+
+ TEST CASE:
+ 1. Open https://one.ubuntu.com/files
+ 2. Upload test file with name that is one character below the max supported
by the filesystem (unecrypted filesystem, use something like:
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.txt")
+ 3. In terminal session run:
+ u1sdtool -d; u1sdtool -c
+
+ Result: Uploaded file is not in ~/Ubuntu One/ and is no longer on the
+ server https://one.ubuntu.com/files
+
+ Expected result: Uploaded file is in ~/Ubuntu One/ and on the server
+ https://one.ubuntu.com/files
** Tags added: chicharra u1-maverick-sru
** Also affects: ubuntuone-client/stable-1-4
Importance: Undecided
Status: New
** Changed in: ubuntuone-client/stable-1-4
Status: New => Triaged
** Changed in: ubuntuone-client/stable-1-4
Assignee: (unassigned) => Facundo Batista (facundo)
** Changed in: ubuntuone-client/stable-1-4
Importance: Undecided => Critical
** Changed in: ubuntuone-client (Ubuntu)
Assignee: (unassigned) => Facundo Batista (facundo)
** Description changed:
the partial filename of a file is longer than the filename, and this can
lead to some interesting problems: if the creation of the partial errors
out because of this,
2010-10-09 01:30:20,369 - ubuntuone.SyncDaemon.sync - ERROR - T:LOCAL:F
6ac2ebf8-13c1-421c-9e57-d6da99c60722
['528d2446-60b8-458a-af58-8ccfe2bd352f'::'97cbf601-062c-4d86-a918-6e048ec65585']
'"Purchased from Ubuntu One/Herbert von Karajan_Philharmonia
Orchestra_Elisabeth Schwarzkopf_Marga H\xc3\xb6ffgen_Ernst Haefliger_Otto
Edelmann/Beethoven: The 9 Symphonies/Symphony No. 9 in D minor 'Choral' Op. 125
(2008 Digital Remaster): III. Adagio molto e cantabile - Andante
moderato.mp3"' | Executing ACTION_FUNC 'get_file' gave an exception:
IOError(36, 'File name too long')
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/ubuntuone/syncdaemon/fsm/fsm.py", line
137, in on_event
af(event_name, parameters, *args)
File "/usr/lib/pymodules/python2.6/ubuntuone/syncdaemon/sync.py", line 464,
in get_file
share_id=self.key['share_id'])
File
"/usr/lib/pymodules/python2.6/ubuntuone/syncdaemon/filesystem_manager.py", line
907, in create_partial
open(partial_path, "w").close()
IOError: [Errno 36] File name too long:
"/home/john/.cache/ubuntuone/partials/6ac2ebf8-13c1-421c-9e57-d6da99c60722.u1partial.Symphony
No. 9 in D minor 'Choral' Op. 125 (2008 Digital Remaster): III. Adagio molto
e cantabile - Andante moderato.mp3"
syncdaemon then deletes the file on the server.
(ecryptfs has stronger limits on the filename length than usual; see
lp:344878)
Logs attached.
+ ------------------------------
+
TEST CASE:
1. Open https://one.ubuntu.com/files
2. Upload test file with name that is one character below the max supported
by the filesystem (unecrypted filesystem, use something like:
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.txt")
3. In terminal session run:
u1sdtool -d; u1sdtool -c
Result: Uploaded file is not in ~/Ubuntu One/ and is no longer on the
server https://one.ubuntu.com/files
Expected result: Uploaded file is in ~/Ubuntu One/ and on the server
https://one.ubuntu.com/files
** Also affects: ubuntuone-client (Ubuntu Maverick)
Importance: Undecided
Status: New
--
syncdaemon deletes files when local machine errors out on creation of partial
https://bugs.launchpad.net/bugs/657195
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs