You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/migration-to-4x/migrating-tika-server-4x.adoc
+43-1Lines changed: 43 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,6 +135,31 @@ for error text should check `tk:exception:container-exception` (full-object
135
135
endpoints) or the `422` body (`/meta/\{field}`, populated only when
136
136
`returnStackTrace=true`).
137
137
138
+
Two changes to the returned metadata come with this, neither of which produces an
139
+
error:
140
+
141
+
* **`/meta` no longer returns a `language` field.** Language detection previously ran
142
+
inline on this endpoint via a dedicated content handler that buffered text solely to
143
+
detect the language, which meant holding the document text twice to populate one
144
+
field. That handler was removed. `/meta` deliberately parses with the `ignore`
145
+
content handler, so there is no text for a language detector to work from.
146
+
+
147
+
**Migration:** configure a language-detection metadata filter
148
+
(`charsoup-metadata-filter`, `optimaize`, or `opennlp`) and use `/rmeta` or
149
+
`/tika/json`, which capture content. The detected value arrives as
150
+
`tk:detected-language`, with `tk:detected-language-confidence`. Note that these
151
+
filters read `tk:content`, so they are no-ops on `/meta` and on any endpoint
152
+
configured with the `ignore` handler.
153
+
154
+
* **`/meta` now sets `tk:exception:embedded-depth-limit-reached` on any document
155
+
with embedded content.** `/meta` suppresses embedded parsing by setting an embedded
156
+
depth limit of `0`, and reaching a limit is recorded. The previous implementation
157
+
suppressed embedded documents by a different mechanism that recorded nothing. The
158
+
flag is expected on this endpoint and does not indicate a truncated result.
159
+
+
160
+
**Migration:** clients that alert on the presence of any `tk:exception:*` key should
161
+
exclude this one for `/meta`.
162
+
138
163
=== Accept Header Routing Removed
139
164
140
165
The `/tika` endpoint no longer routes based on `Accept` headers. Use explicit paths instead:
@@ -157,7 +182,24 @@ The following `TikaServerConfig` options have been removed:
157
182
158
183
=== `/pipes` and `/async` Require `allowPipes`; Per-Request Config Requires `allowPerRequestConfig`
159
184
160
-
Previously these endpoints (and per-request parser configuration) were enabled simply by listing endpoints under `server.endpoints`. The capabilities are now split into two default-`false` flags in the `server` section:
185
+
This replaces the `enableUnsecureFeatures` flag that alpha-1 briefly used, and before
186
+
that, enabling these capabilities simply by listing endpoints under `server.endpoints`.
187
+
`enableUnsecureFeatures` no longer exists: a config that still carries it fails to start
188
+
with an "Unrecognized field" error naming the key, rather than silently ignoring it.
189
+
The single flag has been split into two, so that granting batch/fetcher access and
190
+
granting per-request parser configuration are separate decisions:
191
+
192
+
|===
193
+
|Was |Now
194
+
195
+
|`enableUnsecureFeatures: true` (to use `/pipes` or `/async`)
The capabilities are two default-`false` flags in the `server` section:
161
203
162
204
* `allowPipes` gates the `/pipes` and `/async` endpoints, which drive process-isolated batch parsing through your fetchers and emitters. Selecting either without `allowPipes` causes the server to refuse to start with a clear error.
163
205
* `allowPerRequestConfig` gates per-request parser configuration: the `/config` family of endpoints and the multipart `config` part. When off, such requests are rejected with 403.
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/security.adoc
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,8 +56,9 @@ and `allowComponentManagement` — the latter lets clients add, modify, and dele
56
56
and read back stored configs, which can contain secrets — are off by default. Run it only behind
57
57
network controls and, ideally, mutual TLS. See xref:using-tika/grpc/index.adoc[Tika gRPC].
58
58
59
-
For the upgrade from the former `enableUnsecureFeatures` flag, see
60
-
xref:migration-to-4x/migrating-tika-server-4x.adoc[Migrating tika-server to 4.x].
59
+
For the upgrade from the former `enableUnsecureFeatures` flag, which is now split into
60
+
`allowPipes` and `allowPerRequestConfig`, see
61
+
xref:migration-to-4x/migrating-tika-server-4x.adoc#_pipes_and_async_require_allowpipes_per_request_config_requires_allowperrequestconfig[Migrating tika-server to 4.x].
0 commit comments