Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewards wallet is reset on upgrade from very old version #16449

Closed
zenparsing opened this issue Jun 15, 2021 · 3 comments · Fixed by brave/brave-core#9143
Closed

Rewards wallet is reset on upgrade from very old version #16449

zenparsing opened this issue Jun 15, 2021 · 3 comments · Fixed by brave/brave-core#9143
Assignees
Labels
feature/rewards OS/Android Fixes related to Android browser functionality OS/Desktop priority/P2 A bad problem. We might uplift this to the next planned release. QA Pass - Android ARM QA Pass - Android Tab QA Pass-macOS QA/Yes release-notes/include

Comments

@zenparsing
Copy link

A migration from JSON files containing Rewards settings to using the browser's Prefs file was introduced in version 1.11. In 1.16 that initial migration was broken for users upgrading from 1.10, resulting in a "fresh restart" of Rewards on upgrade from 1.10 (or older) to 1.16.

@zenparsing zenparsing added feature/rewards OS/Android Fixes related to Android browser functionality OS/Desktop labels Jun 15, 2021
@zenparsing zenparsing self-assigned this Jun 15, 2021
@zenparsing zenparsing added the priority/P1 A very extremely bad problem. We might push a hotfix for it. label Jun 15, 2021
@rebron rebron added priority/P2 A bad problem. We might uplift this to the next planned release. and removed priority/P1 A very extremely bad problem. We might push a hotfix for it. labels Jun 29, 2021
@zenparsing zenparsing added this to the 1.28.x - Nightly milestone Jun 30, 2021
@stephendonner
Copy link

We're going to need a testplan here; @zenparsing are you able to provide one for us? Marking as QA/Blocked until we have that; thanks!

@LaurenWags LaurenWags added QA/In-Progress Indicates that QA is currently in progress for that particular issue and removed QA/Blocked labels Jul 28, 2021
@LaurenWags
Copy link
Member

Verified passed with

Brave | 1.28.95 Chromium: 92.0.4515.115 (Official Build) beta (x86_64)
-- | --
Revision | 48cb2f4029b84b003719740a6cf9ca73f374a857-refs/branch-heads/4515_105@{#4}
OS | macOS Version 10.15.7 (Build 19H1217)

Verified test plan from brave/brave-core#9143.

Scenario 1: Upgrade from 1.10.x

Pre-req: have ledger_state and publisher_state JSON files handy.

  1. Start the browser version 1.10.90 with a clean profile to create a profile directory.
  2. Close the browser.
  3. Copy ledger_state and publisher_state JSON files into the Default profile directory. Note, you cannot use this version to create a wallet any longer, so best we can do is use fake data.
  4. Rename the profile to Brave-Browser-Beta
  5. Launch the beta version (1.28.x).
  6. Navigate to brave://rewards-internals.
  7. Verify that the displayed payment ID matches the payment ID from the ledger_state file.

Note, since we're faking data nothing will really work with the server, but confirming that the paymentId is imported is good enough for this case.

Scenario 2: Only using 1.28.x

Pre-req: have ledger_state and publisher_state JSON files handy.

  1. Start the browser 1.28.x with a clean profile to create a profile directory. .
  2. Close the browser.
  3. Copy ledger_state and publisher_state JSON files into the Default profile directory.
  4. Launch the browser.
  5. Navigate to brave://rewards-internals.
  6. Verify that the displayed payment ID matches the payment ID from the ledger_state file.

Note, as with the previous scenario, since we're faking data nothing will really work with the server, but confirming that the paymentId is imported is good enough for this case.

brave://rewards-internals before import brave://rewards-internals after import ledger_state file
before after ledger_state

@LaurenWags LaurenWags added QA Pass-macOS and removed QA/In-Progress Indicates that QA is currently in progress for that particular issue labels Jul 28, 2021
@srirambv
Copy link
Contributor

srirambv commented Aug 3, 2021

Verification passed on Oppo R5 with Android 11 running 1.28.99 x64 Beta build

  • Verified wallet is not reset upon upgrade from an older version

Verification passed on Samsung Tab A with Android 10 running 1.28.99 x64 Beta build

  • Verified wallet is not reset upon upgrade from an older version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/rewards OS/Android Fixes related to Android browser functionality OS/Desktop priority/P2 A bad problem. We might uplift this to the next planned release. QA Pass - Android ARM QA Pass - Android Tab QA Pass-macOS QA/Yes release-notes/include
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants