This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Fix internal server error and false positive when creating a server #6782
Merged
zrhoffman merged 2 commits intoapache:masterfrom Apr 27, 2022
Merged
Fix internal server error and false positive when creating a server #6782zrhoffman merged 2 commits intoapache:masterfrom
zrhoffman merged 2 commits intoapache:masterfrom
Conversation
Member
|
can you make a better title for the PR @ericholguin to describe what this PR does? thanks |
Contributor
|
LGTM from code perspective but wonder why TO API tests fail.. |
rimashah25
approved these changes
Apr 27, 2022
zrhoffman
pushed a commit
to zrhoffman/trafficcontrol
that referenced
this pull request
Oct 2, 2022
…pache#6782) * Fix regression bugs * fix missing variable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: #6779
Fixes: #6781
With this fix there is no internal server error when creating a server without a profile key in v2 and v3
The other fix is when creating a server with multiple profiles in v4, if any of the profiles do not belong to the same CDN it will now fail as expected.
Which Traffic Control components are affected by this PR?
What is the best way to verify this PR?
Build and test the following in TO:
POSTrequest to/api/2.0/serverswith no profile key in the request bodyShould succeed with no error:
POSTrequest to/api/3.0/serverswith no profile key in the request bodyShould succeed with no error:
POSTrequest to/api/4.0/serverswith multiple profiles, where one profile belongs to a different cdn than the server (regardless of order){ "cachegroupId": 8, "cdnId": 2, "domainName": "test.net", "hostName": "test-01", "interfaces": [ { "ipAddresses": [ { "address": "0.0.0.1", "gateway": "0.0.0.1", "serviceAddress": true } ], "name": "eth0" } ], "physLocationId": 2, "statusId": 3, "typeId": 11, "profileNames": ["ORG_MSO", "TRAFFIC_STATS", "CCR_CIAB"] }Should return an error:
PR submission checklist