https://bugs.freedesktop.org/show_bug.cgi?id=104646

            Bug ID: 104646
           Summary: org.bluez.MediaEndpoint1.Release should do nothing,
                    not raise a DUS error
           Product: PulseAudio
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: modules
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

The endpoint_release function (bluez5-util.c) currently just returns an
Unimplemented error message, which on a standard DBUS setup gets blocked and
generates an unwanted entry in syslog - e.g.:

> Jan 14 04:51:32 gentoo dbus-daemon[2492]: [system] Rejected send message, 2 
> matched rules; type="error", sender=":1.15" (uid=1000 pid=2864 
> comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" 
> member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" 
> requested_reply="0" destination=":1.1" (uid=0 pid=2670 
> comm="/usr/libexec/bluetooth/bluetoothd ")
> Jan 15 06:40:08 gentoo dbus-daemon[2512]: [system] Rejected send message, 2 
> matched rules; type="error", sender=":1.16" (uid=1000 pid=2866 
> comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" 
> member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" 
> requested_reply="0" destination=":1.0" (uid=0 pid=2596 
> comm="/usr/libexec/bluetooth/bluetoothd ")
> Jan 15 06:40:08 gentoo dbus-daemon[2512]: [system] Rejected send message, 2 
> matched rules; type="error", sender=":1.16" (uid=1000 pid=2866 
> comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" 
> member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" 
> requested_reply="0" destination=":1.0" (uid=0 pid=2596 
> comm="/usr/libexec/bluetooth/bluetoothd ")
> Jan 15 06:40:08 gentoo dbus-daemon[2512]: [system] Rejected send message, 2 
> matched rules; type="error", sender=":1.16" (uid=1000 pid=2866 
> comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" 
> member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" 
> requested_reply="0" destination=":1.0" (uid=0 pid=2596 
> comm="/usr/libexec/bluetooth/bluetoothd ")
> Jan 15 06:40:08 gentoo dbus-daemon[2512]: [system] Rejected send message, 2 
> matched rules; type="error", sender=":1.16" (uid=1000 pid=2866 
> comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" 
> member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" 
> requested_reply="0" destination=":1.0" (uid=0 pid=2596 
> comm="/usr/libexec/bluetooth/bluetoothd ")

And so on...  I get this message multiple times per day, and it causes logcheck
to spam me with mail.

Given the documentation for this function (see
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/media-api.txt) says
this is just a cleanup call post unregister to notify the endpoint for cleanup,
if there is no cleanup required it seems more correct to do nothing and return
success than do nothing and return an error.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
pulseaudio-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-bugs

Reply via email to