Extract zip actions truncating passwords

Hello,


We’ve been creating a small script to automate some actions to a zip -file. During this we discovered that apparently at least the Extract Zip file -action as well as 7-Zip Extract Archive -action in some cases truncate the password.


We tested this with password being passed to the actions as an action list parameter. Test password used was “12345abcde67890fghij12345klmno67890”.


If the password was set using the action dialog from the parameter, the result was invariably error concerning invalid password.


Same issue was observed when we tried to set the password via script. After the following BeforeAction -script the TEMP_STRING -variable was set to “12345abcde67890fghij12345klmno67”:


Action.EncryptedPassword = A_ARCHIVE_PASSWORD

TEMP_STRING = Action.EncryptedPassword

This leads us to believe that the action truncates the password somehow, which causes the inability to extract the archive.


We also noted that the 7-Zip action does not seem to expose the password -field for scripting.


We are using the most recent official version (6.2.0.1265).

Hi Olli

I wasn’t able to reproduce the problem with truncation here, however I did find that both actions were not expanding variables in passwords when executing. I have exposed the password field to scripting, I’ll post here when a build is available with the changes.

We have a simple test project, that we think demonstrates how the password gets truncated. Please see the attached project.


As far as I can see the passwords shown in the message box at the end should be the same.ZipPasswdTrunc.fbp6 (14.817 KB)

Hi Olli

What you are doing in you project is not correct, you should not be using the EncryptedPassword property. The fact that it is accessible from scripting is an oversight on our part. This build from yesterday has the Password property exposed and that is the property you should use from scripting :

https://www.finalbuilder.com/downloads/finalbuilder/620/FB620_1352.exe