Skip to content

File connector fails to handle precomposed characters in file names #4319

@veneerac

Description

@veneerac

Description

If the filenames inside the ZIP archives contain precomposed characters (e.g., á, é, í, ó, ú, ñ, ü), the file connector’s unzip operation fails to recognize them as valid entries.

Steps to Reproduce

When using the WSO2 File Connector 4.x.x, if you unzip a ZIP file that contains filenames with precomposed characters (e.g., á, é, í, ó, ú, ñ, ü), the unzip operation will fail to extract those files.

For example, if you add a file named errór.xml inside the ZIP archive, the connector will not be able to unzip it.

For example:

<file.unzip>
    <sourceFilePath>/Users/home/test/test.zip</sourceFilePath>
    <targetDirectory>/Users/home/test/unzip.zip</targetDirectory>
    <responseVariable>file_unzip_1</responseVariable>
    <overwriteBody>true</overwriteBody>
</file.unzip>

If you add a file named errór.xml inside the ZIP archive, the unzip operation will fail to extract it.

Version

File connector version 4.x.x and 5.x.x

Environment Details (with versions)

MI 4.2.0 , 4.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions