lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-3895) For several reasons, disabling the resolving of external entities within the Solr UpdateRequestHandler for XML would be good.
Date Wed, 26 Sep 2012 08:56:09 GMT

     [ https://issues.apache.org/jira/browse/SOLR-3895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Uwe Schindler updated SOLR-3895:
--------------------------------

    Attachment: SOLR-3895.patch

Patch. This approach adds a generic EntityResolver for SAX and StaX parsers that can be used
also outside XMLUpdateReqHandler, e.g. in DIH. It resolves all external entities to an empty
InputStream. By this XMLUpdater ignores external entities like DTDs or entity declarations
(&foobar;) and ignores them.

The downside by this is, that XML documents that actually make use of these features to include
some external stuff would silently ignore those &foobar; entities.
                
> For several reasons, disabling the resolving of external entities within the Solr UpdateRequestHandler
for XML would be good.
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-3895
>                 URL: https://issues.apache.org/jira/browse/SOLR-3895
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Martin Herfurt
>            Assignee: Uwe Schindler
>            Priority: Minor
>         Attachments: SOLR-3895.patch
>
>
> The Solr UpdateRequestHandler for XML currently resolves so-called XML External Entities.
Not resolving XML External Entities would - among other things - improve Solr's update performance.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message