You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2022/02/12 10:48:27 UTC

[ofbiz-framework] branch release18.12 updated: Fixed: CLONE - [SECURITY] Upgrade Tika to 1.28.1 (OFBIZ-12573)

This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch release18.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release18.12 by this push:
     new d4834a0  Fixed: CLONE - [SECURITY] Upgrade Tika to 1.28.1 (OFBIZ-12573)
d4834a0 is described below

commit d4834a0e3a6c2d8f04f1c68e8bafca49b385e6b9
Author: Jacques Le Roux <ja...@les7arts.com>
AuthorDate: Sat Feb 12 11:45:06 2022 +0100

    Fixed: CLONE - [SECURITY] Upgrade Tika to 1.28.1 (OFBIZ-12573)
    
    Simpler for now, later OFBIZ 12573 needs to be done
    Also formatting improvement in DataResourceWorker.java: removes a blank lines
    
    Thanks: Tim Allison <ta...@apache.org> for the nice exchanges :)
---
 .../main/java/org/apache/ofbiz/content/data/DataResourceWorker.java   | 1 -
 build.gradle                                                          | 4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/applications/content/src/main/java/org/apache/ofbiz/content/data/DataResourceWorker.java b/applications/content/src/main/java/org/apache/ofbiz/content/data/DataResourceWorker.java
index 65fc3f7..3a10f60 100644
--- a/applications/content/src/main/java/org/apache/ofbiz/content/data/DataResourceWorker.java
+++ b/applications/content/src/main/java/org/apache/ofbiz/content/data/DataResourceWorker.java
@@ -408,7 +408,6 @@ public class DataResourceWorker  implements org.apache.ofbiz.widget.content.Data
 
     public static String getMimeTypeWithByteBuffer(java.nio.ByteBuffer buffer) throws IOException {
         byte[] b = buffer.array();
-
         Tika tika = new Tika();
         return tika.detect(b);
     }
diff --git a/build.gradle b/build.gradle
index ec24ad2..cd7c525 100644
--- a/build.gradle
+++ b/build.gradle
@@ -196,8 +196,8 @@ dependencies {
     compile 'org.apache.pdfbox:pdfbox:2.0.24'
     compile 'org.apache.shiro:shiro-core:1.4.0'
     compile 'org.apache.sshd:sshd-core:1.7.0'
-    compile 'org.apache.tika:tika-core:1.28'
-    compile 'org.apache.tika:tika-parsers:1.28'
+    compile 'org.apache.tika:tika-core:1.28.1'
+    compile 'org.apache.tika:tika-parsers:1.28.1'
     compile 'org.apache.tomcat:tomcat-catalina-ha:9.0.58'
     compile 'org.apache.tomcat:tomcat-catalina:9.0.58'
     compile 'org.apache.tomcat:tomcat-jasper:9.0.58'

Re: [ofbiz-framework] branch release18.12 updated: Fixed: CLONE - [SECURITY] Upgrade Tika to 1.28.1 (OFBIZ-12573)

Posted by Jacques Le Roux <jl...@apache.org>.
Le 12/02/2022 à 11:48, jleroux@apache.org a écrit :
> Fixed: CLONE - [SECURITY] Upgrade Tika to 1.28.1 (OFBIZ-12573)
>      
>      Simpler for now, later OFBIZ 12573 needs to be done

Here I meant OFBIZ 12572 (ie upgrade Tika to 2.3.0

Jacques