You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2022/03/18 20:46:59 UTC

[tika] branch main updated: Change metadata write limit to "warn" instead of "exception"

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

tallison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/main by this push:
     new 0ceabfa  Change metadata write limit to "warn" instead of "exception"
0ceabfa is described below

commit 0ceabfa141b4f9b7c9559fdb61020758f749d353
Author: tallison <ta...@apache.org>
AuthorDate: Fri Mar 18 16:46:48 2022 -0400

    Change metadata write limit to "warn" instead of "exception"
---
 .../src/main/java/org/apache/tika/metadata/TikaCoreProperties.java | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tika-core/src/main/java/org/apache/tika/metadata/TikaCoreProperties.java b/tika-core/src/main/java/org/apache/tika/metadata/TikaCoreProperties.java
index ea08f75..cd238ff 100644
--- a/tika-core/src/main/java/org/apache/tika/metadata/TikaCoreProperties.java
+++ b/tika-core/src/main/java/org/apache/tika/metadata/TikaCoreProperties.java
@@ -63,6 +63,11 @@ public interface TikaCoreProperties {
      */
     String TIKA_META_EXCEPTION_PREFIX = TIKA_META_PREFIX + "EXCEPTION" + NAMESPACE_PREFIX_DELIMITER;
 
+    /**
+     * Use this to store warnings that happened during the parse.
+     */
+    String TIKA_META_WARN_PREFIX = TIKA_META_PREFIX + "WARN" + NAMESPACE_PREFIX_DELIMITER;
+
     //exception in main file
     Property CONTAINER_EXCEPTION =
             Property.internalText(TIKA_META_EXCEPTION_PREFIX + "container_exception");
@@ -83,7 +88,7 @@ public interface TikaCoreProperties {
             Property.internalTextBag(TIKA_META_EXCEPTION_PREFIX + "warn");
 
     Property METADATA_LIMIT_REACHED =
-            Property.internalBoolean(TIKA_META_EXCEPTION_PREFIX + "metadata_limit_reached");
+            Property.internalBoolean(TIKA_META_WARN_PREFIX + "metadata_limit_reached");
 
     /**
      * Use this to store exceptions caught while trying to read the