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

Invalid path in SaveTest#testRepositoryException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.3
    • Fix Version/s: 2.6
    • Component/s: jackrabbit-jcr-tests
    • Labels:
      None

      Description

      org.apache.jackrabbit.test.api.query.SaveTest.testRepositoryException() passes a syntactically invalid path to Query.storeAsNode() and expects a RepositoryException.

      I think we should change this and pass a syntactically correct path that has an index on its last element. I believe this matches the initial intention of this test much better.

      The current test prevents other JCR implementations from throwing an IllegalArgumentException for syntactically invalid paths. See also https://issues.apache.org/jira/browse/OAK-563?focusedCommentId=13556369&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13556369.

        Attachments

        1. JCR-3497.patch
          0.9 kB
          Michael Dürig

          Activity

            People

            • Assignee:
              mduerig Michael Dürig
              Reporter:
              mduerig Michael Dürig
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: