Jackrabbit Content Repository
  1. Jackrabbit Content Repository
  2. JCR-1972

Preserving UUID and document version history on repository migration

    Details

    • Type: Wish Wish
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: core 1.4.8
    • Fix Version/s: 1.6
    • Component/s: jackrabbit-core
    • Labels:
      None

      Description

      I have been working I an migration utility for OpenKM and I performed some changes in jackrabit-core to enable version import, preserving
      the modification date. Also modified org.apache.jackrabbit.core.NodeImpl to preserve UUID in the migration process.

      This migration process is needed because there are changes in repository node definition, and Jackrabbit can't deal with this actually.

      I've attache a PDF with the changes needed in Jackrabbit-core. It works and there was no problems with the migrated repository.

      1. JCR-1972.patch
        10 kB
        Paco Avila
      2. JCR-1972_1.x.patch
        17 kB
        Paco Avila
      3. JCR-1972_1.x.patch
        23 kB
        Paco Avila
      4. JCR-1972_1.x.patch
        28 kB
        Paco Avila
      5. JCR-1972_1.x.patch
        16 kB
        Jukka Zitting
      6. Jackrabbit_modifications.pdf
        29 kB
        Paco Avila
      7. CheckinCalendarTest.java
        2 kB
        Paco Avila

        Activity

        Paco Avila created issue -
        Paco Avila made changes -
        Field Original Value New Value
        Attachment Jackrabbit_modifications.pdf [ 12399801 ]
        Paco Avila made changes -
        Attachment JCR-1972.patch [ 12399817 ]
        Jukka Zitting made changes -
        Workflow jira [ 12452176 ] no-reopen-closed, patch-avail [ 12467786 ]
        Jukka Zitting made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Jukka Zitting made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Paco Avila made changes -
        Attachment JCR-1972_1.x.patch [ 12413303 ]
        Paco Avila made changes -
        Comment [ In 1.x branch, the class org.apache.jackrabbit.core.NodeImpl.java is this:

        public synchronized NodeImpl addNode(Name nodeName, Name nodeTypeName, UUID uuid)

        So, it already accept an UUID parameter for new node creation. ]
        Paco Avila made changes -
        Attachment JCR-1972_1.x.patch [ 12413663 ]
        Jukka Zitting made changes -
        Assignee Jukka Zitting [ jukkaz ]
        Paco Avila made changes -
        Attachment JCR-1972_1.x.patch [ 12413996 ]
        Jukka Zitting made changes -
        Attachment JCR-1972_1.x.patch [ 12415359 ]
        Jukka Zitting made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.6.0 [ 12313459 ]
        Resolution Fixed [ 1 ]
        Paco Avila made changes -
        Attachment CheckinCalendarTest.java [ 12415409 ]
        Jukka Zitting made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Jukka Zitting
            Reporter:
            Paco Avila
          • Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development