Bulk rename improperly strips "find" and "replace" fields #13791
Labels
severity: low
Does not significantly disrupt application functionality, or a workaround is available
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
NetBox version
v3.6.1
Python version
3.11
Steps to Reproduce
Expected Behavior
NetBox should offer to rename the device to "One-Two".
Observed Behavior
Netbox offers to rename the device to "One- Two" (note the space).
My guess (I've not looked at the code) is that this happens because django autostrips whitespace from input fields by default, and this needs to be disabled.
Also, the same bug exists on the "replace" field, and is completely analagous to the replace field.
Workaround: For the "find" field, use regex mode and \s to match trailing whitespace. For the "replace" field, I don't know of a general workaround.
The text was updated successfully, but these errors were encountered: