Skip to content

FIX(client): Replace legacy sourceforge DBus domain with info.mumble#7155

Open
M-Shaheer-Ahsan wants to merge 1 commit intomumble-voip:masterfrom
M-Shaheer-Ahsan:fix/replace-sourceforge-domain
Open

FIX(client): Replace legacy sourceforge DBus domain with info.mumble#7155
M-Shaheer-Ahsan wants to merge 1 commit intomumble-voip:masterfrom
M-Shaheer-Ahsan:fix/replace-sourceforge-domain

Conversation

@M-Shaheer-Ahsan
Copy link
Copy Markdown

@M-Shaheer-Ahsan M-Shaheer-Ahsan commented Apr 6, 2026

The DBus interface and error reply strings still referenced the old net.sourceforge.mumble domain. These have been updated to use info.mumble instead.

For backwards compatibility, the old service name is still registered alongside the new one, and when connecting to an existing Mumble instance the client tries the new interface name first and falls back to the old one.

Fixes #6963

Checks

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 6, 2026

Walkthrough

The D-Bus namespace has been migrated from net.sourceforge.mumble to info.mumble across multiple files. Error identifiers in DBus.cpp were updated to use the new prefix. The D-Bus interface identifier in DBus.h was changed via Q_CLASSINFO. In main.cpp, the client now attempts to contact the new info.mumble.mumble service first, with a fallback to the legacy net.sourceforge.mumble.mumble service if the primary call fails. During initialization, both service names are registered on the session bus to maintain backwards compatibility.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: replacing the legacy sourceforge DBus domain with info.mumble.
Description check ✅ Passed The description explains the changes, addresses backwards compatibility, references the linked issue, and includes the required commit guidelines checkbox.
Linked Issues check ✅ Passed The PR meets the requirements from issue #6963 by updating DBus interface/errors to info.mumble domain while maintaining backwards compatibility by registering both service names and implementing fallback logic.
Out of Scope Changes check ✅ Passed All changes are directly related to replacing the legacy sourceforge DBus domain with info.mumble across three relevant files (DBus.cpp, DBus.h, main.cpp).

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/mumble/DBus.h`:
- Line 16: The adaptor currently only exports the D-Bus interface
"info.mumble.Mumble" (Q_CLASSINFO line in src/mumble/DBus.h) which breaks
clients expecting the legacy "net.sourceforge.mumble.Mumble" used in main.cpp
fallback logic (see lines ~599 and ~620); fix by exposing both interfaces—either
add a second Q_CLASSINFO entry or otherwise ensure the same adaptor instance is
registered with both interface names so the adaptor class in DBus.h exports both
"info.mumble.Mumble" and "net.sourceforge.mumble.Mumble" to preserve backward
compatibility with the fallback code paths in main.cpp.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6e11bae4-8d17-4a7e-b173-acbcfcb76512

📥 Commits

Reviewing files that changed from the base of the PR and between c73b065 and 05a699d.

📒 Files selected for processing (3)
  • src/mumble/DBus.cpp
  • src/mumble/DBus.h
  • src/mumble/main.cpp

@M-Shaheer-Ahsan M-Shaheer-Ahsan force-pushed the fix/replace-sourceforge-domain branch from 05a699d to 665639e Compare April 6, 2026 20:33
default:
QDBusConnection::sessionBus().send(msg.createErrorReply(
QLatin1String("net.sourceforge.mumble.Error.transmitMode"), QLatin1String("Invalid transmit mode")));
QLatin1String("info.mumble.Error.transmitMode"), QLatin1String("Invalid transmit mode")));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exact end point name should probably be retrieved via a virtual member function so the new interface uses the new name but the legacy interface still uses the old one 🤔

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for that pointer, I overlooked that when I was creating the new class. I truly appreciate the help <3

@M-Shaheer-Ahsan M-Shaheer-Ahsan force-pushed the fix/replace-sourceforge-domain branch 2 times, most recently from 76ff10e to a9d150a Compare April 7, 2026 06:33
@M-Shaheer-Ahsan
Copy link
Copy Markdown
Author

I missed a semi-colon lol 😅

The DBus interface and error reply strings still referenced the old
net.sourceforge.mumble domain. These have been updated to use
info.mumble instead.

For backwards compatibility, the old service name is still registered
alongside the new one, and when connecting to an existing Mumble
instance the client tries the new interface name first and falls back
to the old one.

Fixes mumble-voip#6963
@M-Shaheer-Ahsan M-Shaheer-Ahsan force-pushed the fix/replace-sourceforge-domain branch from a9d150a to eed9438 Compare April 7, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get rid of net.sourceforge.mumble.Mumble references

2 participants