[ https://issues.apache.org/jira/browse/JCR-1752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633494#action_12633494 ]
Stephane Landelle commented on JCR-1752: ---------------------------------------- Great, thanks! 2008/9/22 Christophe Lombart (JIRA) <[EMAIL PROTECTED]> > 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.