Invalidation Type restricted message could be better #6340
Labels
bug
something isn't working as intended
improvement
The functionality exists but it could be improved in some way.
low difficulty
the estimated level of effort to resolve this issue is low
low impact
affects only a small portion of a CDN, and cannot itself break one
Traffic Ops
related to Traffic Ops
This Improvement request (usability, performance, tech debt, etc.) affects these Traffic Control components:
Current behavior:
When attempting to create a "REFETCH" Content Invalidation Job when no
refetch_enabled
Parameter exists (or is not set to a case-insensitive "true") yields the error:Similarly, if you try to change the Invalidation Type of an existing Content Invalidation Job to "REFETCH" when it's disallowed, the message incorrectly reports that "REFRESH" is not allowed:
Response:
New behavior:
Firstly, the field is called "invalidationType", not "InvalidationType" - but that's less important than that the value "REFETCH" is actually valid, just not allowed, and the error message doesn't give the user enough information to know what will cause the request to succeed.
Also, the response from a PUT request should not lie to the user.
The text was updated successfully, but these errors were encountered: