Closed
Bug 619567
Opened 14 years ago
Closed 14 years ago
Passphrase/sync key entry should allow leading and trailing whitespace
Categories
(Firefox :: Sync, defect)
Firefox
Sync
Tracking
()
VERIFIED
FIXED
2.0
People
(Reporter: rnewman, Assigned: rnewman)
References
Details
Attachments
(1 file)
2.76 KB,
patch
|
philikon
:
review+
|
Details | Diff | Splinter Review |
Easy to do when copying and pasting from a text file. Putting in Backend rather than UI, because this comes down to normalizePassphrase.
Assignee | ||
Comment 1•14 years ago
|
||
Tested by clearing CollectionKeys and stomping on SyncKeyBundle, going through the post-error Update dialog and adding whitespace. Tests pass, too. Method for the above (in privileged Error Console): // First: copy sync key! Components.utils.import("resource://services-sync/service.js").Weave.Service.syncKeyBundle.keyStr = "a-abcde-abcde-abcde-abcde-abcde"; Components.utils.import("resource://services-sync/base_records/crypto.js").CollectionKeys.clear(); // Kick off sync
Attachment #497962 -
Flags: review?(mconnor)
Comment 2•14 years ago
|
||
Comment on attachment 497962 [details] [diff] [review] Strip leading and trailing whitespace. v1 Taking over from mconnor who's out. Probably good idea to put on the 1.6.x branch as well. Thanks!
Attachment #497962 -
Flags: review?(mconnor) → review+
Assignee | ||
Comment 3•14 years ago
|
||
Pushed: 1.6.x: http://hg.mozilla.org/services/fx-sync/rev/6d5db9467f9b default: http://hg.mozilla.org/services/fx-sync/rev/b4d631a9b144
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 4•14 years ago
|
||
tested this against Minefield nightly of 2011-01-04. pasted correct sync key in dialog for adding device, not using easy setup, added a space to the beginning and/or end of the key. Also tested ensuring there was whitespace present in CnP I get Wrong key error message in the UI. However, if I removed the spaces, setup accepts the key as expected.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 5•14 years ago
|
||
Well, that's weird. Will take a look later.
Comment 6•14 years ago
|
||
Hmmm, it just worked on 1.6.1
Assignee | ||
Comment 7•14 years ago
|
||
... it's in m-c: http://hg.mozilla.org/mozilla-central/rev/dbed066cf3fb which suggests that perhaps the UI isn't calling normalizePassphrase, or a subsequent commit screwed things up.
Assignee | ||
Comment 8•14 years ago
|
||
(In reply to comment #6) > Hmmm, it just worked on 1.6.1 => the built-in Fx4 UI is misbehaving. That's a good lead.
Comment 9•14 years ago
|
||
(In reply to comment #7) > which suggests that perhaps the UI isn't calling normalizePassphrase, or a > subsequent commit screwed things up. The built-in UI sure calls normalizePassphrase.
Comment 10•14 years ago
|
||
so this doesn't work on m-c nightly of 2010-12-21. So, unless another check-in between when the fix here was pushed (see comment #3) and when the tested nightly was created broke this, this was never working on trunk.
Comment 11•14 years ago
|
||
Does fact that 1.6.1 has a user/pwd dialog, then a sync key dialog, but trunk has all three fields combined in one dialog have anything to do with this?
Assignee | ||
Comment 12•14 years ago
|
||
I just failed to reproduce this with a 2011-01-05 Minefield build from this morning. Used a profile that I know is syncing with another profile. Clicked "Stop using this account", made sure no Sync add on was installed, restarted Minefield. Set up > Don't have device > entered credentials. Put three spaces at start and end of key. No error. Verified that Sync completed without error. Nothing in error console. Looking in Password Manager shows my entered 26-char sync key with no hyphens or whitespace. Tracy, would you please test with tomorrow morning's nightly, and re-close if you can't repro?
Comment 13•14 years ago
|
||
Hmmm, I was using a crufty profile when I reopened this. Try with the MF build of 2011-01-06 with a fresh profile, this works.
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in
before you can comment on or make changes to this bug.
Description
•