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

Checks for optional features in test cases are wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • test
    • None

    Description

      Reported by David Sanders:

      The TCK for JSR-170 Final Release
      (http://jcp.org/aboutJava/communityprocess/final/jsr170/index.html)
      checks for level 2 and optional features by comparing
      Repository.getDescriptor to null. According to the
      spec and javadoc, getDescriptor must return either
      "true" or "false" for the "capability" keys.

      Example in AbsractJCRest.java:

      // setup custom namespaces
      if
      (helper.getRepository().getDescriptor(Repository.LEVEL_2_SUPPORTED)
      != null) {
      NamespaceRegistry nsReg =
      superuser.getWorkspace().getNamespaceRegistry();

      I think the above if statement should be:
      if
      (helper.getRepository().getDescriptor(Repository.LEVEL_2_SUPPORTED)
      .equals("true"))

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: