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 311796 - sabayon-apply doesn't work with profiles that have spaces in them
sabayon-apply doesn't work with profiles that have spaces in them
Status: RESOLVED FIXED
Product: sabayon
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2005-07-27 22:23 UTC by Seth Nickell
Modified: 2005-07-29 10:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Seth Nickell 2005-07-27 22:23:48 UTC
In userdb.py, the get_profile() method calls __profile_name_to_location() with
the profile name as an argument, e.g. "Desktop Users". But
__profile_name_to_location expects the profile name to be encoded as a URI
fragment, e.g. "Desktop%20Users" so it throws an exception on libxml2.parseURI.

The net effect is that profile names that have spaces in them (probably going to
be common) silently fail to apply.
Comment 1 Mark McLoughlin 2005-07-28 08:41:12 UTC
Sounds like one for DV
Comment 2 Daniel Veillard 2005-07-28 09:28:17 UTC
I tried to fix it in CVs but could not confirm at this point it is fixed.

Daniel
Comment 3 Mark McLoughlin 2005-07-29 09:32:28 UTC
I managed to reproduce it before your fix and don't see the problem now with
your fix applied.
Comment 4 Mark McLoughlin 2005-07-29 09:40:36 UTC
Actually, my bad. I now see:

(22015) storage: Profile file '/etc/desktop-profiles/Foo%20Bar.zip' doesn't exist

when running sabayon-apply
Comment 5 Daniel Veillard 2005-07-29 10:18:33 UTC
Okay I commited the unescaping if the resulting composed URI is a local path,
this should fix that, hopefully this now work okay :-)

Daniel