Cannot evaluate null-returning expression in DoTag when failOnUnknownTokens is enabled
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start by reproducing the provided template with failOnUnknownTokens enabled and trace the do tag handling of an expression that evaluates to null. Inspect how unknown-token validation is applied during do tag evaluation; done means the null-returning update expression completes without an UnknownTokenException when no token is missing.
Written by the indexing model from the issue text.
Description
If failOnUnknownTokens option is enabled following code fails with UnknownTokenException:
{% set object = {} %}{% do object.update({}) %}
This always happens if an expression executed by do tag is evaluated to null and failOnUnknown is enabled. Method .update always returns null and there are no missing tokens involved so, logically, I'd expect that to work regardless of the setting
- Dominant language
- Java
- Stars
- 785
- Forks
- 184
- Avg merge
- 6d 22h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from HubSpot/jinjava
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Jinjava 3.0 Open
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Is java21 available? Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Similar issues
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
apache/flink-agents#1152 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
jenkinsci/blueocean-plugin#5417 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
objectionary/eo-graphs#75 ·