ocket8888 commented on a change in pull request #5225:
URL: https://github.com/apache/trafficcontrol/pull/5225#discussion_r514532189
##########
File path: traffic_ops/traffic_ops_golang/routing/routes.go
##########
@@ -420,7 +420,7 @@ func Routes(d ServerData) ([]Route, []RawRoute,
http.Handler, error) {
//ServiceCategories
{api.Version{3, 0}, http.MethodGet, `service_categories/?$`,
api.ReadHandler(&servicecategory.TOServiceCategory{}), auth.PrivLevelReadOnly,
Authenticated, nil, 1085181543, noPerlBypass},
- {api.Version{3, 0}, http.MethodPut,
`service_categories/{name}/?$`,
api.UpdateHandler(&servicecategory.TOServiceCategory{}),
auth.PrivLevelOperations, Authenticated, nil, 306369141, noPerlBypass},
+ {api.Version{3, 0}, http.MethodPut,
`service_categories/{name}/?$`, servicecategory.Update,
auth.PrivLevelOperations, Authenticated, nil, 306369141, noPerlBypass},
Review comment:
I also just finished testing, and trying to update a Service Category
with a name of an SC that already exists results in an Internal Server Error
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]