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

Add-on Store: Remove invalid cache file #15111

Merged
merged 4 commits into from
Jul 14, 2023
Merged

Add-on Store: Remove invalid cache file #15111

merged 4 commits into from
Jul 14, 2023

Conversation

seanbudd
Copy link
Member

@seanbudd seanbudd commented Jul 10, 2023

Link to issue number:

Closes #15106

Summary of the issue:

If NVDA has an invalid add-on store cache file it can be safely deleted until a new cache is fetched.
Without deleting it, NVDA will start with an error until it is overwritten by browsing add-ons.

Description of user facing changes

If NVDA has invalid cache data for the add-on store, NVDA will log an exception then delete the invalid cache file.

Description of development approach

If NVDA has invalid cache data for the add-on store, NVDA will log an exception then delete the invalid cache file.

Testing strategy:

Test invalid cache file

Known issues with pull request:

None

Change log entries:

N/A

Code Review Checklist:

  • Pull Request description:
    • description is up to date
    • change log entries
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • API is compatible with existing add-ons.
  • Documentation:
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • Security precautions taken.

@AppVeyorBot
Copy link

See test results for failed build of commit e3556a1ea0

@XLTechie
Copy link
Collaborator

@seanbudd is this prevented from running in installer/temporary copies?

I ask because I have installed the snapshot of this build.
However, after doing so, neither the current run log, or the previous log, show the expected exception.

On the positive side, it solves the problem I reported in the referenced issue. However now I'm concerned that it removed the cache while the installer was running, which goes back to an older consideration.

@seanbudd seanbudd marked this pull request as draft July 10, 2023 23:33
@seanbudd
Copy link
Member Author

Fixed, thanks @XLTechie

@seanbudd seanbudd marked this pull request as ready for review July 11, 2023 05:53
@seanbudd seanbudd merged commit 6a65ba0 into master Jul 14, 2023
@seanbudd seanbudd deleted the removeInvalidCache branch July 14, 2023 07:04
@nvaccessAuto nvaccessAuto added this to the 2023.2 milestone Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid add-on store cache in latest alphas, whole cache dumpped to log
5 participants