Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.

No errors on bad condition expression #1

Open
olexandrvynnychenko opened this issue Jan 27, 2016 · 0 comments
Open

No errors on bad condition expression #1

olexandrvynnychenko opened this issue Jan 27, 2016 · 0 comments

Comments

@olexandrvynnychenko
Copy link
Contributor

The following code doesn't throw an exception:

RelExParser.ParseCondition("entity_id = \"eventId\":var some dumb stuff omfg")

It acts like if it was:

RelExParser.ParseCondition("entity_id = \"eventId\":var")

That means only the first row of the following expression is actually evaluated while the whole condition is believed to be checked:

entity_id = "eventId":var
event_notes.id IN visibility.v(v.source_name = 'event_notes' and v.visible_to='currentUserEntranceRole':var)[v.id]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant