cfzip, entry path ignored on windows, uses host OS delimiter on windows

Description

You can't create a valid lucee extension on windows using cfzip because entries get added using \ and not / regardless of the entry path

https://docs.lucee.org/reference/tags/zip.html#attribute-entrypath

uploading an extension built on windows throws the following error, because the MANIFEST entry
is added as `/META-INF\MANIFEST.MF` not `/META-INF/MANIFEST.MF`

https://github.com/zspitzer/lucee-scope-resource-provider

try running `bundleExtension.cfm` on windows from the above repo

Environment

None

Attachments

2

Activity

Show:

Zac Spitzer 22 February 2021 at 17:44

the confusion was due to the zip resource provider not specifying a separator

Lucee auto translates the paths, but it’s confusing

Zac Spitzer 17 February 2021 at 21:06

see

going to close this one off

Zac Spitzer 17 February 2021 at 17:52

ahh, that works! repo updated

I can see the extension is now installed, but it doesn’t show up as a resource provider?

Pothys - MitrahSoft 17 February 2021 at 13:39

I've checked this ticket with lucee latest version 5.3.8.145-SNAPSHOT. I think there is no issue with cfzip.
Deploy of lex file fails with java.io.IOException: invalid header field on https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/extension/RHExtension.java#L1098

The extension was successfully deployed for me after made some changes in MANIFEST.MF file.

deploy.log

I attached the MANIFEST.MF file too.


could you please check with that and reporter here back.

Closed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Created 16 February 2021 at 18:20
Updated 18 June 2023 at 16:57
Resolved 17 February 2021 at 21:09