Quick Add for MAC address doesn't work in my browsers #19749
Replies: 7 comments
-
I am unable to reproduce this on v4.3.2 using either Chrome or Brave or FireFox. This is likely an issue with your installation, please ensure you run the |
Beta Was this translation helpful? Give feedback.
-
Netbox has been installed for years now, and updated with new releases on a regular basis, using the update.sh script. Just now I've manually run this sequence: root@monitor:/opt/netbox# source /opt/netbox/venv/bin/activate
root@monitor:/opt/netbox# netbox/manage.py collectstatic
You have requested to collect static files at the destination
location as specified in your settings:
/opt/netbox/netbox/static
This will overwrite existing files!
Are you sure you want to do this?
Type 'yes' to continue, or 'no' to cancel: yes
0 static files copied to '/opt/netbox/netbox/static', 502 unmodified.
root@monitor:/opt/netbox# systemctl restart netbox netbox-rq and the problem persists. As stated in my original post, the Quick Add for Device Role works properly. It's only the MAC Address Quick Add which exhibits this problem. If there's some other step I should be taking, or further debugging information I can provide, please advise. |
Beta Was this translation helpful? Give feedback.
-
This happens to us as well. When clicking the plus sign, the browser's error console shows a |
Beta Was this translation helpful? Give feedback.
-
@SA0TAY |
Beta Was this translation helpful? Give feedback.
-
@postilion , I can also not reproduce this on v4.3.2 (or v4.3.1). ![]() Given that you're getting a 403 (Forbidden), this feels like it might be CSRF or authentication/authorization related. I'm inclined to not believe this is CSRF, since this appears to be happening (form your explanation) on the initial GET operation, which should be exempt from CSRF. Since neither Dan nor I can reproduce, I'm going to convert this to a discussion and see if anyone else has any input. |
Beta Was this translation helpful? Give feedback.
-
We are on 4.3.6 and also issuing this issue. Additionally, we updated from 4.0.8 to 4.3.6 with some issues on the database (SQL_ASCII) but this is now fixed. Same error on Console as the other guys. Also tested on chromium. Same result. Update: I have tested with a fresh installation: Success I think this is an issue with a migration from an older version. |
Beta Was this translation helpful? Give feedback.
-
@SA0TAY @postilion I found the solution to this issue. At least in my case: Actually, it is quite straight forward: The 403 states that I am not allowed to add MAC Address. So I checked Admin > Authentication > Permissions > [My Permission Set] > EDIT (I only have one at the moment) And there I saw it: My Permission Set bound to my group had A few Available Permissions, including As an Administrator, the following step should be included in the Upgrade Process: Check for new Permissions in the Admin Section The error message for the quick-add button could be a bit more straight forward. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Deployment Type
Self-hosted
NetBox Version
v4.3.1
Python Version
3.12
Steps to Reproduce
Expected Behavior
A widget should appear allowing input of a MAC address.
Note: The similar process for adding Device Role, within a Device Edit window, does work as expected.
Observed Behavior
A grey mask appears across the window, but no entry widget appears. Here's a screen capture from Firefox 139.0.4:
Same thing happens in Brave 1.79.123.
Without this quick add, I see no other way to manage MAC addresses.
-nic
Beta Was this translation helpful? Give feedback.
All reactions