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

Updating a Topology's name to a conflicting value returns incorrect error #7681

Open
ocket8888 opened this issue Jul 31, 2023 · 0 comments
Open
Labels
bug something isn't working as intended 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

Comments

@ocket8888
Copy link
Contributor

This Bug Report affects these Traffic Control components:

  • Traffic Ops

What did you do?

$ topost -k topologies '{"name": "dev", "nodes": [{"cachegroup": "dev"}]}' > /dev/null
$ topost -k topologies '{"name": "dev-1", "nodes": [{"cachegroup": "dev"}]}' > /dev/null
$ toput -kp 'topologies?name=dev' '{"name": "dev-1", "nodes": [{"cachegroup": "dev"}]}'

What did you expect to happen?

400 Bad Request response:

{
	"alerts": [
		{
			"text": "topology name 'dev-1' already exists.",
			"level": "error"
		}
	]
}

(note that this is done appropriately on creation/POST requests).

What actually happened?

500 Internal Server Error response:

{
	"alerts": [
		{
			"text": "Internal Server Error",
			"level": "error"
		}
	]
}
@ocket8888 ocket8888 added bug something isn't working as intended Traffic Ops related to Traffic Ops low impact affects only a small portion of a CDN, and cannot itself break one low difficulty the estimated level of effort to resolve this issue is low labels Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working as intended 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
Projects
None yet
Development

No branches or pull requests

1 participant