[
https://issues.apache.org/jira/browse/JCR-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nicholas DiPiazza closed JCR-1792.
----------------------------------
Resolution: Fixed
This was an issue of mixing in 1.4 with 1.4.5 jars
> jcr:frozenUuid does not contain jcr:content
> -------------------------------------------
>
> Key: JCR-1792
> URL: https://issues.apache.org/jira/browse/JCR-1792
> Project: Jackrabbit
> Issue Type: Bug
> Components: jackrabbit-core
> Affects Versions: core 1.4.5
> Environment: tomcat, jackrabbit deployed inside webapp, xml
> persistance, webdav enabled
> Reporter: Nicholas DiPiazza
>
> When I store versionable files, I get problems retrieving the jcr:data from a
> custom node type.
> I am storing a node type:
> xrc:learningContent
> pd: xrc:Keywords
> pd: xrc:MimeType
> pd: jcr:mixinTypes
> pd: xrc:Description
> pd: xrc:Language
> pd: xrc:Creator
> pd: jcr:created
> pd: xrc:Title
> pd: jcr:primaryType
> Extends: nt:resource
> pd: jcr:uuid
> pd: jcr:mixinTypes
> pd: jcr:data
> pd: jcr:encoding
> pd: jcr:mimeType
> pd: jcr:lastModified
> pd: jcr:primaryType
> So I commit the changes, then later pull up the version and get it's
> frozenNode.
> Node frozenNode = v.getNode(JcrConstants.JCR_FROZENNODE);
> And then I return all of the properties contained within:
> PropertyIterator pi = frozenNode.getProperties();
> while (pi.hasNext()) {
> System.out.println(pi.nextProperty().getName());
> }
> All that are returned are:
> jcr:frozenUuid
> jcr:uuid
> jcr:frozenPrimaryType
> jcr:frozenMixinTypes
> jcr:primaryType
> Here is the frozen node type:
> nt:frozenNode
> pd: *
> pd: *
> pd: jcr:frozenUuid
> pd: jcr:uuid
> pd: jcr:mixinTypes
> pd: jcr:frozenPrimaryType
> pd: jcr:frozenMixinTypes
> pd: jcr:primaryType
> So basically it would seem that the recursive copy inside the
> InternalFrozenNodeImpl is not working. But it seems that is not the case from
> the code trace I did. Add this to line 368 of InternalFrozenNodeImpl.java
> System.out.println("New node created. Props: ");
> try {
> PropertyState [] ps = node.getProperties();
> for (PropertyState p : ps) {
> System.out.println(p.getName());
> System.out.println(p.toString());
> }
> NodeStateEx [] ns = node.getChildNodes();
> for (NodeStateEx n : ns) {
> System.out.println(n.getName());
> System.out.println(n.toString());
> }
> } catch (ItemStateException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
> And you will get the result:
> New node created. Props:
> {http://www.jcp.org/jcr/1.0}uuid
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}frozenPrimaryType
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}frozenMixinTypes
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}baseVersion
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}primaryType
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}isCheckedOut
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}frozenUuid
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}predecessors
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}data
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}versionHistory
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}encoding
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}mimeType
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}lastModified
> [EMAIL PROTECTED]
> New node created. Props:
> {http://www.xerceo.com/learn/jcr-1.0}Keywords
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}uuid
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}frozenPrimaryType
> [EMAIL PROTECTED]
> {http://www.xerceo.com/learn/jcr-1.0}Creator
> [EMAIL PROTECTED]
> {http://www.xerceo.com/learn/jcr-1.0}Language
> [EMAIL PROTECTED]
> {http://www.xerceo.com/learn/jcr-1.0}Title
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}frozenMixinTypes
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}primaryType
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}frozenUuid
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}predecessors
> [EMAIL PROTECTED]
> {http://www.xerceo.com/learn/jcr-1.0}MimeType
> [EMAIL PROTECTED]
> {http://www.xerceo.com/learn/jcr-1.0}Description
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}versionHistory
> [EMAIL PROTECTED]
> {http://www.jcp.org/jcr/1.0}content
> [EMAIL PROTECTED]
> So the new Node definately has these new properties.
> Do I have to somehow extend my frozenNode to work with this? Can anyone help
> me?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.