Skip to content
This repository was archived by the owner on Jun 5, 2023. It is now read-only.
This repository was archived by the owner on Jun 5, 2023. It is now read-only.

Stack overflow on JSON path modified #6

@vladoriginal

Description

@vladoriginal

Steps:

  1. load this json
    2019-11-21T052759.200.txt

  2. paste this search

$.hits.hits[*]._source.trays_cycle['fr']

  1. write some numbers and point inside square brackets

$.hits.hits[*]._source.trays_cycle['fr'.345]

  1. delete numbers and point one by one

Result:

Exception in plugin detected by IDEA

java.lang.StackOverflowError at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:145) at com.jayway.jsonpath.internal.path.PathCompiler.readDotToken(PathCompiler.java:165) at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:139) at com.jayway.jsonpath.internal.path.PathCompiler.readPropertyOrFunctionToken(PathCompiler.java:231) at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:145) at com.jayway.jsonpath.internal.path.PathCompiler.readDotToken(PathCompiler.java:165) at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:139) at com.jayway.jsonpath.internal.path.PathCompiler.readPropertyOrFunctionToken(PathCompiler.java:231) at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:145) at com.jayway.jsonpath.internal.path.PathCompiler.readBracketPropertyToken(PathCompiler.java:603) at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:132) at com.jayway.jsonpath.internal.path.PathCompiler.readPropertyOrFunctionToken(PathCompiler.java:231) at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:145) at com.jayway.jsonpath.internal.path.PathCompiler.readDotToken(PathCompiler.java:165)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions