Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chained template parameters can cause server error. #2136

Open
kavics opened this issue Jun 28, 2024 · 0 comments
Open

Chained template parameters can cause server error. #2136

kavics opened this issue Jun 28, 2024 · 0 comments

Comments

@kavics
Copy link
Contributor

kavics commented Jun 28, 2024

The following query causes a server error if the template parameters cannot be resolved. For example:
The query: "TypeIs:Task +CreationDate:<@@CurrentUser.Manager.CreationDate@@"
The result: "Unexpected RParen. Expected: STRING | NUMBER, (query: +(TypeIs:Task +CreationDate:<) +(InTree: /Root ) ) [Line: 1, Col: 30]"
Expected result: No error, no hit
See Docs2_Querying_Template_PropertyChain test in the TestForDocs project.

Maybe should be used something like this in the template replacer: -=#NotResolved#=-

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

No branches or pull requests

1 participant