Bug 1301383
Summary: | Search query returns wrong value for tag association | ||
---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | Nelly Credi <ncredi> |
Component: | Search-Backend | Assignee: | Eli Mesika <emesika> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Petr Kubica <pkubica> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.6.2 | CC: | bugs, gklein, mperina, oourfali, pkubica |
Target Milestone: | ovirt-4.0.0-alpha | Flags: | rule-engine:
ovirt-4.0.0+
rule-engine: planning_ack+ rule-engine: devel_ack+ rule-engine: testing_ack+ |
Target Release: | 4.0.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ovirt 4.0.0 alpha1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-07-05 07:39:28 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Nelly Credi
2016-01-24 17:23:38 UTC
*** Bug 1301385 has been marked as a duplicate of this bug. *** There is a cache in the "SearchQuery.queriesCache" static field that stores the SQL code generated from the search text. This data in this cache is cleared when it is one day old. In addition the "BaseConditionFieldAutoCompleter.formatValue" method translates the search text so that if it includes something like "tag=whatever" the "whatever" part is converted into set of identifiers of the tags that match it, before generating the SQL code. In you case it will be translated into the id of "tag_1". The resulting SQL is then stored in the cache, and will stay there for one day. So even if you remove "tag_1" the cached SQL statement will still contain the identifier of the removed "tag_1", thus producing zero results. Verified in 4.1.0-0.0.master.20160613231338.git6e72c0b.el7.centos oVirt 4.0.0 has been released, closing current release. |