You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2018/12/17 19:50:14 UTC

[GitHub] ocket8888 opened a new issue #3135: /api/1.1/cachegroups 'shortname' cannot be filtered

ocket8888 opened a new issue #3135: /api/1.1/cachegroups 'shortname' cannot be filtered
URL: https://github.com/apache/trafficcontrol/issues/3135
 
 
   When trying to get a Cache Group with the short name "foo", for example, one might request `GET /api/1.1/cachegroups?shortName=foo HTTP/1.1`. The existence of this parameter seems intentional, but the underlying SQL query is poorly crafted to support it, as it fails with this error in the logs:
   ```
   ERROR: api.go:98: 2018-12-17T19:45:02.834992539Z: 172.16.239.1:48950 cg read: querying: pq: column reference "short_name" is ambiguous
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services