I've downloaded Tika in the proper location and have tried setting the settings for Search API Attachments but I'm getting this error:
Tika jar file is not an executable jar. Please check if you have not downloaded a corrupted jar file.
What is going on?
Could this be the result of ModSecurity denying access to the jar file? If so, what would be proper settings for a rule? What would the proper argument(s) be ("argument_name_here" below)? Will this rule work as-is with the structure and options below with the proper argument(s) in place?
SecRule REQUEST_FILENAME "^/var/apache-tika/tika-app-1.8\.jar$" id:99995,log,phase:2,chain,allow
SecRule ARGS_NAMES "^argument_name_here$"Can this be abused? Is this a major security hole being opened by setting up a rule like this? I can't use this module nor will I add this rule if it's not secure since I really don't have to use Search API Attachments anyway.
Thanks for your time!
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Untitled.png | 94.49 KB | rosman21 |
Comments
Comment #1
deanflory commentedComment #2
izus commentedthis means that the .jar file seems to be corrupted.
actually can you test this on your server :
java -jar /var/apache-tika/tika-app-1.8.jar --help
if this throws some errors that means the .jar is really corrupted
no clue for ModSecurity, maybe someone else can answer this
Comment #3
izus commentedPlease feel free to reopen if the issue subsists
Thanks
Comment #4
jbfelix commentedResolved by changing directory permissions to 755 on /var/apache-tika
and file permissions to 755 on /var/apache-tika/tika-app-1.x.jar
Comment #5
rosman21 commentedSorry to open this issue back up but I am getting the same error as OP, I am on windows 7. I ran tika on the server and it is working perfectly, parsing all my documents with any issues but I am getting the:
There may be a problem with tika path.
Tika jar file is not an executable jar. Please check if you have not downloaded a corrupted jar file.
Comment #6
rosman21 commentedComment #7
izus commentedi tested and can't reproduce this.
please feel free to reopen if this stills occur.