[ 
https://issues.apache.org/jira/browse/SOLR-1929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402967#comment-13402967
 ] 

Jan Høydahl commented on SOLR-1929:
-----------------------------------

Committed to trunk in r1354887, please check it out on a few of your own files. 
How to invoke:

{noformat}
curl 
"http://localhost:8983/solr/collection1/update/extract?commit=true&literal.id=123&resource.password=mypassword";
 \
     -H "Content-Type: application/pdf" --data-binary @my-encrypted-file.pdf
{noformat}

or

{noformat}
curl 
"http://localhost:8983/solr/collection1/update/extract?commit=true&literal.id=123&passwordsFile=mypass.properties&resource.name=my-encrypted-file.pdf";
 \
     -H "Content-Type: application/pdf" --data-binary @my-encrypted-file.pdf

# contents of mypass.properties could be:
.*\.pdf = mySecretPassword
{noformat}

It could of course be nice to make the PasswordProvider class pluggable through 
class-name as well, as we do for the CurrencyFieldType. But this is a first 
step and probably goes a long way.

Will keep this open until it has baked for a while in trunk and been committed 
to 4.x
                
> Index encrypted files
> ---------------------
>
>                 Key: SOLR-1929
>                 URL: https://issues.apache.org/jira/browse/SOLR-1929
>             Project: Solr
>          Issue Type: Improvement
>          Components: contrib - Solr Cell (Tika extraction)
>            Reporter: Yiannis Pericleous
>            Assignee: Jan Høydahl
>            Priority: Minor
>             Fix For: 4.0, 5.0
>
>         Attachments: SOLR-1929-extra-docs.zip, SOLR-1929.patch, 
> SOLR-1929.patch
>
>
> SolrCell should be able to index encrypted files (pdfs, word docs).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to