Closed
Bug 1314968
Opened 8 years ago
Closed 7 years ago
nsWifiScannerDBus breaks with recent NetworkManager
Categories
(Core :: Networking, defect, P5)
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: heftig, Assigned: heftig)
Details
(Whiteboard: [necko-would-take])
Attachments
(2 files, 1 obsolete file)
When retrieving access point attributes using org.freedesktop.Properties.GetAll, the scanner supplies an empty string as the interface name. Recent NM responds with an error "No such interface". The scanner should use "org.freedesktop.NetworkManager.AccessPoint" as the interface name. Firefox 49.0.2 NetworkManager 1.4.2
Assignee | ||
Comment 1•8 years ago
|
||
Er, that should have been org.freedesktop.DBus.Properties.GetAll.
Updated•8 years ago
|
Whiteboard: [necko-would-take]
Assignee | ||
Comment 2•8 years ago
|
||
Actually, the D-Bus Specification [1] says: > An empty string may be provided for the interface name; in this > case, if there are multiple properties on an object with the > same name, the results are undefined (picking one by according > to an arbitrary deterministic rule, or returning an error, are > the reasonable possibilities). So this could be a bug in NM or GDBus. I think providing the above interface name should work in both old and new versions of NM, but I don't know for sure. [1]: https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-properties
Assignee | ||
Comment 3•8 years ago
|
||
This is a long-standing bug in GDBus: https://bugzilla.gnome.org/show_bug.cgi?id=741101
Assignee | ||
Comment 4•8 years ago
|
||
Anyway, fixing up the interface name sent restores location accuracy for me.
Comment 5•7 years ago
|
||
(In reply to Jan Alexander Steffens from comment #4) > Created attachment 8807544 [details] [diff] [review] > fix-wifi-scanner.diff > > Anyway, fixing up the interface name sent restores location accuracy for me. Is the patch ready for review? According to last review record of this part of the code, probably :kanru can review it when ready?
Flags: needinfo?(kchen)
Flags: needinfo?(jan.steffens)
Assignee | ||
Comment 6•7 years ago
|
||
Yes, it is. I've been applying it to Arch Linux's Firefox builds since posting it.
Flags: needinfo?(jan.steffens)
Updated•7 years ago
|
Flags: needinfo?(kchen)
Attachment #8807544 -
Flags: review?(kchen)
Comment 7•7 years ago
|
||
Comment on attachment 8807544 [details] [diff] [review] fix-wifi-scanner.diff Review of attachment 8807544 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for the patch! We can improve the patch's readability by giving it 8 line of context according to the patch guideline. https://developer.mozilla.org/en-US/docs/Mercurial/Using_Mercurial#How_can_I_diff_and_patch_files.3F I have one nit, otherwise the patch looks good to me. ::: c/netwerk/wifi/nsWifiScannerDBus.cpp @@ +62,4 @@ > return NS_ERROR_FAILURE; > } > } else if (!strcmp(aFuncCall, "GetAll")) { > + const char* param = "org.freedesktop.NetworkManager.AccessPoint"; nit: This code assumes function GetAll implies interface org.freedesktop.DBus.Properties, which isn't great. I would like to add a MOZ_ASSERT here to ensure aInterface is indeed that.
Attachment #8807544 -
Flags: review?(kchen) → review+
Comment 8•7 years ago
|
||
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P5
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8807544 -
Attachment is obsolete: true
Comment 11•7 years ago
|
||
mozreview-review |
Comment on attachment 8909087 [details] Bug 1314968 - Disentangle nsWifiScannerDBus::SendMessage. https://reviewboard.mozilla.org/r/180688/#review186940 Thanks!
Attachment #8909087 -
Flags: review?(kchen) → review+
Comment 12•7 years ago
|
||
mozreview-review |
Comment on attachment 8909088 [details] Bug 1314968 - Explicitly specify the AccessPoint interface name. https://reviewboard.mozilla.org/r/180690/#review186942
Attachment #8909088 -
Flags: review?(kchen) → review+
Updated•7 years ago
|
Keywords: checkin-needed
Updated•7 years ago
|
Assignee: nobody → jan.steffens
Comment 13•7 years ago
|
||
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/autoland/rev/d7f603cb82f4 Disentangle nsWifiScannerDBus::SendMessage. r=kanru https://hg.mozilla.org/integration/autoland/rev/1c1e25c461a0 Explicitly specify the AccessPoint interface name. r=kanru
Keywords: checkin-needed
Comment 14•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d7f603cb82f4 https://hg.mozilla.org/mozilla-central/rev/1c1e25c461a0
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in
before you can comment on or make changes to this bug.
Description
•