Closed
Bug 1065208
Opened 10 years ago
Closed 10 years ago
Can't find any available network anymore if it connects to one AP which SSID name includes non-ascii character
Categories
(Firefox OS Graveyard :: Wifi, defect)
Tracking
(blocking-b2g:2.0M+, firefox34 wontfix, firefox35 wontfix, firefox36 fixed, b2g-v2.0 wontfix, b2g-v2.0M verified, b2g-v2.1 verified, b2g-v2.2 verified)
People
(Reporter: hlu, Assigned: seinlin)
References
Details
Attachments
(5 files)
1.87 MB,
text/plain
|
Details | |
1.08 KB,
patch
|
vchang
:
feedback+
|
Details | Diff | Splinter Review |
1.17 KB,
patch
|
vchang
:
review+
|
Details | Diff | Splinter Review |
1.39 KB,
patch
|
bajaj
:
approval-mozilla-b2g32-
bajaj
:
approval-mozilla-b2g34+
|
Details | Diff | Splinter Review |
1.84 MB,
video/mp4
|
Details |
Description: Can't find any available network anymore if it connects to one AP which SSID name includes Chinese character Repro Steps: 1. Enable WiFi and try to connect one WiFi AP which SSID name only includes English character. 2. Use another commercial phone, iPhone 5, to setup one WiFi hotspot which SSID name includes one Chinese character. (Ex: Hubert 的 iPhone) 3. DUT try to connect the SSID configured on step2. Actual: Status of original connected WiFi and trying to connect WiFi become "offline", and it always shows "searching" in available networks of WiFi page after rebooting. Expected: DUT should connect to any WiFi AP properly, and it shows all of available networks. Environment: Device: Woodduck (Flame also has this issue) Gaia 59a670d40ad7f5966ec7fafcab0f05009bea97ab Gecko e9c3f1d931e6540d0d9786ab7dee69a7c75de6b4 BuildID 20140909123833 Version 32.0 ro.build.version.incremental=1409557062 ro.build.date=Mon Sep 1 15:37:57 CST 2014
Updated•10 years ago
|
blocking-b2g: --- → 2.0M?
status-b2g-v2.0:
--- → affected
status-b2g-v2.0M:
--- → affected
status-b2g-v2.1:
--- → ?
status-b2g-v2.2:
--- → ?
Comment 3•10 years ago
|
||
qawanted, branch check for 2.1, 2.2. Thanks!
Comment 4•10 years ago
|
||
Issue is reproducible on Flame 2.2 and Flame 2.1. Observed behavior: Inability to connect to a wifi hotspot that contains Chinese characters, and subsequently destroys the device's ability to search for available wifi hotspots/AP's permanently (rebooting the device doesn't solve the issue - DUT will continue to try to connect to the Chinese AP after reboot; the only way to make it stop connecting is to make the Chinese AP offline, then DUT will automatically connect to the previously connected AP, and even so its ability to search for Wifi hotspots is still broken). Device: Flame (shallow flash) BuildID: 20141008065408 Gaia: 2665e714beea5dc433862ca6bb8d2b47ffe2f2d1 Gecko: 4bad24a306b2 Version: 35.0a1 (2.2 Master) Firmware: V180 User Agent: Mozilla/5.0 (Mobile; rv:35.0) Gecko/35.0 Firefox/35.0 Device: Flame (shallow flash) BuildID: 20141008092809 Gaia: 55ce3612bd8a8665139d6b85114ce59993a3fa0a Gecko: b0dce6c46c52 Version: 34.0a2 (2.1) Firmware: V180 User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0
Updated•10 years ago
|
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(jmitchell)
Comment 5•10 years ago
|
||
Hi Seinlin: Please help check if this is a gecko issue or supplicant bug? Thanks!! Shawn
Flags: needinfo?(sku) → needinfo?(kli)
Assignee | ||
Comment 6•10 years ago
|
||
Shawn, from logcat, I think it could be something wrong in b2g. While device wifi setting keep searching and do not update wifi status, I can see there is a STA connected successfully on AP. I will continue to study this issue and update to bug later. -- I/Gecko ( 211): -*- WifiWorker component: Event coming in: CTRL-EVENT-BSS-ADDED 54 3c:94:d5:7b:40:84 I/Gecko ( 211): -*- WifiWorker component: Event coming in: CTRL-EVENT-BSS-ADDED 55 3c:94:d5:7b:b8:04 I/Gecko ( 211): -*- WifiWorker component: Event coming in: CTRL-EVENT-BSS-ADDED 56 4c:e6:76:a3:07:ea I/Gecko ( 211): -*- WifiWorker component: Event coming in: CTRL-EVENT-BSS-ADDED 57 10:bd:18:f0:22:c0 I/Gecko ( 211): -*- WifiWorker component: Event coming in: CTRL-EVENT-BSS-ADDED 58 10:bd:18:f0:22:c1 I/Gecko ( 211): -*- WifiWorker component: Event coming in: CTRL-EVENT-BSS-ADDED 59 10:bd:18:f0:22:c2 I/Gecko ( 211): -*- WifiWorker component: Event coming in: CTRL-EVENT-BSS-ADDED 60 00:c0:ca:1e:cc:c6 I/Gecko ( 211): -*- WifiWorker component: Event coming in: CTRL-EVENT-SCAN-RESULTS I/Gecko ( 211): -*- WifiWorker component: Notifying of scan results available I/Gecko ( 211): -*- WifiWorker component: Scan results available, but we don't need them I/Gecko ( 211): -*- WifiWorker component: Event coming in: WPS-AP-AVAILABLE I/Gecko ( 211): -*- WifiWorker component: Event coming in: Trying to associate with SSID 'Test的i5' I/Gecko ( 211): -*- WifiWorker component: Matched: Test的i5 I/Gecko ( 211): I/Gecko ( 211): -*- WifiWorker component: Event coming in: CTRL-EVENT-STATE-CHANGE id=0 state=5 BSSID=00:00:00:00:00:00 SSID=Test的i5 I/Gecko ( 211): -*- WifiWorker component: State change: SCANNING -> ASSOCIATING I/Gecko ( 211): -*- WifiWorker component: Event coming in: CTRL-EVENT-STATE-CHANGE id=0 state=6 BSSID=00:00:00:00:00:00 SSID=Test的i5 I/Gecko ( 211): -*- WifiWorker component: State change: ASSOCIATING -> ASSOCIATED I/Gecko ( 211): -*- WifiWorker component: Event coming in: Associated with e6:25:e7:d7:b0:3a I/Gecko ( 211): -*- WifiWorker component: Event coming in: CTRL-EVENT-STATE-CHANGE id=0 state=7 BSSID=e6:25:e7:d7:b0:3a SSID=Test的i5 I/Gecko ( 211): -*- WifiWorker component: State change: ASSOCIATED -> FOUR_WAY_HANDSHAKE I/Gecko ( 211): -*- WifiWorker component: Event coming in: CTRL-EVENT-STATE-CHANGE id=0 state=8 BSSID=e6:25:e7:d7:b0:3a SSID=Test的i5 I/Gecko ( 211): -*- WifiWorker component: State change: FOUR_WAY_HANDSHAKE -> GROUP_HANDSHAKE I/Gecko ( 211): -*- WifiWorker component: Event coming in: WPA: Key negotiation completed with e6:25:e7:d7:b0:3a [PTK=CCMP GTK=CCMP] I/Gecko ( 211): -*- WifiWorker component: Event coming in: CTRL-EVENT-CONNECTED - Connection to e6:25:e7:d7:b0:3a completed (auth) [id=0 id_str=] I/Gecko ( 211): -*- WifiWorker component: Event coming in: CTRL-EVENT-STATE-CHANGE id=0 state=9 BSSID=e6:25:e7:d7:b0:3a SSID=Test的i5 I/Gecko ( 211): -*- WifiWorker component: State change: GROUP_HANDSHAKE -> COMPLETED E/GeckoConsole( 211): [JavaScript Error: "uncaught exception: Invalid argument, not a quoted string: 54657374e79a846935"]
Flags: needinfo?(kli)
Comment 7•10 years ago
|
||
per triage result, seline, please take this bug. this is generic issue and important enough.
blocking-b2g: 2.0M? → 2.0+
Flags: needinfo?(kli)
Comment 8•10 years ago
|
||
Not sure if bug 835719 helps, but FYR.
Assignee | ||
Comment 9•10 years ago
|
||
(In reply to Francis Lee [:frlee] from comment #7) > per triage result, seline, please take this bug. this is generic issue and > important enough. OK, I'll take it. -seinlin
Assignee: nobody → kli
Flags: needinfo?(kli)
Assignee | ||
Comment 10•10 years ago
|
||
Vincent, could you have a look to this patch? I try on flame, it can solve the issue. You can also see detail in patch's comment. Thanks!
Attachment #8506733 -
Flags: feedback?(vchang)
Comment 11•10 years ago
|
||
Comment on attachment 8506733 [details] [diff] [review] bug-1065208-wip.diff Review of attachment 8506733 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/wifi/WifiWorker.js @@ +1168,5 @@ > + // But if ssid contains hex value, it will be converted into hex string. > + // When a un-quoted hex ssid is received from GET_NETWORK, > + // it is necessary to encode and quote it. > + if ( fieldName == "ssid" && value[0] != '"' ) { > + config[fieldName] = quote(decodeURIComponent(value.replace(/[0-9a-f]{2}/g, '%$&'))); Can you explain this line a little bit more in the comment? I think we need this conversion after kitkat. Others android version may not have this problem. @@ +1170,5 @@ > + // it is necessary to encode and quote it. > + if ( fieldName == "ssid" && value[0] != '"' ) { > + config[fieldName] = quote(decodeURIComponent(value.replace(/[0-9a-f]{2}/g, '%$&'))); > + } else { > + config[fieldName] = value; Nit: two spaces.
Attachment #8506733 -
Flags: feedback?(vchang) → feedback+
Assignee | ||
Comment 12•10 years ago
|
||
(In reply to Vincent Chang[:vchang] from comment #11) > Comment on attachment 8506733 [details] [diff] [review] > bug-1065208-wip.diff > > Review of attachment 8506733 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: dom/wifi/WifiWorker.js > @@ +1168,5 @@ > > + // But if ssid contains hex value, it will be converted into hex string. > > + // When a un-quoted hex ssid is received from GET_NETWORK, > > + // it is necessary to encode and quote it. > > + if ( fieldName == "ssid" && value[0] != '"' ) { > > + config[fieldName] = quote(decodeURIComponent(value.replace(/[0-9a-f]{2}/g, '%$&'))); > > Can you explain this line a little bit more in the comment? I think we need > this conversion after kitkat. Others android version may not have this > problem. > As comment in patch, when a ssid with non-ascii char is set, it will be converted to hex string and updated into wpa_supplicant.conf. When get network, wpa_supplicant will reply hex string as ssid. For example: SET_NETWORK 1 ssid "Test的i5" --> wpa_supplicant write ssid=54657374e79a846935 into wpa_supplicant.conf GET_NETWORK 1 ssid, --> wpa_supplicant will reply 54657374e79a846935
Assignee | ||
Comment 13•10 years ago
|
||
Vincent, Could you review this patch? Thanks!
Attachment #8510162 -
Flags: review?(vchang)
Comment 14•10 years ago
|
||
Comment on attachment 8510162 [details] [diff] [review] bug-1065208-fix.patch Review of attachment 8510162 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for your patch, looks good. Can you help to double check if this work for Flame JB version, too?
Attachment #8510162 -
Flags: review?(vchang) → review+
Assignee | ||
Comment 15•10 years ago
|
||
Assignee | ||
Comment 16•10 years ago
|
||
(In reply to Vincent Chang[:vchang] from comment #14) > Comment on attachment 8510162 [details] [diff] [review] > bug-1065208-fix.patch > > Review of attachment 8510162 [details] [diff] [review]: > ----------------------------------------------------------------- > > Thanks for your patch, looks good. > Can you help to double check if this work for Flame JB version, too? I verified on Flame JB and tarako ICS, this patch work properly too.
Assignee | ||
Comment 17•10 years ago
|
||
Try result: https://tbpl.mozilla.org/?tree=Try&rev=351bd986d203
Assignee | ||
Comment 18•10 years ago
|
||
b2g-inbound: https://hg.mozilla.org/integration/b2g-inbound/rev/db4b9d9913b9
https://hg.mozilla.org/mozilla-central/rev/db4b9d9913b9
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.1 S8 (7Nov)
Assignee | ||
Comment 20•10 years ago
|
||
Comment on attachment 8511814 [details] [diff] [review] bug-1065208-fix_2.0.patch NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): JB/KK platform User impact if declined: WifiWorker get Javascript error if user try to connect an AP with SSID include non-ASCII character. User can't use wifi anymore until reboot. Testing completed: Verified on devices with ICS/JB/KK platform. Risk to taking this patch (and alternatives if risky): low, Because it only check/encode the SSID read from HAL to avoid Javascript error. String or UUID changes made by this patch: none
Attachment #8511814 -
Flags: approval-mozilla-b2g34?
Attachment #8511814 -
Flags: approval-mozilla-b2g32?
Assignee | ||
Comment 21•10 years ago
|
||
Hi Bhavana, This is 100% reproduced on flame. Could you have a look to the approval request? Thanks!
Flags: needinfo?(bbajaj)
Comment 22•10 years ago
|
||
Comment on attachment 8511814 [details] [diff] [review] bug-1065208-fix_2.0.patch Approving on 2.1 but given where we are in 2.0 and I am not sure on exactly what the deal is on shipping in Chinese markets, I'll let wayne help comment here. If there are not launches there, I'd rather not uplift this at this point.
Flags: needinfo?(bbajaj)
Attachment #8511814 -
Flags: approval-mozilla-b2g34? → approval-mozilla-b2g34+
Updated•10 years ago
|
Flags: needinfo?(wchang)
Assignee | ||
Comment 23•10 years ago
|
||
Update summary. As this issue is not only reproduced with Chinese character but all non-ascii character.
Summary: Can't find any available network anymore if it connects to one AP which SSID name includes Chinese character → Can't find any available network anymore if it connects to one AP which SSID name includes non-ascii character
Comment 24•10 years ago
|
||
Doyun, Can you assess if this would be needed for your project, which will likely see more CJK characters? There is a 2.0 patch available here if you'd like to take this in your project. Bhvana, I don't think we need to land this into 2.0 given the launches known. It will probably impact Doyun's project here but since we have 2.0 patch available, they can pick it over into their project.
Flags: needinfo?(wchang)
Flags: needinfo?(nuno75)
Flags: needinfo?(bbajaj)
Comment 25•10 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/876f916b9168
Comment 26•10 years ago
|
||
(In reply to Wayne Chang [:wchang] from comment #24) > Doyun, > > Can you assess if this would be needed for your project, which will likely > see more CJK characters? There is a 2.0 patch available here if you'd like > to take this in your project. > > Bhvana, > > I don't think we need to land this into 2.0 given the launches known. It > will probably impact Doyun's project here but since we have 2.0 patch > available, they can pick it over into their project. Thanks, waiting for Doyun's input here.
Flags: needinfo?(bbajaj)
Comment 27•10 years ago
|
||
our WPA Supplicant is handling various characters. So, we will not take this on our project.
Updated•10 years ago
|
Attachment #8511814 -
Flags: approval-mozilla-b2g32? → approval-mozilla-b2g32-
Comment 28•10 years ago
|
||
Setting 2.0 to wontfix. Not sure if the blocking flag should be set to 2.0M+ or not.
Comment 29•10 years ago
|
||
Kai-zhen, not sure of you need this on 2.0M so switching the blocking flag for you here.
blocking-b2g: 2.0+ → 2.0M?
Flags: needinfo?(kli)
Updated•10 years ago
|
blocking-b2g: 2.0M? → 2.0M+
Assignee | ||
Comment 31•10 years ago
|
||
http://hg.mozilla.org/releases/mozilla-b2g32_v2_0m/rev/93da912120d8
Comment 32•10 years ago
|
||
This issue has been verified successfully on Woodduck 2.0;Flame2.1&2.2. Reproducing rate: 0/5 See attachment: Verify_Woodduck_WIFI.mp4 Woodduck build version: Gaia-Rev d742e375aca6dc1bf3a36638000ad7f5338ef457 Gecko-Rev d049d4ef127844121c9cf14d2e8ca91fd9045fcb Build-ID 20141126050313 Version 32.0 Flame2.1 build version: Gaia-Rev 1bdd49770e2cb7a7321e6202c9bf036ab5d8f200 Gecko-Rev https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/db893274d9a6 Build-ID 20141125001201 Version 34.0 Flame2.2 build version: Gaia-Rev 824a61cccec4c69be9a86ad5cb629a1f61fa142f Gecko-Rev https://hg.mozilla.org/mozilla-central/rev/acde07cb4e4d Build-ID 20141125040209 Version 36.0a1
Comment 33•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•