Skip to content

Parsing INSERT/DELETE queries with too much whitespace cause "too much recursion" #169

@selevt

Description

@selevt

Hello,

Parsing the following query causes a too much recursion error:

INSERT
                                                   {<urn:a> <urn:b> <urn:c> } WHERE {}

Repro: https://stackblitz.com/edit/js-uncrfh?file=index.js

In Firefox this shows a too much recursion, in Chrome the page becomes unresponsive.

Same for DELETE queries, but CONSTRUCT is fine. Also when moving the opening brace, the parsing is fine:

INSERT {
                                                   <urn:a> <urn:b> <urn:c> } WHERE {}

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