ISNIT0 / zipternet

1 stars 0 forks source link

Improve error detection and handing when content not available in ZIP content #33

Open julianharty opened 5 years ago

julianharty commented 5 years ago

There are several reasons why content may not be available. These include obscure paths and redirections in the content (which are not supported in ZIP file content).

2019-08-22 16:02:30.903 15709-15816/app.zipternet.custom D/ZIPT: openFile paths: -/s/css_modules/skins.minerva.base.reset|skins.minerva.content.styles|ext.cite.style|mobile.app.pagestyles.android|mediawiki.page.gallery.styles|mediawiki.skinning.content.parsoid.css:skins.minerva.base.reset|skins.minerva.content.styles|ext.cite.style|mobile.app.pagestyles.android|mediawiki.page.gallery.styles|mediawiki.skinning.content.parsoid.css
2019-08-22 16:02:34.432 15709-15816/app.zipternet.custom W/ContentUriUtils: Unknown content uri: content://app.zipternet.custom/-/s/css_modules/skins.minerva.base.reset%7Cskins.minerva.content.styles%7Cext.cite.style%7Cmobile.app.pagestyles.android%7Cmediawiki.page.gallery.styles%7Cmediawiki.skinning.content.parsoid.css
    java.lang.IllegalStateException: entry must not be null
        at app.zipternet.custom.ZipProvider.openFile(ZipProvider.kt:54)
        at android.content.ContentProvider.openAssetFile(ContentProvider.java:1545)
        at android.content.ContentProvider.openTypedAssetFile(ContentProvider.java:1725)
        at android.content.ContentProvider.openTypedAssetFile(ContentProvider.java:1791)
        at android.content.ContentProvider$Transport.openTypedAssetFile(ContentProvider.java:425)
        at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1410)
        at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1247)
        at android.content.ContentResolver.openFileDescriptor(ContentResolver.java:1100)
        at android.content.ContentResolver.openFileDescriptor(ContentResolver.java:1054)
        at org.chromium.base.ContentUriUtils.b(PG:46)
        at org.chromium.base.ContentUriUtils.openContentUriForRead(PG:7)
2019-08-22 16:02:34.451 15709-15816/app.zipternet.custom D/ZIPT: openFile paths: -/s/css_modules/content.parsoid.css:content.parsoid.css
2019-08-22 16:02:35.972 15709-15816/app.zipternet.custom W/ContentUriUtils: Unknown content uri: content://app.zipternet.custom/-/s/css_modules/content.parsoid.css
    java.lang.IllegalStateException: entry must not be null
        at app.zipternet.custom.ZipProvider.openFile(ZipProvider.kt:54)
        at android.content.ContentProvider.openAssetFile(ContentProvider.java:1545)
        at android.content.ContentProvider.openTypedAssetFile(ContentProvider.java:1725)
        at android.content.ContentProvider.openTypedAssetFile(ContentProvider.java:1791)
        at android.content.ContentProvider$Transport.openTypedAssetFile(ContentProvider.java:425)
        at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1410)
        at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1247)
        at android.content.ContentResolver.openFileDescriptor(ContentResolver.java:1100)
        at android.content.ContentResolver.openFileDescriptor(ContentResolver.java:1054)
        at org.chromium.base.ContentUriUtils.b(PG:46)
        at org.chromium.base.ContentUriUtils.openContentUriForRead(PG:7)
2019-08-22 16:02:36.010 15709-15709/app.zipternet.custom I/chromium: [INFO:CONSOLE(117)] "Uncaught ReferenceError: $ is not defined", source: content://app.zipternet.custom/A/index.html (117)