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

Internal Server Error when create Server without profileId #4979

Closed
dpham692 opened this issue Aug 20, 2020 · 2 comments · Fixed by #5003
Closed

Internal Server Error when create Server without profileId #4979

dpham692 opened this issue Aug 20, 2020 · 2 comments · Fixed by #5003
Labels
regression bug a bug in existing functionality introduced by a new version Traffic Ops related to Traffic Ops

Comments

@dpham692
Copy link
Contributor

dpham692 commented Aug 20, 2020

I'm submitting a ...

  • bug report

Traffic Control components affected ...

  • Traffic Ops

Current behavior:

The POST handler of the /servers endpoint returns a 500 Internal Server Error response when the request payload did not specify a profileId.

Expected / new behavior:

It used to return 400 with a message to the effect that profileId is required.

Minimal reproduction of the problem with instructions:

Create a Server using https://{{TO_BASE_URL}}/api/3.0/servers without profileId. API will return Internal Server Error.

{
    "alerts": [
        {
            "text": "Internal Server Error",
            "level": "error"
        }
    ]
}
@ocket8888 ocket8888 added regression bug a bug in existing functionality introduced by a new version Traffic Ops related to Traffic Ops labels Aug 20, 2020
@mitchell852
Copy link
Member

@dpham692 - just curious. can you create a server without a profile in TP?

@rimashah25
Copy link
Contributor

@mitchell852: The answer is no. Profile is a required field in TP.

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.

4 participants