Skip to content

Add-on Store: Remove invalid cache file#15111

Merged
seanbudd merged 4 commits into
masterfrom
removeInvalidCache
Jul 14, 2023
Merged

Add-on Store: Remove invalid cache file#15111
seanbudd merged 4 commits into
masterfrom
removeInvalidCache

Conversation

@seanbudd

@seanbudd seanbudd commented Jul 10, 2023

Copy link
Copy Markdown
Member

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
Copy Markdown

See test results for failed build of commit e3556a1ea0

@XLTechie

Copy link
Copy Markdown
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
Copy Markdown
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