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

[BUG] Validate owner in self-assignment API #564

Open
athiruma opened this issue Jan 16, 2025 · 0 comments
Open

[BUG] Validate owner in self-assignment API #564

athiruma opened this issue Jan 16, 2025 · 0 comments

Comments

@athiruma
Copy link
Contributor

athiruma commented Jan 16, 2025

  • QUADS version (rpm -qa | grep quads and/or quads --version):
  • Python version:
  • Operating System:

Describe the bug
A clear and concise description of what the bug is.
curl -k -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"description": "Short description here", "owner": "hello_quads", "qinq": 1, "vlan": "602"}' http://quads2-stage.example.com/api/v3/assignments/self

The owner must be a valid user, nice to have user validation.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Generate TOKEN for test
In payload: input owner with any random word.

Expected behavior
A clear and concise description of what you expected to happen.
The owner must be an active or valid user.

Screenshots
If applicable, add screenshots to help explain your problem.

Image

Additional context
Add any other context about the problem here.

@athiruma athiruma changed the title [BUG]: Validate owner in self-assignment API [BUG] Validate owner in self-assignment API Jan 16, 2025
sadsfae pushed a commit that referenced this issue Jan 16, 2025
feat: added ostype to self-schedule

closes: #563
closes: #564
closes: #565
Change-Id: I9b7d31a505fd325cc5fa138ed472179d0aa41e4d
@sadsfae sadsfae added this to the 2.x Series - Bowie milestone Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do
Development

No branches or pull requests

2 participants