Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-704

Attempting to Check Out a Newly Versionable Node Fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.2.0.Final
    • 1.1.0.Final
    • JCR
    • None

    Description

      If one adds mix:versionable as a mixin type to a node and then attempts to checkout before saving the node, a NullPointerException is thrown. This exception is thrown because the checkout operation attempts to access the base version for the node, but the base version (as well as the rest of the version graph for the node) does not get created until the node is saved.

      According to section 8.2.6 of the JCR 1.0.1 spec, this should return silently. JR implements this correctly, causing a compatibility problem for us.

      Attachments

        Activity

          People

            bcarothers_jira Brian Carothers (Inactive)
            bcarothers_jira Brian Carothers (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: