[SOLVED] Problem with package installation

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
Joshua
Messages: 10
Registration: May 27, 2026 - 09:26

June 19, 2026 - 10:25

Good morning,

I'm trying to port a package to version 2.6
An error occurs and I'm a bit stuck; the source code is fine, regardless of the method used (Python script, PowerShell)

Security problem due to a particular file?

If you have any ideas, I'm all ears, thank you!

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 4364, in install_wapt
    packagetempdir = entry.unzip_package(cabundle=self.cabundle, target_dir = tempfile.mkdtemp(prefix='wapt',dir=self.wapt_temp_dir))
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 2652, in unzip_package
    raise EWaptCorruptedFiles('Unzip: Unsafe filename %s in zip package file %s' % (fn,self.localpath))
waptpackage.EWaptCorruptedFiles: Unzip: Unsafe filename ActivInspire/Program Files 64/Activ Software/Inspire/apps/ActivityBuilder/static/media/javascript,__webpack_public_path__ = __webpack_base_uri__ = htmlWebpackPluginPublicPath;.bin in zip package file C:\Program Files (x86)\wapt\private\cache\xyz-activinspiresuite-3.5_3.5.18-3_x64_windows_10.0_PROD.wapt
 
EWaptCorruptedFiles: Unzip: Unsafe filename ActivInspire/Program Files 64/Activ Software/Inspire/apps/ActivityBuilder/static/media/javascript,__webpack_public_path__ = __webpack_base_uri__ = htmlWebpackPluginPublicPath;.bin in zip package file C:\Program Files (x86)\wapt\private\cache\xyz-activinspiresuite-3.5_3.5.18-3_x64_windows_10.0_PROD.wapt
User avatar
sfonteneau
WAPT Expert
Messages: 2342
Registered: July 10, 2014 - 11:52 PM
Contact :

June 22, 2026 - 10:37

Good morning

That's very strange

One of the files contained in the zip archive has the following format:

Code: Select all

ActivInspire/Program Files 64/Activ Software/Inspire/apps/ActivityBuilder/static/media/javascript,__webpack_public_path__ = __webpack_base_uri__ = htmlWebpackPluginPublicPath;.bin
Literally... and that's clearly not a valid filename.

How was the package built?
Joshua
Messages: 10
Registration: May 27, 2026 - 09:26

June 22, 2026 - 11:18

Hello,

the package was created manually, without using the WAPT console, and by following the editor's process:

https://support.prometheanworld.com/s/a ... anguage=fr


Best regards,
Joshua
User avatar
sfonteneau
WAPT Expert
Messages: 2342
Registered: July 10, 2014 - 11:52 PM
Contact :

June 22, 2026 - 12:14

I just checked:

Code: Select all

ActivInspire/Program Files 64/Activ Software/Inspire/apps/ActivityBuilder/static/media/javascript,__webpack_public_path__ = __webpack_base_uri__ = htmlWebpackPluginPublicPath;.bin
It does exist, but it looks more like a mistake by the editor than a real filename

Try deleting it (I don't think the app uses it)
Joshua
Messages: 10
Registration: May 27, 2026 - 09:26

June 22, 2026 - 3:33 PM

I had already tried renaming the file,
but the MSI returns error code 1603
: Product: ActivInspire v3.5.18 -- Installation operation failed.

Therefore, the installation cannot proceed.
If the file is present, the installation proceeds correctly; I use PowerShell to perform the installation.
User avatar
sfonteneau
WAPT Expert
Messages: 2342
Registered: July 10, 2014 - 11:52 PM
Contact :

June 22, 2026 - 4:27 PM

A temporary workaround would be to rename the file before building and then rename it back to its original name just before installation (in setup.py).

You're falling into Wapt's security trap; basically, we mainly want to avoid / .. \ ~ etc. which cause "Path Traversal" type attacks

Here you will encounter this piece of code:

Code: Select all

        if c in '|:<>*?;`\n':
            return True
Here it's the semicolon that's blocked

Normally, if I look at it correctly, it's not dangerous here.

We need to see how we can be more permissive in Wapt without adding a security problem.
Joshua
Messages: 10
Registration: May 27, 2026 - 09:26

June 23, 2026 - 11:43

Hi,

great, thanks for the tip, it worked!

Joshua
Locked