jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bruno coelho <bruno.coe...@gmail.com>
Subject import changes jcr:created
Date Thu, 24 Jun 2010 14:02:06 GMT
hi all,

When testing code to do backups of my repository I noticed that the
jcr:created property of a node is changed
when I do a backup and then import the same node.

in the first export is like this:
        <sv:property sv:name="*jcr:created*" sv:type="Date">
            <sv:value>*2010-06-24T14:20:51.881+01:00*</sv:value>
        </sv:property>
        <sv:property sv:name="jcr:createdBy" sv:type="String">
            <sv:value>admin</sv:value>
        </sv:property>
        <sv:property sv:name="jcr:lastModified" sv:type="Date">
            <sv:value>2010-06-24T14:20:51.881+01:00</sv:value>
        </sv:property>

in the export after the import is like this:
         <sv:property sv:name="*jcr:created*" sv:type="Date">
             <sv:value>*2010-06-24T14:22:25.797+01:00*</sv:value>
         </sv:property>
         <sv:property sv:name="jcr:createdBy" sv:type="String">
             <sv:value>admin</sv:value>
         </sv:property>
         <sv:property sv:name="*jcr:lastModified*" sv:type="Date">
             <sv:value>*2010-06-24T14:20:51.881+01:00*</sv:value>
         </sv:property>

is this supposed to happen?
I now have node that were last modified before they're created!


I'm doing an export of my repository using a exportSystemView:
session.exportSystemView("/", outputStream, skipBinary, noRecurse);

and then import like this:
session.importXML("/", inputStream,
ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING);

I use a custom node type:

<ctgt = 'http://www.yunit.pt/contingut/ctn/1.0'>
    [ctgt:nosamenamesiblings] > mix:referenceable, mix:lastModified,
mix:created, mix:language
      orderable
      - * (UNDEFINED) multiple
      - * (UNDEFINED)
      + * (nt:base) = ctgt:nosamenamesiblings VERSION



thanks in advance.



best regards,

bruno coelho

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message