[
https://issues.apache.org/jira/browse/JCR-1752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christophe Lombart resolved JCR-1752.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.5
I just added your patch. I also create a new jira issue, see JCR-1754, for
creating for OCM 1.5 DTD.
> Allow users to disable validation
> ---------------------------------
>
> Key: JCR-1752
> URL: https://issues.apache.org/jira/browse/JCR-1752
> Project: Jackrabbit
> Issue Type: Improvement
> Components: jackrabbit-ocm
> Reporter: Stephane Landelle
> Assignee: Christophe Lombart
> Priority: Minor
> Fix For: 1.5
>
> Original Estimate: 0.08h
> Remaining Estimate: 0.08h
>
> DigesterMapperImpl leaves validating set to default true when creating a
> DigesterDescriptorReader.
> But as the dtd is not available anywhere (published or in the source), it is
> usually not declared in mapping files, and DigesterDescriptorReader complains
> about it.
> Could it be possible to leave the user a way to configure the validation? The
> simpliest way would be to add this constructor to DigesterMapperImpl :
> public DigesterMapperImpl(InputStream[] streams, boolean validate) {
> descriptorReader = new DigesterDescriptorReader(streams);
>
> DigesterDescriptorReader.class.cast(descriptorReader).setValidating(validate);
> this.buildMapper();
> }
> Best regard,
> Stephane Landelle
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.