Bug when using list with comma-number in elastic search template toJson

Attempting the pass a list containing a comma-number (fx. 1.1) to the toJson functionality inbuilt in the search templates results in the following error:

{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": """access denied ("java.lang.RuntimePermission" "accessDeclaredMembers") (through reference chain: java.util.HashMap["search_after"]->java.util.ArrayList[0])"""
      }
    ],
    "type": "illegal_argument_exception",
    "reason": """access denied ("java.lang.RuntimePermission" "accessDeclaredMembers") (through reference chain: java.util.HashMap["search_after"]->java.util.ArrayList[0])""",
    "caused_by": {
      "type": "json_mapping_exception",
      "reason": """access denied ("java.lang.RuntimePermission" "accessDeclaredMembers") (through reference chain: java.util.HashMap["search_after"]->java.util.ArrayList[0])""",
      "caused_by": {
        "type": "access_control_exception",
        "reason": """access denied ("java.lang.RuntimePermission" "accessDeclaredMembers")"""
      }
    }
  },
  "status": 400
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.