[ https://issues.apache.org/jira/browse/TC-88?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Kirkwood resolved TC-88. ---------------------------- Resolution: Fixed > POST/PUT /api/servers needs to enforce uniqueness of ip/ip6/profile db > constraint > --------------------------------------------------------------------------------- > > Key: TC-88 > URL: https://issues.apache.org/jira/browse/TC-88 > Project: Traffic Control > Issue Type: Bug > Components: Traffic Ops API > Reporter: Jeremy Mitchell > Assignee: Jeremy Mitchell > Priority: Minor > Fix For: 2.0.0 > > > The api endpoints for create and update server respectively are: > POST /api/:version/servers > PUT /api/:version/servers/:id > Each needs to check for uniqueness of the following per the database > constraint: > ip_address / profile > ip6_address / profile > and if uniqueness is violated return a 400 Bad Request with something like > "IP address is already in use for profile X" > rather than bubbling up a 500 due to database error. -- This message was sent by Atlassian JIRA (v6.3.4#6332)