-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use downcased app_keystore dir to avoid OS bugs #24
Comments
I can not confirm this behavior. E.g. the MTM instances I use in my app only create But let's wait what @ge0rg thinks |
this bug report is based on a fresh install of fdroid, so there is no upgrade logic that could have left an old dir in place. It is likely a bug in the ROM, but I see no good reason to use caps in those dir names, so this is a defensive fix to make things more resilient in the face of stupid ROM bugs. |
Hmm a quick recursive grep in fdroidclient's code shows:
It appears that fdroid is creating this directory (LocalRepoKeyStore.java:67) |
oops, my mistake, sorry for the noise. For the record, it would still be nice to use all lower case for such names. It seems neater to me. |
No problem, I think we learned something from it. I've created: #26 |
@eighthave You are right, it was not very forward-looking of me to use the capitalized directory name. However, changing the default now will "break" existing deployments, which I am not very fond of. "Break" here means that all existing user choices will be lost, and the user will be re-prompted, which might be misunderstood as a sign of MitM. |
@ge0rg : I have some experience with that. The best way to handle it at this point is most likely to check what version is being used (either via API call or file check) when opening the default key store. If you're dealing with a version you have to break (e.g. you're higher than one before a breaking change) then you do the "most right" thing (whatever that may be). This future proofs the thing by a tiny bit. It also means that applications can query if they need to go and un-break themselves. |
Running fdroidclient on my Motorola Xoom running CM 10.1-2014-02-16-NIGHTLY, MTM triggers the creation of two dirs based on the "KeyStore" name
app_keystore
andapp_KeyStore
. MTM ultimately ends up storing the file inapp_keystore
, even though that is not the name specified.app_KeyStore
remains empty.MTM should set the same to all lowercase to avoid issues related to bugs like this.
The text was updated successfully, but these errors were encountered: