Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/servers/{{ID}}/deliveryservices returns incorrect response for the requested API version #5894

Closed
ocket8888 opened this issue May 27, 2021 · 0 comments · Fixed by #5922
Closed
Assignees
Labels
regression bug a bug in existing functionality introduced by a new version Traffic Ops related to Traffic Ops

Comments

@ocket8888
Copy link
Contributor

ocket8888 commented May 27, 2021

I'm submitting a ...

  • bug report

Traffic Control components affected ...

  • Traffic Ops

Current behavior:

Making a request to /servers/{{ID}}/deliveryservices will return a different structure from a request made to /deliveryservices for the same API version. As these are not the same endpoint, there's technically no reason they need to return the same structural representation for the same Delivery Service at the same API version, but because released API versions were retroactively changed to return extra fields, this is a regression bug. In fixing it, I suggest we define the response structure to be isomorphic to /deliveryservices.

The various API versions requested for /servers/{{ID}}/deliveryservices compared to the API version of /deliveryservices that would yield the same structure as /servers/{{ID}}/deliveryservices are given below:

/servers/{{ID}}/deliveryservices version /deliveryservices version
4.0 4.0
3.1 4.0
3.0 4.0
2.0 4.0
1.5 4.0
1.4 4.0
1.3 4.0
1.2 4.0
1.1 4.0

Expected behavior:

The structure of a response from /servers/{{ID}}/deliveryservices should be the same as that of a response from /deliveryservices for the same API version. In other words, instead of the behavior described by the above table, what I'd expect to see is something more like:

/servers/{{ID}}/deliveryservices version /deliveryservices version
4.0 4.0
3.1 3.1
3.0 3.0
2.0 2.0
1.5 1.5
1.4 1.4
1.3 1.3
1.2 1.2
1.1 1.1

Minimal reproduction of the problem with instructions:

Make requests to /servers/{{ID}}/deliveryservices, note the presence or absence of fields introduced or removed in various API versions of /deliveryservices and their presence or absence from /servers/{{ID}}/deliveryservices.

@ocket8888 ocket8888 added Traffic Ops related to Traffic Ops regression bug a bug in existing functionality introduced by a new version labels May 27, 2021
@ocket8888 ocket8888 self-assigned this May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression bug a bug in existing functionality introduced by a new version Traffic Ops related to Traffic Ops
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant