From 7bc59dda19a0832834a9b144ba93948224175c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Batuhan=20Apayd=C4=B1n?= Date: Sun, 22 Dec 2024 20:32:47 +0300 Subject: [PATCH] apache-tika version stream and cve fix (#38207) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: Related: ### Pre-review Checklist #### For new package PRs only - [ ] This PR is marked as fixing a pre-existing package request bug - [ ] Alternatively, the PR is marked as related to a pre-existing package request bug, such as a dependency - [x] REQUIRED - The package is available under an OSI-approved or FSF-approved license - [x] REQUIRED - The version of the package is still receiving security updates - [ ] This PR links to the upstream project's support policy (e.g. `endoflife.date`) #### For new version streams - [x] The upstream project actually supports multiple concurrent versions. - [ ] Any subpackages include the version string in their package name (e.g. `name: ${{package.name}}-compat`) - [ ] The package (and subpackages) `provides:` logical unversioned forms of the package (e.g. `nodejs`, `nodejs-lts`) - [ ] If non-streamed package names no longer built, open PR to withdraw them (see [WITHDRAWING PACKAGES](https://github.com/wolfi-dev/os/blob/main/WITHDRAWING_PACKAGES.md)) Signed-off-by: Batuhan Apaydin --- apache-tika.yaml => apache-tika-3.0.yaml | 8 +++++++- apache-tika-3.0/patches.yaml | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) rename apache-tika.yaml => apache-tika-3.0.yaml (93%) create mode 100644 apache-tika-3.0/patches.yaml diff --git a/apache-tika.yaml b/apache-tika-3.0.yaml similarity index 93% rename from apache-tika.yaml rename to apache-tika-3.0.yaml index 67a6081f7c6..692a370b163 100644 --- a/apache-tika.yaml +++ b/apache-tika-3.0.yaml @@ -1,5 +1,5 @@ package: - name: apache-tika + name: apache-tika-3.0 version: 3.0.0 epoch: 0 description: The Apache Tika toolkit detects and extracts metadata and text from over a thousand different file types (such as PPT, XLS, and PDF). @@ -31,6 +31,11 @@ pipeline: tag: ${{package.version}} expected-commit: 9bcb38d6734ed9d5dcff617f316c535e844c68d1 + - uses: maven/pombump + with: + patch-file: patches.yaml + pom: tika-parent/pom.xml + - runs: | mvn clean install -am -DskipTests -Dossindex.skip mkdir -p "${{targets.contextdir}}"/usr/share/java/ @@ -49,6 +54,7 @@ update: github: identifier: apache/tika use-tag: true + tag-filter: v3.0. test: environment: diff --git a/apache-tika-3.0/patches.yaml b/apache-tika-3.0/patches.yaml new file mode 100644 index 00000000000..4391bd7fe09 --- /dev/null +++ b/apache-tika-3.0/patches.yaml @@ -0,0 +1,5 @@ +patches: +# CVE-2024-6763 +- groupId: org.eclipse.jetty + artifactId: jetty-http + version: 12.0.12