Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-71674

Registering an object to dbus without interface can lead to invalid dbus interface getting registered

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.0 Beta 4
    • Fix Version/s: None
    • Component/s: D-Bus
    • Labels:
      None
    • Platform/s:
      Linux/X11, Linux/Wayland

      Description

      Registering an object to the dbus (QDBusConnection::registerObject) can lead to invalid dbus interface name when not passing interface name to the registerObject and QCoreApplication::instance()->applicationName() happens to contains a dash (my-app).

      So, in practice via QDBusConnection::registerObject(const QString &path, QObject *object, RegisterOptions options = ExportAdaptors);

      Dashes in dbus interface should be replaced by underscores in the dbusmisc.cpp at qDBusInterfaceFromMetaObject(const QMetaObject *mo)

      See also:

      https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rainemak Raine Makelainen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes