This is an automated email from the ASF dual-hosted git repository.
ndipiazza pushed a commit to branch file-based-config-store
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/file-based-config-store by
this push:
new fe9284a6a Make ExtensionConfig Serializable for socket communication
fe9284a6a is described below
commit fe9284a6a3ed521c840d066458f1aa7e2df15afb
Author: Nicholas DiPiazza <[email protected]>
AuthorDate: Sun Dec 28 10:44:54 2025 -0600
Make ExtensionConfig Serializable for socket communication
ExtensionConfig is sent over sockets between PipesClient and PipesServer,
so it needs to implement Serializable. Records can implement Serializable
and all fields (String, String, String) are already serializable.
Fixes NotSerializableException when calling saveFetcher via gRPC.
---
.../src/main/java/org/apache/tika/plugins/ExtensionConfig.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/tika-plugins-core/src/main/java/org/apache/tika/plugins/ExtensionConfig.java
b/tika-plugins-core/src/main/java/org/apache/tika/plugins/ExtensionConfig.java
index c393ab0fc..52bc5d3c0 100644
---
a/tika-plugins-core/src/main/java/org/apache/tika/plugins/ExtensionConfig.java
+++
b/tika-plugins-core/src/main/java/org/apache/tika/plugins/ExtensionConfig.java
@@ -16,6 +16,8 @@
*/
package org.apache.tika.plugins;
+import java.io.Serializable;
+
import org.apache.tika.config.JsonConfig;
/**
@@ -25,6 +27,6 @@ import org.apache.tika.config.JsonConfig;
* @param name the plugin type name
* @param json the raw JSON configuration string for the plugin to parse
*/
-public record ExtensionConfig(String id, String name, String json) implements
JsonConfig {
+public record ExtensionConfig(String id, String name, String json) implements
JsonConfig, Serializable {
}