Deleted device roles get wrong user in changelog #2200

Closed
opened 2025-12-29 17:23:33 +01:00 by adam · 2 comments
Owner

Originally created by @jannooo on GitHub (Dec 12, 2018).

Environment

  • Python version: 3.5.3
  • NetBox version: 2.5.0

If a device role is deleted under /dcim/device-roles/ a wrong user gets assigned in changelog, probable the user who had created the role before.

Steps to Reproduce

  1. User A creates a device role.
  2. User B deletes it afterwards.

Expected Behavior

Changelog should say that User B deleted the role.

Observed Behavior

Changelog says that User A deleted the role.

Originally created by @jannooo on GitHub (Dec 12, 2018). <!-- NOTE: This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.5.3 * NetBox version: 2.5.0 <!-- Describe in detail the steps that someone else can take to reproduce this bug using the current stable release of NetBox (or the current beta release where applicable). --> If a device role is deleted under /dcim/device-roles/ a wrong user gets assigned in changelog, probable the user who had created the role before. ### Steps to Reproduce 1. User A creates a device role. 2. User B deletes it afterwards. <!-- What did you expect to happen? --> ### Expected Behavior Changelog should say that User B deleted the role. <!-- What happened instead? --> ### Observed Behavior Changelog says that User A deleted the role.
adam closed this issue 2025-12-29 17:23:33 +01:00
Author
Owner

@jeremystretch commented on GitHub (Dec 12, 2018):

I'm not able to replicate this on v2.5.0. The object shows deleted by user B as expected. Please retest.

@jeremystretch commented on GitHub (Dec 12, 2018): I'm not able to replicate this on v2.5.0. The object shows deleted by user B as expected. Please retest.
Author
Owner

@jannooo commented on GitHub (Dec 14, 2018):

Well, it's not reproducible anymore for us either. Definitely we had three cases that showed the described behaviour.

@jannooo commented on GitHub (Dec 14, 2018): Well, it's not reproducible anymore for us either. Definitely we had three cases that showed the described behaviour.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2200