Skip to content

Regression in JacksonJsonNodeJsonProvider #366

Closed
@trustin

Description

@trustin

Given the following document:

[
  {
    "name": "a",
    "groups": [{
      "type": "phase",
      "name": "alpha"
    }, {
      "type": "not_phase",
      "name": "beta"
    }]
  }, {
    "name": "b",
    "groups": [{
      "type": "phase",
      "name": "beta"
    }, {
      "type": "not_phase",
      "name": "alpha"
    }]
  }
]

and the following JSON path query:

$[?(@.groups[?(@.type == 'phase' && @.name == 'alpha')] empty false)]

2.2.0 and 2.3.0 yield different results:

// 2.2.0 (selects 'a'):
[
  {
    "name": "a",
    "groups": [{
      "type": "phase",
      "name": "alpha"
    }, {
      "type": "not_phase",
      "name": "beta"
    }]
  }
]
// 2.3.0 (selects none):
[]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions