Closed
Bug 819164
Opened 12 years ago
Closed 12 years ago
Can't connect to network with SSID that includes UTF-8 encoded characters
Categories
(Firefox OS Graveyard :: Wifi, defect)
Firefox OS Graveyard
Wifi
Tracking
(blocking-basecamp:+, firefox19 fixed, firefox20 fixed, b2g18 fixed)
People
(Reporter: brendan, Assigned: mrbkap)
References
Details
Attachments
(2 files)
796 bytes,
text/plain
|
Details | |
1.50 KB,
patch
|
gal
:
review+
|
Details | Diff | Splinter Review |
Here at the Hotel St. Regis, cbeard tried making a hotspot with his iPhone, which requires a password. In that case the B2G phone couldn't connect, I think. Chris should say more.
/be
Reporter | ||
Updated•12 years ago
|
Summary: Unagi couldn't connect to iPhone hotspot with password → Unagi couldn't connect to iPhone wifi hotspot with password
Assignee | ||
Comment 1•12 years ago
|
||
I'm not sure if anyone around has an iPhone that we can test on easily. I'll ask around.
blocking-basecamp: --- → ?
Comment 3•12 years ago
|
||
We can't handle the ssid with special characters, for instance "Tim’s iPhone 4S". We got the javascript error when ssid has character `'`.
Embarrassing!
Summary: Unagi couldn't connect to iPhone wifi hotspot with password → Can't connect to network with SSID that includes single-quote character (and probably more)
Comment 5•12 years ago
|
||
More information, look like ssid is encoded in utf8. So `'` is represented in 0xe2 0x80 0x99.
Assignee | ||
Comment 6•12 years ago
|
||
The problem is that readString interprets the string as UTF-8, so reply_len was not a valid index into str. The fix is to fix up the string (do nul termination and newline-nuking) before we try to convert to utf-8. One nice thing about writing this in JS using ctypes: this was a misbehavior bug dealing with indices into arrays that's not a security vulnerability!
Thanks a ton for the debugging help, Vincent.
Attachment #691149 -
Flags: review?(vchang)
Assignee | ||
Updated•12 years ago
|
Attachment #690776 -
Attachment is patch: false
Assignee | ||
Comment 7•12 years ago
|
||
One problem I'm having right now is that the settings app is broken too badly to connect to any network (being tracked by bug 818056) so I can't verify that my patch fixes this (other than in my test, I stopped seeing us throw exceptions).
Assignee | ||
Updated•12 years ago
|
Summary: Can't connect to network with SSID that includes single-quote character (and probably more) → Can't connect to network with SSID that includes UTF-8 encoded characters
Updated•12 years ago
|
Attachment #691149 -
Flags: review?(vchang) → review+
Assignee | ||
Comment 8•12 years ago
|
||
Component: General → Wifi
Comment 9•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 10•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/f21e3aaa9142
https://hg.mozilla.org/releases/mozilla-b2g18/rev/bb7d01c8e9d2
status-b2g18:
--- → fixed
status-firefox19:
--- → fixed
status-firefox20:
--- → fixed
Target Milestone: --- → B2G C3 (12dec-1jan)
You need to log in
before you can comment on or make changes to this bug.
Description
•