Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 654569 - Sabayon profiles will not save if file/folder names contain an apostrophe
Sabayon profiles will not save if file/folder names contain an apostrophe
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: sabayon (Show other bugs)
5.6
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Tomáš Bžatek
Desktop QE
: Patch
Depends On: 654567
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-18 04:53 EST by ritz
Modified: 2015-03-03 17:55 EST (History)
6 users (show)

See Also:
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 00:51:45 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
GNOME Bugzilla 635163 None None None Never
Red Hat Product Errata RHBA-2012:0202 normal SHIPPED_LIVE sabayon bug fix update 2012-02-20 09:53:45 EST

  None (edit)
Description ritz 2010-11-18 04:53:56 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
Comment 2 RHEL Product and Program Management 2011-05-31 10:43:46 EDT
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 09:37:32 EDT
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 10:30:25 EDT
    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 00:51:45 EST
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

Note You need to log in before you can comment on or make changes to this bug.