[ http://jira.magnolia.info/browse/MAGNOLIA-1140?page=comments#action_13582
]
Fabrizio Giustina commented on MAGNOLIA-1140:
---------------------------------------------
I just found a different behavior in jackrabbit > 1.0.x that impact magnolia
activation:
in jackrabbit 1.0 node.getProperty(ItemType.JCR_PRIMARY_TYPE) returns the
original node type for frozen nodes
in jackrabbit 1.2.2 node.getProperty(ItemType.JCR_PRIMARY_TYPE) always returns
nt:frozenNode for frozen nodes and you have to call
node.getProperty(ItemType.JCR_FROZEN_PRIMARY_TYPE) to get the original node
type.
The new behavior looks correct (is this maybe a fix in jackrabbit?) but breaks
activation since child nodes are not activated because the frozen nodes are
filtered. In order to restore the old behavior I hat to modify
Content.getNodeTypeName() by doing:
public String getNodeTypeName() throws RepositoryException {
if (this.node.hasProperty(ItemType.JCR_FROZEN_PRIMARY_TYPE)) {
return
this.node.getProperty(ItemType.JCR_FROZEN_PRIMARY_TYPE).getString();
}
return this.node.getProperty(ItemType.JCR_PRIMARY_TYPE).getString();
}
so far, this seems to perfectly reproduce the old behavior and activation works
correctly again.
If you are aware of any potential impact of this change in jackrabbit please
advice.
> move to jackrabbit 1.2.x
> ------------------------
>
> Key: MAGNOLIA-1140
> URL: http://jira.magnolia.info/browse/MAGNOLIA-1140
> Project: Magnolia
> Issue Type: Improvement
> Reporter: Philipp Bracher
> Assigned To: Fabrizio Giustina
> Priority: Critical
> Fix For: 3.1
>
> Attachments: POM & PDM Issue Analysis Workbook.xls
>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------