-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Stored scripts API accepting malformed requests #27612
Copy link
Copy link
Closed
Labels
:Core/Infra/ScriptingScripting abstractions, Painless, and MustacheScripting abstractions, Painless, and Mustache>bugTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra team
Description
The stored scripts API today accepts malformed requests instead of throwing an exception. For instance:
POST _scripts/foo
{
"source": "return"
}
GET _scripts/foo
returns
{
"_id": "foo",
"found": true,
"script": {
"lang": "mustache",
"source": """{"source":"return"}"""
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Core/Infra/ScriptingScripting abstractions, Painless, and MustacheScripting abstractions, Painless, and Mustache>bugTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra team
Type
Fields
Give feedbackNo fields configured for issues without a type.