Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] Upgrade Tika to 1.27 for ingest (#75191) #75904

Merged
merged 3 commits into from
Aug 2, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions plugins/ingest-attachment/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ esplugin {
}

versions << [
'tika' : '1.24',
'pdfbox': '2.0.19',
'tika' : '1.27',
'pdfbox': '2.0.24',
'poi' : '4.1.2',
'mime4j': '0.8.3'
'mime4j': '0.8.5'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be version 0.8.4?

This version triggers:

java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;	
		at __randomizedtesting.SeedInfo.seed([92EBE05E8999BE7A:FBF685D8DB444DF8]:0)	
		at org.apache.james.mime4j.io.TextInputStream.<init>(TextInputStream.java:49)	
		at org.apache.james.mime4j.io.InputStreams.createAscii(InputStreams.java:70)	
		at org.apache.james.mime4j.codec.DecoderUtil.decodeQuotedPrintable(DecoderUtil.java:51)	
		at org.apache.james.mime4j.codec.DecoderUtil.decodeQ(DecoderUtil.java:126)	
		at org.apache.james.mime4j.codec.DecoderUtil.tryDecodeEncodedWord(DecoderUtil.java:258)	
		at org.apache.james.mime4j.codec.DecoderUtil.decodeEncodedWords(DecoderUtil.java:212)	
		at org.apache.james.mime4j.codec.DecoderUtil.decodeEncodedWords(DecoderUtil.java:145)	
		at org.apache.tika.parser.microsoft.OutlookExtractor.decodeHeader(OutlookExtractor.java:563)	
		at org.apache.tika.parser.microsoft.OutlookExtractor.normalizeHeaders(OutlookExtractor.java:529)	
		at org.apache.tika.parser.microsoft.OutlookExtractor.parse(OutlookExtractor.java:161)	
		at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:199)	
		at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:131)	
		at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:281)	
		at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:143)	
		at org.apache.tika.Tika.parseToString(Tika.java:568)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @martijnvg, that fixed it.

]

dependencies {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0fc7258f948358c8caace27b9b191437a50a7ecc

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6808f50c447fb033b334ca5ca25830647d85abe1
1 change: 0 additions & 1 deletion plugins/ingest-attachment/licenses/fontbox-2.0.19.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions plugins/ingest-attachment/licenses/fontbox-2.0.24.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
df8ecb3006dfcd52355a5902096e5ec34f06112e
1 change: 0 additions & 1 deletion plugins/ingest-attachment/licenses/pdfbox-2.0.19.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions plugins/ingest-attachment/licenses/pdfbox-2.0.24.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cb562ee5f43e29415af4477e62fbe668ef88d18b
1 change: 0 additions & 1 deletion plugins/ingest-attachment/licenses/tika-core-1.24.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions plugins/ingest-attachment/licenses/tika-core-1.27.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
079ad0f72558b8fbce947147959e2faff8b7b70a

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
269e021ed326239fd8f62e3ff85f4b4e8dbd6ec9