Closed Bug 835257 Opened 11 years ago Closed 9 years ago

[OPEN_][WIFI] Setting a custom AP which ssid name is over 32 characters also can be saved.(617001981003)

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(tracking-b2g:backlog)

RESOLVED FIXED
tracking-b2g backlog

People

(Reporter: Firefox_Mozilla, Assigned: ralin)

Details

Attachments

(2 files)

Steps to reproduce:
1.go into setting and turn on wifi;
2.go into manage network setting in wifi;
3.tap "join hidden network";
4.enter ssid network name and password and then save;

Expected results:
it can be saved successfully.
Actual results:
1. if the entering number of the ssid network name is over 32, it can not be saved successful and does not have any hint. 
notes: in settings-internet share-hotspot settings, we can modify the ssid network name over 32 characters. And when the ssid network name long, it is shown overlay.
Attached image interface overlay
Status: UNCONFIRMED → NEW
Ever confirmed: true
Component: Wifi → Gaia::Settings
Assignee: nobody → ralin
Comment on attachment 8699308 [details] [review]
[gaia] raylin:835257-limit-join-network-ssid-length > mozilla-b2g:master

Hi,

I took a quick look at this bug, and found that:
1. overlay problem in hot spot setting is already fixed.
2. user actually can enter SSID name over 32 chars without any check or warning. The strange point is that we do implement check mechanism to prevent this happen (https://github.com/raylin/gaia/blob/f63fee32/apps/settings/js/panels/wifi_join_hidden/panel.js#L26), but could not be triggered normally.

Therefore, I changed the way of event binding and now we can stop user from entering more than 32 chars.

Thanks!!
Attachment #8699308 - Flags: review?(gasolin)
Comment on attachment 8699308 [details] [review]
[gaia] raylin:835257-limit-join-network-ssid-length > mozilla-b2g:master

Good catch! thanks.
Attachment #8699308 - Flags: review?(gasolin) → review+
https://github.com/mozilla-b2g/gaia/commit/cdc43fd341a39104c8feac12ae6580ba11933b6f
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: