Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Issue 759663004: ONC: add support for non-utf-8 SSIDs (Closed)

Created:
6 years ago by cschuet (SLOW)
Modified:
6 years ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org, stevenjb, mukesh agrawal
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

ONC: add support for non-utf-8 SSIDs ONC currently uses strings to represent SSIDs. Since JSON-Schema strings are restricted to Unicode and ONC is encoding these as UTF-8, this means that ONC cannot be used to represent SSIDs that include non-UTF-8 strings. This change adds a separate HexSSID field to the WiFi section of the ONC that expects an SSID byte sequence encoded in hex. At least one of the fields HexSSID or SSID must be present. If both HexSSID and SSID are set, the values must be consistent. BUG=432546 Committed: https://crrev.com/decce902f12dde8b6abdbfe625905be8fcb27ab0 Cr-Commit-Position: refs/heads/master@{#306838}

Patch Set 1 #

Total comments: 32

Patch Set 2 : requested changes #

Patch Set 3 : adjusted onc_spec.html #

Total comments: 16

Patch Set 4 : addressed issues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -8 lines) Patch
M chromeos/network/managed_network_configuration_handler_impl.cc View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_normalizer.h View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M chromeos/network/onc/onc_normalizer.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_normalizer_unittest.cc View 2 chunks +17 lines, -1 line 0 comments Download
M chromeos/network/onc/onc_signature.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/network/onc/onc_utils.h View 1 1 chunk +11 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_utils.cc View 1 2 3 3 chunks +37 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_validator.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_validator.cc View 1 3 chunks +62 lines, -2 lines 0 comments Download
M chromeos/network/onc/onc_validator_unittest.cc View 1 2 chunks +18 lines, -0 lines 0 comments Download
M chromeos/test/data/network/invalid_settings_with_repairs.json View 1 1 chunk +31 lines, -0 lines 0 comments Download
M chromeos/test/data/network/settings_with_normalization.json View 1 chunk +20 lines, -0 lines 0 comments Download
A + chromeos/test/data/network/toplevel_wifi_hexssid.onc View 1 chunk +1 line, -1 line 0 comments Download
A + chromeos/test/data/network/toplevel_wifi_ssid_and_hexssid.onc View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/onc/docs/onc_spec.html View 1 2 3 3 chunks +27 lines, -2 lines 0 comments Download
M components/onc/onc_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/onc/onc_constants.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
pneubeck (no reviews)
https://codereview.chromium.org/759663004/diff/1/chromeos/network/onc/onc_normalizer.cc File chromeos/network/onc/onc_normalizer.cc (right): https://codereview.chromium.org/759663004/diff/1/chromeos/network/onc/onc_normalizer.cc#newcode236 chromeos/network/onc/onc_normalizer.cc:236: FillInHexSSIDField(wifi); check whether this should also be called after ...
6 years ago (2014-11-26 10:15:34 UTC) #2
cschuet (SLOW)
https://codereview.chromium.org/759663004/diff/1/chromeos/network/onc/onc_normalizer.cc File chromeos/network/onc/onc_normalizer.cc (right): https://codereview.chromium.org/759663004/diff/1/chromeos/network/onc/onc_normalizer.cc#newcode236 chromeos/network/onc/onc_normalizer.cc:236: FillInHexSSIDField(wifi); On 2014/11/26 10:15:33, pneubeck wrote: > check whether ...
6 years ago (2014-11-27 11:03:58 UTC) #3
pneubeck (no reviews)
+Steven,Mukesh FYI https://codereview.chromium.org/759663004/diff/40001/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc File chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc (right): https://codereview.chromium.org/759663004/diff/40001/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc#newcode227 chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc:227: // fill in HexSSID field from contents ...
6 years ago (2014-11-27 14:49:03 UTC) #4
pneubeck (no reviews)
explain a little bit more what this CL is about in the commit message. https://codereview.chromium.org/759663004/diff/40001/chromeos/network/managed_network_configuration_handler_impl.cc ...
6 years ago (2014-11-27 14:56:46 UTC) #5
cschuet (SLOW)
https://codereview.chromium.org/759663004/diff/40001/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc File chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc (right): https://codereview.chromium.org/759663004/diff/40001/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc#newcode227 chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc:227: // fill in HexSSID field from contents of SSID ...
6 years ago (2014-11-27 15:44:31 UTC) #6
pneubeck (no reviews)
lgtm
6 years ago (2014-11-29 12:17:53 UTC) #7
pneubeck (no reviews)
On 2014/11/29 12:17:53, pneubeck wrote: > lgtm please still update the CL's commit message to ...
6 years ago (2014-11-29 12:18:19 UTC) #8
cschuet (SLOW)
On 2014/11/29 12:18:19, pneubeck wrote: > On 2014/11/29 12:17:53, pneubeck wrote: > > lgtm > ...
6 years ago (2014-12-02 12:38:26 UTC) #9
pneubeck (no reviews)
On 2014/12/02 12:38:26, cschuet wrote: > On 2014/11/29 12:18:19, pneubeck wrote: > > On 2014/11/29 ...
6 years ago (2014-12-02 13:14:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/759663004/60001
6 years ago (2014-12-04 16:16:11 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years ago (2014-12-04 16:58:31 UTC) #13
commit-bot: I haz the power
6 years ago (2014-12-04 16:59:34 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/decce902f12dde8b6abdbfe625905be8fcb27ab0
Cr-Commit-Position: refs/heads/master@{#306838}

Powered by Google App Engine
This is Rietveld 408576698