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

Node#getVersionHistory fails with UnsupportedRepositoryOperationException

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment