Closed Bug 1200132 Opened 9 years ago Closed 9 years ago

[Presentation WebAPI] discovered host name is unresolvable.

Categories

(Core :: Networking: DNS, defect, P1)

defect

Tracking

()

RESOLVED FIXED
FxOS-S10 (30Oct)
feature-b2g 2.5+
Tracking Status
firefox44 --- fixed

People

(Reporter: xeonchen, Assigned: kershaw)

References

Details

(Whiteboard: [ft:conndevices][partner-blocker])

Attachments

(3 files, 11 obsolete files)

14.73 KB, patch
kershaw
: review+
Details | Diff | Splinter Review
2.00 KB, patch
kershaw
: review+
Details | Diff | Splinter Review
20.70 KB, patch
kershaw
: review+
Details | Diff | Splinter Review
The discovered host name (e.g. foo.local.) cannot be resolved to IP address on some platform (e.g. b2g).
Assignee: nobody → kechang
Hi Josh, Could you help mark 2.5+ to this one?
Flags: needinfo?(jocheng)
Whiteboard: [ft:conndevices]
Hi Sean, Should we block this on 1184073? Thanks
feature-b2g: --- → 2.5+
Flags: needinfo?(selin)
(In reply to Josh Cheng [:josh] from comment #2) > Hi Sean, > Should we block this on 1184073? > Thanks Yep. I just did it. Thanks.
Flags: needinfo?(selin)
Flags: needinfo?(jocheng)
Priority: -- → P1
Attached patch WIP: B2G part (obsolete) — Splinter Review
Status: NEW → ASSIGNED
Attached patch WIP: Fennec part (obsolete) — Splinter Review
Attachment #8663582 - Attachment is obsolete: true
Attachment #8664619 - Flags: review?(mcmanus)
Attachment #8664156 - Flags: review?(mcmanus)
Attachment #8664156 - Flags: review?(rnewman)
Target Milestone: --- → FxOS-S8 (02Oct)
Comment on attachment 8664156 [details] [diff] [review] WIP: Fennec part Review of attachment 8664156 [details] [diff] [review]: ----------------------------------------------------------------- ::: mobile/android/base/mdns/MulticastDNSManager.java @@ +205,5 @@ > > InetAddress host = serviceInfo.getHost(); > if (host != null) { > + obj.put("host", host.getCanonicalHostName()); > + obj.put("isIPV6", String.valueOf(host instanceof Inet6Address)); JSONObject supports booleans, so remove the String.valueOf.
Attachment #8664156 - Flags: review?(rnewman) → review+
Whiteboard: [ft:conndevices] → [ft:conndevices][partner-blocker]
Attachment #8664619 - Flags: review?(mcmanus) → review+
Attachment #8664156 - Flags: review?(mcmanus) → review+
Target Milestone: FxOS-S8 (02Oct) → FxOS-S9 (16Oct)
WIP patch. Waiting for validation.
Attachment #8670118 - Flags: review?(schien)
Hi SC, Could you please take a look? Thanks.
Comment on attachment 8670118 [details] [diff] [review] Use adderss to create socketTransport Review of attachment 8670118 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/presentation/interfaces/nsITCPPresentationServer.idl @@ +63,5 @@ > nsIPresentationDevice createTCPDevice(in AUTF8String aId, > in AUTF8String aName, > in AUTF8String aType, > in AUTF8String aHost, > + in AUTF8String aAddress, I'll prefer passing |nsINetAddr| directly.
Attachment #8670118 - Flags: review?(schien)
Summary: 1. Use nsINetAddr instead of string. 2. Modify test case.
Attachment #8670118 - Attachment is obsolete: true
Attachment #8672530 - Flags: review?(schien)
Attachment #8672530 - Flags: review?(schien) → review+
Attachment #8672530 - Flags: review?(juhsu)
Comment on attachment 8672530 [details] [diff] [review] Use adderss to create socketTransport - v2 Review of attachment 8672530 [details] [diff] [review]: ----------------------------------------------------------------- r=me with the comment addressed ::: dom/presentation/provider/TCPPresentationServer.js @@ +175,5 @@ > let socketTransport; > try { > socketTransport = sts.createTransport(null, > 0, > + aDevice.address.address, I'm wondering if it's good to keep |host| in the |nsIPresentationDevice|. If you'd like to do this way, I guess the client can decide to choose address or host. And the socket transport should connect to one of those. Connecting to the address is preferred, and connect to the host if address is null or undefined. Otherwise, if you'd like to remove |host|, please file a bug as a follow-up. Also put those to comments.
Attachment #8672530 - Flags: review?(juhsu) → review+
Per bug 1136565, |host| might be used.
This is the updated patch based on the modification in bug 1136565. I now realized that TCPPresentationServer only need a string for host address to establish TCP socket. You might consider passing string from nsIDNSServiceDiscovery instead of nsINetAddr. It'll make your code simpler and less type conversion.
Attachment #8675283 - Flags: feedback?(kechang)
Attachment #8675283 - Attachment filename: attachment.cgi?id=8672530 → v3.patch
Attachment #8675283 - Attachment mime type: application/mbox → text/plain
Comment on attachment 8675283 [details] [diff] [review] Use adderss to create socketTransport - v3 Review of attachment 8675283 [details] [diff] [review]: ----------------------------------------------------------------- lgtm. I think I should land this bug until bug 1136565 is fixed?
Attachment #8675283 - Flags: feedback?(kechang) → feedback+
Depends on: 1136565
Rebase
Attachment #8664619 - Attachment is obsolete: true
Attachment #8676668 - Flags: review+
Attachment #8664156 - Attachment is obsolete: true
Attachment #8676669 - Flags: review+
Attachment #8672530 - Attachment is obsolete: true
Attachment #8675283 - Attachment is obsolete: true
Attachment #8676668 - Attachment is obsolete: true
Attachment #8676669 - Attachment is obsolete: true
Attachment #8676670 - Flags: review+
Hi SC and Junior, I'd like you to review it again. Thanks.
Attachment #8676672 - Flags: review?(schien)
Attachment #8676672 - Flags: review?(juhsu)
Comment on attachment 8676672 [details] [diff] [review] Part3: Use adderss to create socketTransport - v4 Review of attachment 8676672 [details] [diff] [review]: ----------------------------------------------------------------- lgtm
Attachment #8676672 - Flags: review?(schien) → review+
Comment on attachment 8676672 [details] [diff] [review] Part3: Use adderss to create socketTransport - v4 Review of attachment 8676672 [details] [diff] [review]: ----------------------------------------------------------------- Please add r=schien,junior in commit log before check in.
I also noticed that the commit log in patch part 1 & 2 are not meaningful. Please reflect your intention in commit log more clearly before check in.
Flags: needinfo?(kechang)
Comment on attachment 8676672 [details] [diff] [review] Part3: Use adderss to create socketTransport - v4 Review of attachment 8676672 [details] [diff] [review]: ----------------------------------------------------------------- r=me
Attachment #8676672 - Flags: review?(juhsu) → review+
Update commit log.
Attachment #8676670 - Attachment is obsolete: true
Flags: needinfo?(kechang)
Attachment #8676737 - Flags: review+
Carry reviewer's name.
Attachment #8676672 - Attachment is obsolete: true
Attachment #8676741 - Flags: review+
Keywords: checkin-needed
Depends on: 1217807
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: