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

Issue 2813453004: [sync] Fix decryption failure caused by missing user_key (Closed)

Created:
3 years, 8 months ago by Patrick Noland
Modified:
3 years, 8 months ago
Reviewers:
pavely
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[sync] Fix decryption failure caused by missing user_key Recently, a change removed code that populated the user_key field of nigori nodes. Clients running code from before this change fail to import keys that don't have user_key populated. If a post-change client commits a nigori node, a pre-change client will fail to subsequently import it. This change restores code that populates user_key, but omits code that fails the import if the user_key is absent. R=pavely@chromium.org BUG=707967 Review-Url: https://codereview.chromium.org/2813453004 Cr-Commit-Position: refs/heads/master@{#463455} Committed: https://chromium.googlesource.com/chromium/src/+/399458cbfa1d8458842e9119e6ad063716c7e66e

Patch Set 1 : [sync] Fix decryption failure caused by missing user_key #

Total comments: 6

Patch Set 2 : Restore derivation check, add tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -15 lines) Patch
M components/sync/base/cryptographer.cc View 5 chunks +11 lines, -7 lines 0 comments Download
M components/sync/base/nigori.h View 1 3 chunks +11 lines, -2 lines 0 comments Download
M components/sync/base/nigori.cc View 1 3 chunks +15 lines, -3 lines 0 comments Download
M components/sync/base/nigori_unittest.cc View 1 2 chunks +28 lines, -2 lines 0 comments Download
M components/sync/engine_impl/model_type_worker_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 24 (18 generated)
Patrick Noland
Pavel, PTAL
3 years, 8 months ago (2017-04-10 20:14:23 UTC) #9
pavely
lgtm % three comments. https://codereview.chromium.org/2813453004/diff/20001/components/sync/base/nigori.cc File components/sync/base/nigori.cc (right): https://codereview.chromium.org/2813453004/diff/20001/components/sync/base/nigori.cc#newcode85 components/sync/base/nigori.cc:85: kDerivedKeySizeInBits); Could you keep DCHECK ...
3 years, 8 months ago (2017-04-10 21:27:29 UTC) #12
Patrick Noland
https://codereview.chromium.org/2813453004/diff/20001/components/sync/base/nigori.cc File components/sync/base/nigori.cc (right): https://codereview.chromium.org/2813453004/diff/20001/components/sync/base/nigori.cc#newcode85 components/sync/base/nigori.cc:85: kDerivedKeySizeInBits); On 2017/04/10 21:27:29, pavely wrote: > Could you ...
3 years, 8 months ago (2017-04-10 23:43:06 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2813453004/40001
3 years, 8 months ago (2017-04-10 23:44:15 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:40001) as https://chromium.googlesource.com/chromium/src/+/399458cbfa1d8458842e9119e6ad063716c7e66e
3 years, 8 months ago (2017-04-10 23:58:33 UTC) #23
Patrick Noland
3 years, 8 months ago (2017-04-11 16:43:03 UTC) #24
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:40001) has been created in
https://codereview.chromium.org/2809853003/ by pnoland@chromium.org.

The reason for reverting is: Causing crashes on all platforms.

Powered by Google App Engine
This is Rietveld 408576698