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

rack_reservation does not set correct user #6517

Closed
FalcoSuessgott opened this issue Jun 1, 2021 · 0 comments
Closed

rack_reservation does not set correct user #6517

FalcoSuessgott opened this issue Jun 1, 2021 · 0 comments
Assignees
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@FalcoSuessgott
Copy link

NetBox version

v2.11.1

Python version

3.9

Steps to Reproduce

curl -X POST "http://localhost:8000/api/dcim/rack-reservations/" -H "accept: application/json" -H "Authorization: Token 0123456789abcdef0123456789abcdef01234567" -H "Content-Type: application/json" -H "X-CSRFToken: PyMWmxAR5J2DM31IJ1dhdUvv3p5xlEDhh5Qh2XUqJkBA5PgkjZAwCqDEUheK6b17" -d "{  "rack": 7,  "units": [5,6],  "user": 8,  "description": "string"}"

results in:

{
  "id": 8,
  "url": "http://localhost:8000/api/dcim/rack-reservations/8/",
  "display": "Reservation for rack racks_1",
  "rack": {
    "id": 7,
    "url": "http://localhost:8000/api/dcim/racks/7/",
    "display": "racks_1",
    "name": "racks_1",
    "display_name": "racks_1"
  },
  "units": [
    5,
    6
  ],
  "created": "2021-06-01",
  "user": {
    "id": 1,
    "url": "http://localhost:8000/api/users/users/1/",
    "display": "admin",
    "username": "admin"
  },
  "tenant": null,
  "description": "string",
  "tags": [],
  "custom_fields": {}
}

Expected Behavior

I expect the rack reservation to be mapped to user with the id 8.

Observed Behavior

Instead of the rack_reservation is mapped to the admin account (id=1).

@FalcoSuessgott FalcoSuessgott added the type: bug A confirmed report of unexpected behavior in the application label Jun 1, 2021
@jeremystretch jeremystretch added the status: accepted This issue has been accepted for implementation label Jun 2, 2021
@jeremystretch jeremystretch self-assigned this Jun 2, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants