Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7
    • Component/s: core, jcr
    • Labels:
      None

      Description

      As seen on the tck test org.apache.jackrabbit.test.api.query.qom.SelectorTest#testUnknownNodeType

      Currently querying on an unknown node type doesn't fail, I'm not really sure what should be the outcome.

      1. OAK-476.patch
        3 kB
        Alex Parvulescu

        Activity

        Hide
        Alex Parvulescu added a comment -

        attaching proposed patch.

        I'm not really sure this is the best way to solve this problem, as it would always expect some node type definitions to exist, whereas before it would still use the traversing index and return some results.

        As an example of what I'm saying there is one test (failing after applying the patch): org.apache.jackrabbit.oak.api.QueryTest which uses a barebone oak repo with no notyes defined to run a simple query.

        Show
        Alex Parvulescu added a comment - attaching proposed patch. I'm not really sure this is the best way to solve this problem, as it would always expect some node type definitions to exist, whereas before it would still use the traversing index and return some results. As an example of what I'm saying there is one test (failing after applying the patch): org.apache.jackrabbit.oak.api.QueryTest which uses a barebone oak repo with no notyes defined to run a simple query.
        Hide
        Alex Parvulescu added a comment -

        rev 1441474.

        Show
        Alex Parvulescu added a comment - rev 1441474.

          People

          • Assignee:
            Alex Parvulescu
            Reporter:
            Alex Parvulescu
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development