Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-1587

When trying to reuse version label in transaction, exception is thrown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • core 1.4.3, core 1.4.4
    • core 1.4.5
    • versioning
    • None
    • Jackrabbit Core 1.4.4, Jencks 2.0, Springmodules 0.8a, Jackrabbit JCA 1.4
      Java version: 1.6.0_06
      OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"

    Description

      Following sequence causes failure:
      1. first transaction:
      1.1 create versionable node
      1.2 create version 1 of this node
      2. second transaction:
      2.1 create version 2 of this node
      2.2 assign a label to version 2
      3. third transaction:
      3.1 restore a node to version 1
      3.2 remove version 2
      3.3 make version 3 of same node
      3.4 assign same label (which was assigned to version 2) to version 3 -> fails

      Same sequence which does not use transactions at all works fine.
      Going to attach a test case.

      Attachments

        1. JCR-1587.patch
          6 kB
          Marcel Reutegger
        2. test-reassign-version-label-in-tx.zip
          8 kB
          Roman Puchkovskiy

        Activity

          People

            Unassigned Unassigned
            rpuch Roman Puchkovskiy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: