You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2009/03/24 15:51:51 UTC

[jira] Updated: (JCR-2039) Add log information when node/property type determination fails

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

Michael Dürig updated JCR-2039:
-------------------------------

    Attachment: JCR-2039.patch

Proposed patch.
The patch logs the exception which causes the RepositoryService methods to be called at debug level. Any exception from the RepositoryService methods is logged at error level and re-thrown. 

> Add log information when node/property type determination fails
> ---------------------------------------------------------------
>
>                 Key: JCR-2039
>                 URL: https://issues.apache.org/jira/browse/JCR-2039
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-jcr2spi
>            Reporter: Michael Dürig
>         Attachments: JCR-2039.patch
>
>
> getQNodeDefinition() and getQPropertyDefinition() of o.a.j.jcr2spi.nodetype.ItemDefinitionProviderImpl silently ignore errors which might occur on determination of node and property types. Instead these methods use RepositoryService.getNodeDefinition() and RepositoryService.getPropertyDefinition(), respectively to determine the types. This might lead to difficult to track down problems when the RepositoryService call occurs because of an error in the node type definition. I suggest to add logging statements to these methods. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.