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

Empty location field breaks bulk-import #13871

Closed
ekrichbaum opened this issue Sep 22, 2023 · 0 comments · Fixed by #13885
Closed

Empty location field breaks bulk-import #13871

ekrichbaum opened this issue Sep 22, 2023 · 0 comments · Fixed by #13885
Assignees
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@ekrichbaum
Copy link

NetBox version

v3.6.2

Python version

3.8

Steps to Reproduce

Given data:
site named import-test
rack named import-rack in site import-test
device role named import-role
manufacturer named import-manufacturer
device-type named import-device with manufacturer of import-manufacturer

CSV data:

name,role,serial,description,manufacturer,device_type,airflow,status,site,location,rack,position,face
,import-role,3412341,,import-manufacturer,import-device,front-to-rear,active,import-test,,import-rack,,
,import-role,kljadf123,,import-manufacturer,import-device,front-to-rear,active,import-test,,import-rack,,

Steps to replicate import failure:
Devices -> Devices -> Import.
Paste data to direct import text box.
Submit.

Expected Behavior

Devices from csv would be imported.

Observed Behavior

image

Removing the location field (and leaving other empty fields) successfully imports devices.

New CSV:

name,role,serial,description,manufacturer,device_type,airflow,status,site,rack,position,face
,import-role,3412341,,import-manufacturer,import-device,front-to-rear,active,import-test,import-rack,,
,import-role,kljadf123,,import-manufacturer,import-device,front-to-rear,active,import-test,import-rack,,

Devices import as expected.

@ekrichbaum ekrichbaum added the type: bug A confirmed report of unexpected behavior in the application label Sep 22, 2023
@abhi1693 abhi1693 added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation severity: medium Results in substantial degraded or broken functionality for specfic workflows labels Sep 22, 2023
@jeremystretch jeremystretch self-assigned this Sep 25, 2023
@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels Sep 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
3 participants