You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users that are providing a Payload in JSON provide a type attribute.
Currently users defining the type in lower case will always see the request rejected.
Could not parse request: {"type":"search","index":"blah","query":{"from":0,"size":3,"query":{"bool":{"must":[{"term":{"name.keyword":"Foo bar baz"}}]}}, Cannot deserialize value of type io.hyperfoil.tools.horreum.datastore.ElasticsearchDatastore$RequestType from String "search": not one of the values accepted for Enum class: [SEARCH, MULTI_INDEX, DOC]}}
To Reproduce
Provide an upload JSON with the type in lower or mixed case.
{"type":"search","index":"blah","query":{"from":0,"size":3,"query":{"bool":{"must":[{"term":{"name.keyword":"Foo bar baz"}}]}}
Expected outcome
The type is converted to upper case before attempting the ENUM lookup.
Version
0.15.6
Java
17
The text was updated successfully, but these errors were encountered:
Describe the bug
Users that are providing a Payload in JSON provide a
type
attribute.Currently users defining the type in lower case will always see the request rejected.
Could not parse request: {"type":"search","index":"blah","query":{"from":0,"size":3,"query":{"bool":{"must":[{"term":{"name.keyword":"Foo bar baz"}}]}}, Cannot deserialize value of type
io.hyperfoil.tools.horreum.datastore.ElasticsearchDatastore$RequestType
from String "search": not one of the values accepted for Enum class: [SEARCH, MULTI_INDEX, DOC]}}To Reproduce
Provide an upload JSON with the type in lower or mixed case.
{"type":"search","index":"blah","query":{"from":0,"size":3,"query":{"bool":{"must":[{"term":{"name.keyword":"Foo bar baz"}}]}}
Expected outcome
The type is converted to upper case before attempting the ENUM lookup.
Version
0.15.6
Java
17
The text was updated successfully, but these errors were encountered: