Bug 1033000

Summary: Augeas bindings don't convert python unicode for C api
Product: [Fedora] Fedora Reporter: Matthew Booth <mbooth>
Component: python-augeasAssignee: Nils Philippsen <nphilipp>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: gregswift, harald, jcholast, nphilipp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-augeas-0.5.0-1.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-18 06:07:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Matthew Booth 2013-11-21 11:37:16 UTC
python-augeas passes python unicode strings directly to the C api. Python unicode seems to use wide characters, causing the C api to misinterpret the \0 in the first character as the end of the string. Therefore, all unicode paths are interpreted as '/':

>>> from augeas import Augeas
>>> h = Augeas()
>>> h.match(u'/files/etc/passwd/*')
['/augeas', '/files']

The fix for this is already upstream in commit 0199f75bbdfe8ace02c5d38f4cfa27791eb97e44. However, there doesn't appear to be an upstream commit which contains it. This error is pretty severe, so perhaps upstream could be convinced to do a new release containing it.

Comment 1 Matthew Booth 2013-11-21 11:39:42 UTC
(In reply to Matthew Booth from comment #0)
> However, there doesn't appear to
> be an upstream commit which contains it.

upstream *release*

Comment 2 Fedora Update System 2014-09-05 03:58:34 UTC
python-augeas-0.5.0-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-augeas-0.5.0-1.fc20

Comment 3 Fedora Admin XMLRPC Client 2014-09-05 09:43:52 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Fedora Update System 2014-09-09 22:07:38 UTC
Package python-augeas-0.5.0-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-augeas-0.5.0-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-10345/python-augeas-0.5.0-1.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-12-18 06:07:29 UTC
python-augeas-0.5.0-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.