Skip to content

Server Error when creating permission with constraints #15115

Closed
@Kani999

Description

@Kani999

Deployment Type

Self-hosted

NetBox Version

v3.7.1

Python Version

3.10

Steps to Reproduce

  1. Add new Permission https://demo.netbox.dev/users/permissions/add/
  2. Setup Constraints as {"role": "server"}
  3. Create
  4. Obtain Server Error
<class 'ValueError'>

Field 'id' expected a number but got 'server'.

Python version: 3.8.10
NetBox version: 3.7.1
Plugins: 
  netbox_demo: 0.3.1

Expected Behavior

Server Error 500 should not be raised.
It should display some kind of validation popup.

Observed Behavior

Server Error occurs

<class 'ValueError'>

Field 'id' expected a number but got 'server'.

Python version: 3.8.10
NetBox version: 3.7.1
Plugins: 
  netbox_demo: 0.3.1

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions