Details

    • Type: Sub-task
    • Status: Closed
    • Priority: 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 Deparvu

        Activity

        Hide
        stillalex Alex Deparvu 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
        stillalex Alex Deparvu 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
        stillalex Alex Deparvu added a comment -

        rev 1441474.

        Show
        stillalex Alex Deparvu added a comment - rev 1441474.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development