Skip to content

Inconsistency in svg return from api #9503

@ekrichbaum

Description

@ekrichbaum

NetBox version

v3.2.4

Python version

3.10

Steps to Reproduce

1.) call api for rackface elevation (from different machine).
https://netbox.mydomain.com/api/dcim/racks/33/elevation/?face=front&render=svg&unit_width=220&unit_height=22&legend_width=30&expand_devices=true&include_images=true
where 33 is the id of the rack to generate.
2.) view source on the returned rackface.

Expected Behavior

All references should return full url. Different machine fails on relative links to display graphics.

Observed Behavior

Some link elements are represented with full url.

a fill="black" target="_top" xlink:href="https://netbox.mydomain.com/dcim/devices/89/"

others are returned with partial.

a target="_top" xlink:href="/dcim/devices/add/?site=3&location=&rack=33&face=front&position=27"

As a workaround, I parsed the return and did a string replace to fill in the missing info.

Metadata

Metadata

Assignees

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