Skip to content

fix: correct hasArgs bounds check in ExpressionParser - #2378

Merged
lbroudoux merged 1 commit into
microcks:masterfrom
prasu-baran:fix/expression-parser-has-args
Oct 20, 2026
Merged

lbroudoux merged 1 commit into
microcks:masterfrom
prasu-baran:fix/expression-parser-has-args

Conversation

@prasu-baran

Copy link
Copy Markdown
Contributor

Description

  • Fix a typo in ExpressionParser: argsStart != 1 is now argsStart != -1.
  • This fixes {{ f() }} being parsed as a variable, and a crash on {{ request.body/a) }}.
  • Add 2 tests for these cases. mvn -pl commons/util-el -am test passes.

Related issue(s)

Fixes #2350

@github-actions

Copy link
Copy Markdown

👋 @prasu-baran

Welcome to the Microcks community! 💖

Thanks and congrats 🎉 for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly.

Hope you have a great time there!

@lbroudoux lbroudoux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks great! Thank you!

@lbroudoux lbroudoux added this to the 1.16.0 milestone Oct 20, 2026
@lbroudoux
lbroudoux merged commit 2f112b5 into microcks:master Oct 20, 2026
6 of 7 checks passed
@github-actions

Copy link
Copy Markdown

🎉 @prasu-baran

You are now a Microcks community contributor! 💖

Thanks and congrats 🚀 on merging your first pull request! We are delighted and very proud of you! 👏

📢 If you're using Microcks in your organization, please add your company name to this list. 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact.

If you need to know why and how to add yourself to the list, please read the blog post "Join the Microcks Adopters list and Empower the vibrant open source Community 🙌"

Kudos and please keep going, we need you 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ExpressionParser: hasArgs compares argsStart with 1 instead of -1

2 participants