Bug 200898
Summary: | bugzilla should provide better error for incorrect regex patterns | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] Bugzilla | Reporter: | Chris Duryee <cduryee> | ||||
Component: | Bugzilla General | Assignee: | PnT DevOps Devs <hss-ied-bugs> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | David Lawrence <dkl> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 3.2 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
URL: | https://bugzilla.redhat.com/bugzilla/query.cgi?format=advanced | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2008-11-07 16:03:03 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Chris Duryee
2006-08-01 14:03:59 UTC
Created attachment 133397 [details]
screenshot of settings to cause SQL error
'*' is not a valid quantifier in the regex language. You would need to instead type '.*redhat.com'. The problem here is that Bugzilla is not failing gracefully for misinterpreted regex patterns. I suppose it needs to at a minimum to substitute '.*' for any '*' characters that it finds as well as some of the other quanitifiers it uses. And/Or it needs to precompile the regex first before using in SQL and then fail with a descriptive error and make some possible suggestions. In the meantime, I tried your same query with '.*redhat.com' instead and all works fine with that. Red Hat Bugzilla is now using version 3.2 of the Bugzilla codebase and therefore this bug will need to be re-verified against the new release. With the updated code this bug may no longer be relevant or may have been fixed in the new code. Updating bug version to 3.2. |