Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2237

NodeStoreKernel.getNodes throws when passing filter=""

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.8, 1.1.2
    • mk
    • None

    Description

      calling NodeStoreKernel.getNodes with filter="" results in the following stacktrace:

      IllegalArgumentException: [*] expected: '{'
          at org.apache.jackrabbit.oak.commons.json.JsopTokenizer.getFormatException(JsopTokenizer.java:373)
          at org.apache.jackrabbit.oak.commons.json.JsopTokenizer.read(JsopTokenizer.java:107)
          at org.apache.jackrabbit.oak.kernel.JsonFilter.<init>(JsonFilter.java:43)
          at org.apache.jackrabbit.oak.kernel.JsonSerializer.<init>(JsonSerializer.java:69)
          at org.apache.jackrabbit.oak.kernel.NodeStoreKernel.getNodes(NodeStoreKernel.java:499)
          at ...
      

      according to MicroKernel.getNodes:

      @param filter optional filter on property and/or node names; if null or "" the default filter will be assumed

      Attachments

        Issue Links

          Activity

            People

              stefan@jira Stefan Guggisberg
              stefan@jira Stefan Guggisberg
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: