Skip to content

pktvisor is not properly parsing Json arrays #214

@ghost

Description

When we try to create the policy bellow:

{
    "version": "1.0", 
    "visor": {  
        "policies": {
            "policy2": {
                "handlers": {
          "modules": [
            {
              "default_dns": {
                "type": "dns",
                "config": {
                  "in_key": "in_value"
                }
              }
            },
            {
              "default_net": {
                "type": "net"
              }
            }
          ]
                },
                "input": {
                     "filter": {
                         "bpf": "udp port 53"
                    },
                    "input_type": "pcap",
                    "tap": "default"
                },
                "kind": "collection"
            }
        }
    }
}

We got the following error

{
    "error": "missing or invalid stream handler type at key 'type'"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions