Closed
Bug 618335
Opened 14 years ago
Closed 14 years ago
Sync does not accept old style sync key
Categories
(Firefox :: Sync, defect)
Firefox
Sync
Tracking
()
VERIFIED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | betaN+ |
People
(Reporter: st3fan, Assigned: rnewman)
References
Details
(Whiteboard: relnote)
Attachments
(2 files)
4.79 KB,
text/plain
|
Details | |
4.81 KB,
patch
|
philikon
:
review+
|
Details | Diff | Splinter Review |
I have created an account with 3.6.12/1.5.1, which looks like this:
username: stefan@arentz.ca
password: password
sync key: dxdsg-pdnbq-ifply-luocn
I then quit Firefox and run Minefield trunk (2010-12-10) and create a new empty profile. I setup sync and enter all the above.
Sync does not accept the sync key. The Continue button is blue but clicking it does not do anything.
When I remove the hyphens it does its "verifying' thing without errors. When i then hit Continue it proceeds without errors.
However, sync fails. I do not get my bookmarks restored and I see a 'Sync Failed' error at the bottom of the screen.
Reproducable, tried 3 times.
Will attach logs as soon as I have them.
Reporter | ||
Comment 1•14 years ago
|
||
Comment 2•14 years ago
|
||
Yes, hrm, we no longer accept the old 20 char dashed Sync Key as input. You need to type it in without the dashes. We should probably fix that... Grrr...
The log reveals you're running into bug 618068. Unrelated to the UI.
blocking2.0: --- → ?
OS: Mac OS X → All
Hardware: x86 → All
Comment 3•14 years ago
|
||
I think we should fix this for b9, and relnote for b8.
blocking2.0: ? → beta9+
Comment 5•14 years ago
|
||
(In reply to comment #3)
> I think we should fix this for b9, and relnote for b8.
Can we retriage this fix for b8? (re-nom'ing blocker) Users with the 20-char-dash keys will be copying/pasting the key they were asked to save beforehand, which includes the dashes. They're not going to see your relnote unless you have it on the setup UI to strip it out. It was causing me headaches all afternoon (see bug 618068), and i'm certain you'll hear from others as well. If the fix is not hard, i highly suggest we get this back in.
blocking2.0: beta9+ → ?
Comment 6•14 years ago
|
||
Users who are setting up new devices will be directed to the J-PAKE flow, not to the manual setup flow, as a primary user path. And that's only if they're setting up a new device, as upgrades should be seamless.
We're in risk mitigation mode right now, and I really think this isn't an absolute requirement for b8.
blocking2.0: ? → beta9+
Assignee | ||
Comment 8•14 years ago
|
||
I just:
* Created a new account with 3.6.13 + 1.5.1
* Launched 2010-12-14 nightly and pasted in my passphrase: "zpleg-njmog-mkjjf-linaz"
* Sync proceeded correctly
* The old client shows an error about needing to upgrade Sync.
Stefan, can you still repro? My suspicion is that this is the same as Bug 618411.
Updated•14 years ago
|
Whiteboard: relnote
Assignee | ||
Comment 9•14 years ago
|
||
Resolving. Stefan, please reopen if this still doesn't work for you with current builds.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
Comment 10•14 years ago
|
||
Richard, I think you perhaps misunderstood the bug. It's about not being able to enter the dashed version of the old-style 20 character Sync Key, e.g. dxdsg-pdnbq-ifply-luocn. We just treat everything that's not the dashed representation of our 26 character new-style Sync Key as an opaque passphrase and feed it into the PBKDF2 upgrade step. This means dxdsg-pdnbq-ifply-luocn won't be the same as dxdsgpdnbqifplyluocn, but it should be.
The fix here is to make Utils.normalizePassphrase() recognize dashed old-style Sync Keys and remove the dashes.
Status: RESOLVED → REOPENED
Component: Firefox Sync: UI → Firefox Sync: Backend
QA Contact: sync-ui → sync-backend
Resolution: WORKSFORME → ---
Comment 11•14 years ago
|
||
(In reply to comment #8)
> * Created a new account with 3.6.13 + 1.5.1
> * Launched 2010-12-14 nightly and pasted in my passphrase:
> "zpleg-njmog-mkjjf-linaz"
> * Sync proceeded correctly
> * The old client shows an error about needing to upgrade Sync.
This is not the right way to repro this. What you did meant that the Minefield profile saw a v3 account, so you could have entered *any* Sync Key and it would've worked because it just simply wipes the server and uploads the data. If you would've upgraded the 3.6.x profile to Sync 1.6, you would've gotten a Wrong Sync Key error.
What you need to do to repro is:
1. Create a new account with 3.6.13 + 1.5.1 or 4.0b7, remember old-style Sync Key.
2. Migrate that profile to Sync 1.6 or a nightly/4.0b8 so that the account is at v5 and the new style Sync Key was generated from the old style one using PBKDF2
3. Take a *second* nightly/4.0b8 profile and now try to connect to the account by pasting in dashed version of old-style Sync Key.
Assignee | ||
Comment 12•14 years ago
|
||
Ah, good call. Thanks Philipp. Will fix on Monday.
Assignee | ||
Comment 13•14 years ago
|
||
This should do the trick. Verified using the steps from your last comment, Philipp. Review, please?
Attachment #498686 -
Flags: review?(philipp)
Comment 14•14 years ago
|
||
Comment on attachment 498686 [details] [diff] [review]
normalizePassphrase applies to 5x4 keys, v1
Lovely. Please commit to both the default and 1.6.x branch in fx-sync.
Attachment #498686 -
Flags: review?(philipp) → review+
Assignee | ||
Comment 15•14 years ago
|
||
Pushed:
1.6.x: http://hg.mozilla.org/services/fx-sync/rev/57ec1b19e232
default: http://hg.mozilla.org/services/fx-sync/rev/00c94d9b2633
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Comment 17•14 years ago
|
||
As per today's meeting, beta 9 will be a time-based release. Marking these all betaN+. Please move it back to beta9+ if you believe it MUST be in the next beta (ie: trunk is in an unshippable state without this)
No longer blocks: 621194
blocking2.0: beta9+ → betaN+
Comment 18•14 years ago
|
||
Christian, Any reason you removed the Cc's?
Assignee | ||
Comment 19•14 years ago
|
||
(In reply to comment #18)
> Christian, Any reason you removed the Cc's?
Bug in his script. Nothing to worry about; he's putting them back.
Comment 20•14 years ago
|
||
I had an old sync account which was setup with a freeform-style key. Minefield then changed it without any notification to a dashed 26 character key and view quota said 0 bytes for everything. Other clients then wouldn't sync due to an invalid key. In those clients, view key doesn't let you change the key. You need to click "Connect" and wait for it to ask you to update the key.
Is any of that supposed to happen? I assumed the old Weave style key would still be supported where it already existed.
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
•