You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (Jira)" <ji...@apache.org> on 2026/07/30 16:56:00 UTC
[jira] [Updated] (CAMEL-24293) Strip path segments from externally-derived filenames before setting CamelFileName (platform-http-vertx, zipfile, tarfile)
[ https://issues.apache.org/jira/browse/CAMEL-24293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrea Cosentino updated CAMEL-24293:
-------------------------------------
Fix Version/s: 4.22.0
> Strip path segments from externally-derived filenames before setting CamelFileName (platform-http-vertx, zipfile, tarfile)
> --------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-24293
> URL: https://issues.apache.org/jira/browse/CAMEL-24293
> Project: Camel
> Issue Type: Improvement
> Components: camel-platform-http-vertx, camel-tarfile, camel-zipfile
> Reporter: Andrea Cosentino
> Assignee: Andrea Cosentino
> Priority: Minor
> Fix For: 4.22.0
>
>
> CamelFileName (Exchange.FILE_NAME) is consumed by file/ftp producers to pick the output filename. A few paths set it from an externally-derived name that may contain path segments, where other file-producing paths already normalise to a leaf name:
> - camel-platform-http-vertx: VertxPlatformHttpConsumer sets it from the raw multipart Content-Disposition filename (upload.fileName()).
> - camel-zipfile: ZipFileDataFormat / ZipIterator set it from the raw archive entry name.
> - camel-tarfile: TarFileDataFormat / TarIterator - same for TAR entries.
> Suggested: FileUtil.stripPath(...) on each. Non-breaking (legitimate leaf filenames unaffected); aligns these paths with the normalisation other producers apply.
> _Filed by Claude Code on behalf of Andrea Cosentino._
--
This message was sent by Atlassian Jira
(v8.20.10#820010)