Inadvertent regular expression validation failures during global search #7545

Closed
opened 2025-12-29 20:24:59 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Jan 20, 2023).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.4.3

Python version

3.8

Steps to Reproduce

  1. Create a site named "Site(1)"
  2. Search for "Site(" in global search (using the default "partial match" type)

Expected Behavior

The site should appear in the results list.

Observed Behavior

An exception is raised:

missing ), unterminated subpattern at position 0

This was originally resolved under #11516, but inadvertently reversed while solving for a related issue. The search term should be escaped when regex matching is not in play.

Originally created by @jeremystretch on GitHub (Jan 20, 2023). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.4.3 ### Python version 3.8 ### Steps to Reproduce 1. Create a site named "Site(1)" 2. Search for "Site(" in global search (using the default "partial match" type) ### Expected Behavior The site should appear in the results list. ### Observed Behavior An exception is raised: ``` missing ), unterminated subpattern at position 0 ``` This was originally resolved under #11516, but inadvertently reversed while solving for a related issue. The search term should be escaped when regex matching is not in play.
adam added the type: bugstatus: accepted labels 2025-12-29 20:24:59 +01:00
adam closed this issue 2025-12-29 20:24:59 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7545