After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 582152 - Conduit does not handle file names with '#' correctly
Conduit does not handle file names with '#' correctly
Status: RESOLVED WONTFIX
Product: conduit
Classification: Other
Component: dataproviders
unspecified
Other Linux
: Normal normal
: ---
Assigned To: conduit-maint@gnome.bugs
conduit-maint@gnome.bugs
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2009-05-11 10:20 UTC by Heikki Paajanen
Modified: 2018-07-01 09:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Escape file names in FileGio (1.30 KB, patch)
2009-05-11 10:39 UTC, Heikki Paajanen
none Details | Review

Description Heikki Paajanen 2009-05-11 10:20:34 UTC
When synchronizing two folders where there is a file with '#' in the name the synchronization fails with:
[datatypes.DataType  ][DEBUG  ]  Getting Rid for file:///media/H300/ogg/Ben Harper & The Innocent Criminals/Live From Mars - Disc 2/10-#3.ogg (DataType.py:158)
[Syncronization      ][CRITICAL]  UNKNOWN SYNCHRONIZATION ERROR
Traceback (most recent call last):
  • File "/home/paajahe/Projects/conduit/conduit/Synchronization.py", line 743 in run
    self.one_way_sync(self.source, sink)
  • File "/home/paajahe/Projects/conduit/conduit/Synchronization.py", line 496 in one_way_sync
    dataRid = data.get_rid()
  • File "/home/paajahe/Projects/conduit/conduit/datatypes/DataType.py", line 161 in get_rid
    mtime=self.get_mtime(),
  • File "/home/paajahe/Projects/conduit/conduit/datatypes/File.py", line 293 in get_mtime
    ts = self._file.get_mtime()
  • File "/home/paajahe/Projects/conduit/conduit/platform/FileGio.py", line 80 in get_mtime
    mtime = self.fileInfo.get_attribute_uint64('time::modified')
AttributeError: 'NoneType' object has no attribute 'get_attribute_uint64'


This is because passing the name to gio.File() removes everything after '#' character (as it probably should http://tools.ietf.org/html/rfc2396)
Comment 1 Heikki Paajanen 2009-05-11 10:39:19 UTC
Created attachment 134385 [details] [review]
Escape file names in FileGio

Add uri escaping to FileGio to handle '#' in directory and file names
Comment 2 Heikki Paajanen 2009-05-11 16:47:30 UTC
Hmm. This sounds a little like bug #523181.
Comment 3 sam tygier 2009-08-14 00:32:58 UTC
Heikki's patch works for me :-) thanks
Comment 4 Cornwall 2009-08-25 05:03:51 UTC
I can confirm this as well, using the launchpad 0.3.17-trunk from the Conduit PPA
Comment 5 André Klapper 2018-07-01 09:03:42 UTC
Conduit is not under active development anymore, has not seen code changes for eight years, and saw its last tarball release in 2010.
Its codebase has been archived: https://gitlab.gnome.org/Archive/conduit/commits/master

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the responsibility for active development again.