Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 569631

Summary: Error name is mangled
Product: [Fedora] Fedora Reporter: David Zeuthen <davidz>
Component: dbus-glibAssignee: David Zeuthen <davidz>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: davidz, mclasen, walters, walters
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: https://bugs.freedesktop.org/show_bug.cgi?id=26824
Whiteboard:
Fixed In Version: dbus-glib-0.84-3.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-10 06:40:20 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:    
Bug Blocks: 507681    

Description David Zeuthen 2010-03-01 21:27:28 UTC
dbus-glib-0.84-2.fc13.x86_64

Recent dbus-glib versions seems to mangle the error name by capitalizing the first letter. I've seen this in many dbus-glib apps - here's an example from udisks

 # dbus-send --print-reply --system --dest=org.freedesktop.UDisks /org/freedesktop/UDisks org.freedesktop.UDisks.LinuxLvm2LVStart string:foo string:bar array:string:
 Error Org.freedesktop.UDisks.Error.Failed: Cannot find Logical Volume with Group UUID `foo' and UUID `bar'

This error doesn't seem to happen with non-dbus-glib bindings, for example, here's polkit (using eggdbus)

 # dbus-send --print-reply --system --dest=org.freedesktop.PolicyKit1 /org/freedesktop/PolicyKit1/Authority org.freedesktop.PolicyKit1.Authority.CancelCheckAuthorization string:foo

 Error org.freedesktop.PolicyKit1.Error.Failed: No such cancellation_id foo for name :1.1038

Comment 1 David Zeuthen 2010-03-01 21:28:45 UTC
Should fix this for F13 - many apps rely on checking the error name to take appropriate action.

Comment 2 David Zeuthen 2010-03-01 21:35:22 UTC
Filed the upstream bug here: https://bugs.freedesktop.org/show_bug.cgi?id=26824

Comment 3 Matthias Clasen 2010-03-02 03:45:09 UTC
This is caused by uscore_to_wincaps being used on error names at
dbus-gobject.c:1083

Comment 4 Colin Walters 2010-03-02 22:20:13 UTC
Should be fixed by dbus-glib-0.84-3 for f13

Comment 5 Fedora Update System 2010-03-04 23:17:36 UTC
dbus-glib-0.84-3.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/dbus-glib-0.84-3.fc13

Comment 6 Fedora Update System 2010-03-05 03:35:15 UTC
dbus-glib-0.84-3.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update dbus-glib'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/dbus-glib-0.84-3.fc13

Comment 7 Fedora Update System 2010-03-10 06:40:11 UTC
dbus-glib-0.84-3.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.