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 <jacques.le.r...@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 <talli...@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'

Reply via email to