-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
severity: mediumResults in substantial degraded or broken functionality for specfic workflowsResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
Deployment Type
Self-hosted
NetBox Version
v4.0.2
Python Version
3.11
Steps to Reproduce
In the UI:
- Admin > Permissions
- Add or Edit a permission
- Inspect list of selectable Object types.
Authentication and Authorization > Groupstill exists, but it does nothing (Admin > Groups is visible on the navigation bar, but accessing it returns 403 permission denied).Authentication and Authorization > Useris gone, and users who used to have that permission can no longer view/edit the Users page.
In Postgresql:
- Upgrade from 3.7.8 to 4.0.2 and run migrations
psql -d netbox\d- Observe that
auth_userand all other related tables are gone (suspect one of the migrations did it but it's unclear which). - Observe that
auth_groupandauth_group_permissionsremains but are empty (it's more clear that this is the migration, no apparent deletion of the table is present).
Expected Behavior
I see that there's a couple migration scripts. I suspect that the DB migration from auth_user to users_user is incomplete but don't understand enough to definitively say so.
The ability to manipulate Users and Groups should be possible by users without superuser powers. This is more obviously broken since 4.0.x.
Observed Behavior
Users with permission to view/change users and groups get 403 permission denied when accessing those pages.
Metadata
Metadata
Assignees
Labels
severity: mediumResults in substantial degraded or broken functionality for specfic workflowsResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application