You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by "Jeremy Mitchell (JIRA)" <ji...@apache.org> on 2017/06/30 15:14:01 UTC

[jira] [Closed] (TC-88) POST/PUT /api/servers needs to enforce uniqueness of ip/ip6/profile db constraint

     [ https://issues.apache.org/jira/browse/TC-88?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremy Mitchell closed TC-88.
-----------------------------

> 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.4.14#64029)