Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 654569

Summary: Sabayon profiles will not save if file/folder names contain an apostrophe
Product: Red Hat Enterprise Linux 5 Reporter: ritz <rkhadgar>
Component: sabayonAssignee: Tomáš Bžatek <tbzatek>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.6CC: bgollahe, msimon, tjamrisk, tpelka, tsmetana, vbenes
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sabayon-2.12.4-8.el5 Doc Type: Bug Fix
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 05:51:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 654567    
Bug Blocks:    

Description ritz 2010-11-18 09:53:56 UTC
+++ 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

Comment 2 RHEL Program Management 2011-05-31 14:43:46 UTC
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.

Comment 6 Tomáš Bžatek 2011-10-04 13:37:32 UTC
This is a clone of bug 654567 for RHEL 5, please refer to this bug for a patch and details.

Comment 7 Tomáš Bžatek 2011-10-04 14:30:25 UTC
    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.

Comment 9 errata-xmlrpc 2012-02-21 05:51:45 UTC
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