Missing password prompt.
After the recent update, it seems like the password prompt is missing - opening the protected files no longer prompts for password.
Hi YS, thanks for the report. The update only added a few new Actions, but in the code for the existing Actions nothing was changed. Can you confirm whether this happens when you use the new Actions, or whether this happens when running old, unmodified code?
Background:
I have an implementation that is working perfectly.
What happened today:
My implementation is simple:
My other implementation is okay now. Perhaps you fixed something? Haha
Nope, I didn't fix anything. Perhaps it was a publishing problem. Glad it wasn't a bug in the component :)
Sir,
Password prompt is missing again. Can you please take a look and test?
Thanks!
Ok, I'll take a look later today.
Hi YS,
I've detected a code change (the only one compared to the previous version) that could cause this. Please download the latest version (2.1.1) as it should be fixed there, and let me know. Thanks!
Greetings Kilian,
Thanks for the work! Here are my latest steps and observations:
Is this expected?
Lastly, am I right to put CfgEncryptionAlgorithmSet after FileAddMemory and before ZipSave?
Perhaps the wrong ordering is a culprit?
Yes, as you can read in the documentation, using any of the Cfg Actions affects all files that are added after that. So you first need to call the appropriate Cfg Action, then call any of the FileAdd Actions.
As for the protection, if you create a Zip archive and you specify a password, the Zip archive should stay protected, also with subsequent usages. Make sure you use the fixed version of the component I published yesterday, otherwise the password could be reset for files that are added.