35
Views
10
Comments
[BigZip] Missing password prompt
bigzip
Web icon
Forge asset by Alfaro
Application Type
Traditional Web

Missing password prompt.


After the recent update, it seems like the password prompt is missing - opening the protected files no longer prompts for password.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

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?

2019-08-31 06-59-55
YS

Background:

I have an implementation that is working perfectly.

What happened today:

  1. I checked that the implementation still works perfectly.
  2. I simply refreshed dependencies for that implementation.
  3. I realized protected files no longer prompt for password.
  4. I updated BigZip.
  5. Protected files still do not prompt for password.
2019-08-31 06-59-55
YS

My implementation is simple:

2019-08-31 06-59-55
YS

My other implementation is okay now. Perhaps you fixed something? Haha

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Nope, I didn't fix anything. Perhaps it was a publishing problem. Glad it wasn't a bug in the component :)

2019-08-31 06-59-55
YS

Sir,

Password prompt is missing again. Can you please take a look and test?

Thanks!

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Ok, I'll take a look later today.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

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!

2019-08-31 06-59-55
YS

Greetings Kilian,

Thanks for the work! Here are my latest steps and observations:

  1. I generate the zipped file
  2. I download the zipped file
  3. I try to open protected file
  4. There is password prompt
  5. I close both protected file and zipped file
  6. I try to open protected file again
  7. There is NO password prompt
  8. I delete both protected file and zipped file
  9. I download the zipped file again
  10. I try to open protected file
  11. There is NO password prompt
  12. I close both protected file and zipped file
  13. I rename zipped file
  14. I try to open protected file
  15. There is password prompt

Is this expected?

Lastly, am I right to put CfgEncryptionAlgorithmSet after FileAddMemory and before ZipSave?

Perhaps the wrong ordering is a culprit?


Thanks!

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi YS,

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.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.