You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tika.apache.org by Steven White <sw...@gmail.com> on 2016/02/19 18:05:47 UTC

Removing cryptographic JARs from Tika

Hi,

Is there a wiki or instructions on how to remove cryptographic software
from Tika?  Is it enough to simply remove the bouncy castle libraries from
Tika's JAR and yet be able to use Tika to its full capacity less encrypted
files?

I have no need to extract text off encrypted files, but due to Tika
including cryptographic JARs, I won't be able to use.

Thank you!!

Steve

RE: Removing cryptographic JARs from Tika

Posted by Ken Krugler <kk...@transpac.com>.
Hi Steve,

I don't know of any specific instructions for how to do this.

Seems like a good candidate for the https://wiki.apache.org/tika/TikaParserNotes page on the wiki.

If you're talking about using Tika as a library, then you'd typically edit the pom.xml (or equivalent) to exclude the bouncy castle dependencies.

Though I'm not sure what happens when parsing an encrypted file - ideally we'd have some well defined behavior, versus throwing a class not found exception :)

-- Ken

> From: Steven White
> Sent: February 19, 2016 9:05:47am PST
> To: user@tika.apache.org
> Subject: Removing cryptographic JARs from Tika
> 
> Hi,
> 
> Is there a wiki or instructions on how to remove cryptographic software from Tika?  Is it enough to simply remove the bouncy castle libraries from Tika's JAR and yet be able to use Tika to its full capacity less encrypted files?
> 
> I have no need to extract text off encrypted files, but due to Tika including cryptographic JARs, I won't be able to use.
> 
> Thank you!!
> 
> Steve



--------------------------
Ken Krugler
+1 530-210-6378
http://www.scaleunlimited.com
custom big data solutions & training
Hadoop, Cascading, Cassandra & Solr






Re: Removing cryptographic JARs from Tika

Posted by Steven White <sw...@gmail.com>.
I striped off "bouncycastle" from tika-app-1.11.jar and everything is
working.  I can extract text just like before, but when I pass it an
encrypted PDF file, I get the expected error: "Exception in thread "main"
java.lang.NoClassDefFoundError:
org.bouncycastle.jce.provider.BouncyCastleProvider".

For my use, I can live with this.

Steve


On Fri, Feb 19, 2016 at 12:23 PM, Ken Krugler <kk...@transpac.com>
wrote:

> Hmm, I think in that case you'd need to manually strip those libs from the
> jar.
>
> Or do your own special build, with a modified pom.xml
>
> Or you could contribute a pull request to update the build, such that it
> also creates a version of the app jar that doesn't have crypto support.
>
> -- Ken
>
> ------------------------------
>
> *From:* Steven White
>
> *Sent:* February 19, 2016 9:15:21am PST
>
> *To:* user@tika.apache.org
>
> *Subject:* Re: Removing cryptographic JARs from Tika
>
> To be specific about my question.
>
> I want to remove all cryptographic JARs, such as Bouncy Castle, from
> tika-app-1.11.jar and yet be able to use tika-app-1.11.jar from the command
> line as I have always been.  No, I have no need to process encrypted files.
>
> Steve
>
>
> On Fri, Feb 19, 2016 at 12:05 PM, Steven White <sw...@gmail.com>
> wrote:
>
>> Hi,
>>
>> Is there a wiki or instructions on how to remove cryptographic software
>> from Tika?  Is it enough to simply remove the bouncy castle libraries from
>> Tika's JAR and yet be able to use Tika to its full capacity less encrypted
>> files?
>>
>> I have no need to extract text off encrypted files, but due to Tika
>> including cryptographic JARs, I won't be able to use.
>>
>> Thank you!!
>>
>> Steve
>>
>
>
> --------------------------
> Ken Krugler
> +1 530-210-6378
> http://www.scaleunlimited.com
> custom big data solutions & training
> Hadoop, Cascading, Cassandra & Solr
>
>

RE: Removing cryptographic JARs from Tika

Posted by Ken Krugler <kk...@transpac.com>.
Hmm, I think in that case you'd need to manually strip those libs from the jar.

Or do your own special build, with a modified pom.xml

Or you could contribute a pull request to update the build, such that it also creates a version of the app jar that doesn't have crypto support.

-- Ken

> From: Steven White
> Sent: February 19, 2016 9:15:21am PST
> To: user@tika.apache.org
> Subject: Re: Removing cryptographic JARs from Tika
> 
> To be specific about my question.
> 
> I want to remove all cryptographic JARs, such as Bouncy Castle, from tika-app-1.11.jar and yet be able to use tika-app-1.11.jar from the command line as I have always been.  No, I have no need to process encrypted files.
> 
> Steve
> 
> 
> On Fri, Feb 19, 2016 at 12:05 PM, Steven White <sw...@gmail.com> wrote:
> Hi,
> 
> Is there a wiki or instructions on how to remove cryptographic software from Tika?  Is it enough to simply remove the bouncy castle libraries from Tika's JAR and yet be able to use Tika to its full capacity less encrypted files?
> 
> I have no need to extract text off encrypted files, but due to Tika including cryptographic JARs, I won't be able to use.
> 
> Thank you!!
> 
> Steve
> 

--------------------------
Ken Krugler
+1 530-210-6378
http://www.scaleunlimited.com
custom big data solutions & training
Hadoop, Cascading, Cassandra & Solr


Re: Removing cryptographic JARs from Tika

Posted by Steven White <sw...@gmail.com>.
To be specific about my question.

I want to remove all cryptographic JARs, such as Bouncy Castle, from
tika-app-1.11.jar and yet be able to use tika-app-1.11.jar from the command
line as I have always been.  No, I have no need to process encrypted files.

Steve


On Fri, Feb 19, 2016 at 12:05 PM, Steven White <sw...@gmail.com> wrote:

> Hi,
>
> Is there a wiki or instructions on how to remove cryptographic software
> from Tika?  Is it enough to simply remove the bouncy castle libraries from
> Tika's JAR and yet be able to use Tika to its full capacity less encrypted
> files?
>
> I have no need to extract text off encrypted files, but due to Tika
> including cryptographic JARs, I won't be able to use.
>
> Thank you!!
>
> Steve
>