ocket8888 opened a new issue, #6788:
URL: https://github.com/apache/trafficcontrol/issues/6788
## This Bug Report affects these Traffic Control components:
- Traffic Ops
## Current behavior:
When creating a DSR (in both APIv3 and APIv4) you may optionally specify an
ID. In doing so, Traffic Ops will treat it as a PUT request for the purposes
of validation. This means that it will look for an existing Delivery Service
with that ID, and try to verify that the status of the DSR to be created is in
a status that is a valid transition from the status of the existing Delivery
Service - which can lead to false negatives in the validation of the DSR. Or,
if the ID is not one that matches any existing DSR, a `400 Bad Request` error
is returned to the client with no real information about what went wrong
(`unknown error` in v3 and simply `Bad Request` in v4).
## Expected behavior:
Fields that aren't required should be ignored, and should not affect
validation.
## Steps to reproduce:
```console
$ topost -kp deliveryservice_requests '{"status": "submitted", "changeType":
"create", "deliveryService": {}, "id": 10000}'
{
"alerts": [
{
"text": "unknown error",
"level": "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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]