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 2019/11/14 22:55:55 UTC
[GitHub] [trafficcontrol] ocket8888 commented on issue #4115: TO: Deleting a
Delivery Service Required Capability that does not exist returns incorrect
error
ocket8888 commented on issue #4115: TO: Deleting a Delivery Service Required Capability that does not exist returns incorrect error
URL: https://github.com/apache/trafficcontrol/issues/4115#issuecomment-554121574
I can't replicate this. I have no Server Capabilities created in my CDN-in-a-Box and I got this:
```http
DELETE /api/1.4/deliveryservices_required_capabilities?deliveryServiceID=1&requiredCapability=any HTTP/1.1
User-Agent: python-requests/2.22.0
Accept-Encoding: gzip, deflate
Accept: */*
Connection: keep-alive
Cookie: mojolicious=...
Content-Length: 0
```
which gets this as a response:
```http
HTTP/1.1 404 Not Found
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Set-Cookie, Cookie
Access-Control-Allow-Methods: POST,GET,OPTIONS,PUT,DELETE
Access-Control-Allow-Origin: *
Content-Encoding: gzip
Content-Type: application/json
Set-Cookie: mojolicious=...; Path=/; HttpOnly
X-Server-Name: traffic_ops_golang/
Date: Thu, 14 Nov 2019 22:53:15 GMT
Content-Length: 112
{
"alerts": [
{
"text": "no deliveryservice.RequiredCapability with that key found",
"level": "error"
}
]
}
```
So what I have to ask is: are you sure your tenant has permissions to access that Delivery Service?
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services