Change Traffic Ops to 501 Not Implemented on unknown version reqs, and client to return a helpful message#2952
Conversation
|
For anyone trying to test this, the easiest way I found was to manually increase the client's version, by changing |
dangogh
left a comment
There was a problem hiding this comment.
just the one message looks to be incorrect.
|
@dangogh Er, which message? |
|
Refer to this link for build results (access rights to CI server needed): |
|
hmm.. I'd added a comment on |
There was a problem hiding this comment.
this should be
this client is probably newer than Traffic Ops
7fa8fe6 to
61b8c06
Compare
Also changes the TO client to return a helpful message if it gets a 501.
|
Refer to this link for build results (access rights to CI server needed): |
not quite true: you need to run this against a TO that has these changes in it to produce the 501. That said, I've done that and the changes have the desired effect. |
|
HTTP spec designates the 501 response code to be used for a lack of HTTP functionality. That more or less means that the HTTP method used in the request isn't implemented by the server (not that the method is not available for an existing resource - that would entail a 405 response). The proper response code for a path that does not exist on the server is |
|
@ocket8888 It's kind of strange to comment on merged pull requests. The normal procedure, if you have concerns about code already in |
|
I guess I'm just bummed I didn't see this before it was merged... I'll open an issue. |
Change Traffic Ops to 501 Not Implemented on unknown version reqs, and client to return a helpful message
What does this PR do?
Change Traffic Ops to 501 Not Implemented on unknown version reqs, and client to return a helpful message
This is intended to mitigate the confusion for people running master, who try to use a newer client than their server, after a recent minor version increase.
Which TC components are affected by this PR?
What is the best way to verify this PR?
Try to connect to a TO server since before a minor version bump (e.g. 1.3) with a client after the version increase. The client should return a helpful message.
Check all that apply