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

JCR test org.apache.jackrabbit.test.api.version.MergeActivityTest doesn't check whether the repository supports activities

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.1
    • Fix Version/s: 2.4.2, 2.5
    • Component/s: jackrabbit-jcr-tests
    • Labels:
      None

      Description

      The test: org.apache.jackrabbit.test.api.version.MergeActivityTest, during setup (the initNodes method call) does not handle the case when activities are not supported by the repository. Therefore, if the versionManager.createActivity("foobar") call fails with an UnsupportedRepositoryOperationException, the whole test fails.

      The setup of the test should do something similar to org.apache.jackrabbit.test.api.version.ActivitiesTest: checkSupportedOption(Repository.OPTION_ACTIVITIES_SUPPORTED);

        Attachments

          Activity

            People

            • Assignee:
              reschke Julian Reschke
              Reporter:
              hchiorean Horia Chiorean
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: