jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] Updated: (JCR-2039) Add log information when node/property type determination fails
Date Tue, 24 Mar 2009 14:51:51 GMT

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


Mime
View raw message