Page MenuHomePhabricator

Update cached compilation info to account for compilation files removed outside the app
Closed, InvalidPublic

Description

It's currently possible to get the app into a misbehaving state in which it believes zim compilations are present that no longer exist.

  1. Download a comp (e.g., WP Uganda)
  2. Let the app search for it and cache the info
  3. Remove the comp outside the context of the app (e.g., in a file explorer app or with ADB)
  4. Search compilations in-app and select the same comp from the list

Expected:

The app detects the file is absent, and the 'Download' button appears

Actual:

The app still believes (based on cached compilation info) that the comp is still present, and the 'Remove' and 'My compilations' buttons appear

This condition persists even after clearing the app data in Android settings. (!)

Event Timeline

Mholloway renamed this task from Update cached compilation info to account for separately removed zim files to Update cached compilation info to account for compilation files removed outside the app.Aug 17 2017, 3:08 PM

Now works as expected. Might have been side-effect fixed by intervening patches.