Comment 0 for bug 657195

Revision history for this message
John Lenton (chipaca) wrote :

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.