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

Christophe Lombart reassigned JCR-1752:
---------------------------------------

    Assignee: Christophe Lombart

> 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
>   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.

Reply via email to