Kiwix-android: Fails to update/wipe local file list

Created on 18 Jun 2019  路  15Comments  路  Source: kiwix/kiwix-android

I had several zim files stored on an external drive. When I switched cards the files appear as still listed, but when trying to open I get a standard error message "the selected ZIM file could not be found".
IMG_20190618_175745

Then when I try to delete the entry it exits the library and brings me back to the home page (default welcome or whatever zim was last open).

The interesting behaviour is that when I switch cards back to the old one, I can access these zims without problem. I cannot, however, delete them.
IMG_20190618_180207

Config is Huawei P20 Lite / Android 8.0 / kiwix-android 2.5 build 220500

bug

All 15 comments

Confirm that from in the interface I can delete files in my download folder but not those in the Kiwix folder (FWIW default storage in Kiwix is set to internal storage and I'm trying to delete zims on the external one). Also when I update the local library the old zim remains listed (I can "delete" it though).

I think I will solve this by putting a filter on the BooksOnDisk emission of file.exists() and create a separate subscription that observes non existing files and deletes them from the db

@macgills Great if you can fix it! This is really a long standing bug reporting many times already.

@macgills I am facing a related (or probably the same) issue with develop, wrt to #1276
Basically before I merged with develop (when it was still based on master); after file transfer completed, the 'Library' on the receiver device automatically detected the new zims. But this doesn't happen after merging with develop, even after swiping down to refresh the 'Library'

@Aditya-Sood that is odd if it doesn't work on a swipe down. The fileSearch operation still runs then. Potentially a separate issue, we will retest once I have addressed this issue

1376 has hopefully fixed this, @Popolechien if you can retest this tomorrow with the nightly that would be very helpful

@macgills It shall be done.

Vielen danke

Tested the nightly:
Good: it does find (and open) files I download with it
Not so good: it does not seem to find files that had been previously downloaded or are located on the external SD card.

@Popolechien that is a symptom of #1385 can you try on an earlier android version?

@macgills Let me ask around, I may be able to get one early next week. Also when you say "earlier" - do we mean android 8, or android 7 and below?

just not 9. I will probably have a fix for that issue pushed by later today and ideally merged tomorrow so don't stress yourself

@popolechien a beta will be published today and if you can test that then hopefully this should finally be resolved

@Popolechien Could you please confirm, so we can close the ticket?

Yay, fixed \o/
Well done gents

Was this page helpful?
0 / 5 - 0 ratings