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

500 error using _render/template #13651

Closed
slylock opened this issue May 13, 2024 · 3 comments
Closed

500 error using _render/template #13651

slylock opened this issue May 13, 2024 · 3 comments
Labels
bug Something isn't working Search Search query, autocomplete ...etc

Comments

@slylock
Copy link

slylock commented May 13, 2024

Describe the bug

After upgrading from 2.7 to 2.11, use of the _render/template api returns a 500 error, even though I'm logged in to Dev Tools with a user that has * * permission (all_access role).

Example POST (or GET, either one returns error):
POST _render/template/my_search_template
{
"params": {
"my_param": "hello",...

Error:
{
"error": {
"root_cause": [
{
"type": "security_exception",
"reason": "Unexpected exception indices:data/read/search/template"
}
],
"type": "security_exception",
"reason": "Unexpected exception indices:data/read/search/template"
},
"status": 500
}

Related component

Search

To Reproduce

GET _render/template/my_search_template
{
"params": {
"my_param": "hello",...

Expected behavior

Should return rendered template, but gives 500 error.

Additional Details

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@slylock slylock added bug Something isn't working untriaged labels May 13, 2024
@github-actions github-actions bot added the Search Search query, autocomplete ...etc label May 13, 2024
@slylock
Copy link
Author

slylock commented May 14, 2024

Looks to be a duplicate of #3672

@peternied
Copy link
Member

[Triage - attendees 1 2 3 4 5 6 7 8]
@slylock Thanks for creating this issue - that linked item looks to be merged, has this been fixed in a newer version?

@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in Search Project Board May 15, 2024
@cwperks
Copy link
Member

cwperks commented May 15, 2024

@slylock This is a known issue in 2.11.x.

A fix was released in 2.12.0: #11170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Search Search query, autocomplete ...etc
Projects
Archived in project
Development

No branches or pull requests

3 participants