apache / trafficcontrol

Apache Traffic Control is an Open Source implementation of a Content Delivery Network
https://trafficcontrol.apache.org/
Apache License 2.0
1.06k stars 341 forks source link

TO API: Message returned from API in Server server capabilities should be corrected #4034

Open lbathina opened 4 years ago

lbathina commented 4 years ago

I'm submitting a ...

Traffic Control components affected ...

Current behavior:

When a server is associated with capability that is already associated , we get server_server_capability server, server_capability '151, TEST_DISK2' already exists.

this exposes the database tables and fields and is not user friendly.

Expected / new behavior:

The message could be Server Capability <capability name> is already associated with server <Servername>.

Minimal reproduction of the problem with instructions:

create server capability associate server capability to server try associate the same server capability to server

Anything else:

mitchell852 commented 4 years ago

This is really something that has to be changed in the TO API and not TP. TP only displays the message it gets from the TO API.

ocket8888 commented 4 years ago

I believe that's a limitation of the "CRUDer", and probably manifests in many endpoints.