Skip to content

Exception when search for rack position without defining a rack #8866

@rodvand

Description

@rodvand

NetBox version

v3.2.0-beta2

Python version

3.8

Steps to Reproduce

  1. Find a device not racked
  2. Edit the device
  3. Do not select a rack, but go to rack position and start a search

Expected Behavior

Expect not to be "allowed" to search for a rack position without defining a rack.

Observed Behavior

See an error banner showing parts of an exception.

Screenshot 2022-03-14 at 15 16 54

It seems that the search for a rack position uses the URL https://beta-demo.netbox.dev/api/dcim/racks/{{ rack }}/elevation/?brief=true&exclude=109&q=12 which mess up the request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: 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