I am right on top of bug hunting lately! During troubleshooting for an un-related issue, I cleared out my android app data for ziti (so, starting "fresh") and tried to load the network JWT into the app from my Nextcloud folders (I have Nextcloud installed on my Android device - and it shows up in the file browser), and Open Ziti's Tunneler app does not do anything (No visible error messages, no new identities added) and if I try to add it again, the app crashes.
I can workaround it by going into Nextcloud, exporting (which 'saves' it to your download folder in Android) the JWT file and then loading into the tunneler app. Everything is good at this point. Not sure why the location of the file matters for Ziti, but seems like it could be a bug.
Feedback logs were sent via support email moments ago.
I believe I replied to your email, but with this extra details my reply is probably wrong. (assuming that was you I replied to)
I see the "FATAL EXCEPTION" in the logs:
04-06 16:07:49.962 20599 20599 E AndroidRuntime: Caused by: android.os.NetworkOnMainThreadException
04-06 16:07:49.962 20599 20599 E AndroidRuntime: at android.os.Parcel.createExceptionOrNull(Parcel.java:3271)
04-06 16:07:49.962 20599 20599 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:3245)
04-06 16:07:49.962 20599 20599 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:3228)
04-06 16:07:49.962 20599 20599 E AndroidRuntime: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:201)
04-06 16:07:49.962 20599 20599 E AndroidRuntime: at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:164)
04-06 16:07:49.962 20599 20599 E AndroidRuntime: at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:814)
04-06 16:07:49.962 20599 20599 E AndroidRuntime: at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:2043)
04-06 16:07:49.962 20599 20599 E AndroidRuntime: at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1858)
04-06 16:07:49.962 20599 20599 E AndroidRuntime: at android.content.ContentResolver.openInputStream(ContentResolver.java:1528)
04-06 16:07:49.962 20599 20599 E AndroidRuntime: at org.openziti.mobile.ZitiEnrollmentActivity.enroll(ZitiEnrollmentActivity.kt:123)
04-06 16:07:49.962 20599 20599 E AndroidRuntime: at org.openziti.mobile.ZitiEnrollmentActivity.onCreate$lambda$6(ZitiEnrollmentActivity.kt:67)
It'll be tough to reproduce just because we don't have a NextCloud install laying around to try with
Sometimes looking at the stack is all it takes to be able to figure out what happened. Thanks for the post!
Yes that was me, I figured I'd be best to give context here . For the nextcloud install, it can be a fairly simple installation in a VM or docker (their All In One install), and it looks like they also offer free small accounts via providers: Sign up for a free Nextcloud account. I also don't mind testing or providing more details/logs if it can help!