Webdav config / encryption config randomly lost on Android

I installed version 1.2.3 now.

Same issue. After doing a couple of sharings to Joplin, 1-4 above happens again.

And after entering the Webdav credentials again, Joplin downloads all notes and attachements (!).

Strange thing is it used to work fine until recently, seems like this is a recently introduced regression around persisting settings in the database.

I tried looking into this but strangely once I've added logging around WelcomeUtils the issues seems to be gone. Haven't had time to look into this closely yet, maybe over the weekend.

Got the same issue two days ago, I shared text and links a couple of times without problems, then I opened the app normally and all settings were reset.

From what I understood by reading this topic, Joplin does not find the existing user profile and create a new one, overwriting the existing config. If this is indeed the case, could we have a user confirmation to avoid it? Something like a popup "No existing configuration found, do you want to create a new profile?". New users will see it on their first run, and will have to accept the prompt to create the database the first time, but this could prevent overwriting the configuration after everything is set up.

Does that sound possible?

The bug is due to multiple race conditions so a confirmation dialog wouldn't help.

So the profile directory isn't shared by those multiple instances? And getting overwritten by the second instance?

Seems like I misunderstood, then.

I think I've fixed it in this version 1.2.5: https://github.com/laurent22/joplin-android/releases/

If someone's experiencing this bug please give it a try and let me know if it works.

1 Like

Yes you do, but why would you expect to understand something since you know nothing about the codebase? There's plenty of open source projects I understand nothing about too, but I don't go on forums advising developers on how to fix their issues.

@laurent : Just installed 1.2.5 - I'll notify if the issue occurs again. Thanks for your efforts (this bug is driving me crazy!! :slight_smile: ). Cheers

@laurent So, I've installed both 1.1.4 and 1.2.4 in hopes that it would fix the sync problem. It says I have the wrong client when I try to sync, there is a mismatch. However I can't seem to launch the newer versions of the app. When I click on the AppImage for 1.1.4 it launches 1.0.216. How do I get the most current version to run? I can' find any desktop icon, even though the installer says it has been created. I'm running Ubuntu 18.04.

Thanks!

1.2.5 seems to work fine. Thank you.

1 Like

1.2.5 seems to solve the problem, thanks!
Now, do you recommend I continue using 1.2.5 or revert to the google play version and wait for it to catch up?

Great looks like we can finally release v1.2. Thanks guys for your patience and your feedback to help solve this issue. If you already have 1.2.5 installed, you can keep it installed and it will be updated automatically when the Google Play version is released.

@laurent, did you just revert the change or fixed the underlying issues? Is it worth looking into this further?

For now, I think it's fine. I've reverted to singleTop mode so normally sharing should like before. What I've removed is the splash screen that I had added in an earlier release, as it seems that's what was causing the issue.

Everything working fine after update to 1.2.5. Thank you.