I observed that components whose ID includes a comma cannot be queried for:

    # Using the encoded name (`,` is encoded to `%2C`)
$ curl -s $API_BASE/api/v1/topology/MyTopology/component/MyBolt%2CVariantA
    Page not found

    # Using the raw name (`,` is left as is)
$ curl -s $API_BASE/api/v1/topology/MyTopology/component/MyBolt,VariantA
    Page not found

Should I use a different URL to query the component stats or is this a legitimate bug? If the latter, then I'll file a bug report.

FWIW the REST API does correctly return the component ID when querying for, say, the topology information:

    $ curl -s $API_BASE/api/v1/topology/MyTopology

    {
      ...
      "bolts": [
        {
          "boltId": "MyBolt,VariantA",
          "encodedBoltId": "MyBolt%2CVariantA",
        }
      ]
      ...
    }


--Michael

Reply via email to