Red Hat Bugzilla – Bug 654569
Sabayon profiles will not save if file/folder names contain an apostrophe
Last modified: 2015-03-03 17:55:20 EST
+++ This bug was initially created as a clone of Bug #654567 +++ Created attachment 461254 [details] escape apostrophe Description of problem: Using sabayon to edit an exiting profile, create a file or folder on the desktop that contains an apostrophe (') in the name. Attempt to save the profile. The following errors are output: Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/sabayon/sessionwindow.py", line 233, in __do_save change.get_source ().commit_change (change, mandatory) File "/usr/lib64/python2.4/site-packages/sabayon/sources/filessource.py", line 117, in commit_change { "mandatory" : mandatory }) File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 364, in add node = self.__get_node (path) File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 403, in __get_node node = self.__get_dir_node (path, metadata) File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 386, in __get_dir_node dir_nodes = metadata.xpathEval ("/metadata/directories/directory[@path='%s']" % path) File "/usr/lib64/python2.4/site-packages/libxml2.py", line 409, in xpathEval res = ctxt.xpathEval(expr) File "/usr/lib64/python2.4/site-packages/libxml2.py", line 6856, in xpathEval if ret is None:raise xpathError('xmlXPathEval() failed') xpathError: xmlXPathEval() failed
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
This is a clone of bug 654567 for RHEL 5, please refer to this bug for a patch and details.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Previously, when a user created a file or folder on the desktop that contained an apostrophe ("'") in the name, Sabayon terminated unexpectedly when saving the profile. With this update, any apostrophe characters in the name are now escaped so that Sabayon no longer crashes and properly saves the profile.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0202.html