This is an automated email from the ASF dual-hosted git repository.
THausherr 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 7cb848a1ac Bump com.healthmarketscience.jackcess:jackcess from 5.0.2
to 5.0.3 (#3333)
7cb848a1ac is described below
commit 7cb848a1ac9c3374ebaa909225ba2185a54ae074
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Mon Oct 12 22:40:31 2026 +0200
Bump com.healthmarketscience.jackcess:jackcess from 5.0.2 to 5.0.3 (#3333)
* Bump com.healthmarketscience.jackcess:jackcess from 5.0.2 to 5.0.3
Bumps
[com.healthmarketscience.jackcess:jackcess](https://github.com/jahlborn/jackcess)
from 5.0.2 to 5.0.3.
- [Commits](https://github.com/jahlborn/jackcess/commits)
---
updated-dependencies:
- dependency-name: com.healthmarketscience.jackcess:jackcess
dependency-version: 5.0.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected]>
* Refactor error handling in JackcessParser
* Refactor exception handling for JackcessParser
Co-authored-by: Copilot Autofix powered by AI
<[email protected]>
---------
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot]
<49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tilman Hausherr <[email protected]>
Co-authored-by: Copilot Autofix powered by AI
<[email protected]>
---
tika-parent/pom.xml | 2 +-
.../org/apache/tika/parser/microsoft/JackcessParser.java | 13 ++++---------
2 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/tika-parent/pom.xml b/tika-parent/pom.xml
index 6e2a3b1679..0f058a48d2 100644
--- a/tika-parent/pom.xml
+++ b/tika-parent/pom.xml
@@ -385,7 +385,7 @@
<jackrabbit.version>2.22.5</jackrabbit.version>
<jackson.version>2.22.3</jackson.version>
<!-- TIKA-4880: 5.0.1 fails some catalogs 5.0.0 reads ("Did not find
required parent table id") -->
- <jackcess.version>5.0.2</jackcess.version>
+ <jackcess.version>5.0.3</jackcess.version>
<jackcess.encrypt.version>5.0.2</jackcess.encrypt.version>
<jai.imageio.core.version>1.4.0</jai.imageio.core.version>
<jakarta.activation.version>2.1.4</jakarta.activation.version>
diff --git
a/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/JackcessParser.java
b/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/JackcessParser.java
index 96b77d5b53..6818dd52e7 100644
---
a/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/JackcessParser.java
+++
b/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/JackcessParser.java
@@ -32,7 +32,6 @@ import org.xml.sax.SAXException;
import org.apache.tika.annotation.TikaComponent;
import org.apache.tika.exception.EncryptedDocumentException;
import org.apache.tika.exception.TikaException;
-import org.apache.tika.exception.UnsupportedFormatException;
import org.apache.tika.io.TikaInputStream;
import org.apache.tika.metadata.KeyPrefix;
import org.apache.tika.metadata.Metadata;
@@ -108,10 +107,10 @@ public class JackcessParser implements Parser {
JackcessExtractor ex = new JackcessExtractor(metadata, context,
locale);
ex.parse(db, xhtml);
} catch (IOException e) {
- //TIKA-3849
- if (e.getMessage() != null &&
e.getMessage().contains("Unrecognized map type: 75")) {
- throw new UnsupportedFormatException(
- "Jackcess doesn't process mdb versions before v97");
+ String message = e.getMessage();
+ if (message != null && (message.startsWith("invalid page number ")
||
+ message.startsWith("Invalid usage map row "))) {
+ throw new TikaException("Corrupt Access database: " + message,
e);
}
throw e;
} catch (IndexOutOfBoundsException e) {
@@ -123,10 +122,6 @@ public class JackcessParser implements Parser {
if (e.getMessage().contains("Incorrect password")) {
throw new EncryptedDocumentException(e);
}
- if (e.getMessage().startsWith("invalid page number ")) {
- // TIKA-4830, as above
- throw new TikaException("Corrupt Access database: " +
e.getMessage(), e);
- }
}
throw e;
} finally {