Closed Bug 618335 Opened 14 years ago Closed 14 years ago

Sync does not accept old style sync key

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Tracking Status
blocking2.0 --- betaN+

People

(Reporter: st3fan, Assigned: rnewman)

References

Details

(Whiteboard: relnote)

Attachments

(2 files)

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.
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
I think we should fix this for b9, and relnote for b8.
blocking2.0: ? → beta9+
(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+ → ?
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+
Working on this.
Assignee: nobody → rnewman
Status: NEW → ASSIGNED
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.
Whiteboard: relnote
Resolving. Stefan, please reopen if this still doesn't work for you with current builds.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
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 → ---
(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.
Ah, good call. Thanks Philipp. Will fix on Monday.
This should do the trick. Verified using the steps from your last comment, Philipp. Review, please?
Attachment #498686 - Flags: review?(philipp)
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+
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 ago14 years ago
Resolution: --- → FIXED
verified with 1.6.1 and beta8 builds
Status: RESOLVED → VERIFIED
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+
Christian, Any reason you removed the Cc's?
(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.
Blocks: 621194
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.
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.

Attachment

General

Created:
Updated:
Size: