Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-168 Basic JCR VersionManager support
  3. OAK-601

Node#getVersionHistory fails with UnsupportedRepositoryOperationException

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.8
    • jcr
    • None

    Description

      the following test fails with
      "UnsupportedRepositoryOperationException: Node does not have a version history: /testroot"
      although the version history exists and is accessible both by
      UUID and from the jcr VersionManager.

      @Test
          public void testGetVersionHistoryFromNode() throws Exception {
              testRootNode.addMixin(JcrConstants.MIX_VERSIONABLE);
              superuser.save();
      
              VersionHistory vh = testRootNode.getVersionHistory();
          }
      

      Attachments

        Activity

          People

            mreutegg Marcel Reutegger
            angela Angela Schreiber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: