Bug 478280 - complex filters get unecessarily complex when converted in FilterBuilder
Summary: complex filters get unecessarily complex when converted in FilterBuilder
Keywords:
Status: CLOSED EOL
Alias: None
Product: penrose
Classification: Retired
Component: Engine
Version: 2.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Endi Sukma Dewata
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks: 471500
TreeView+ depends on / blocked
 
Reported: 2008-12-27 08:14 UTC by Chandrasekar Kannan
Modified: 2020-03-27 19:41 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:41:23 UTC
Embargoed:


Attachments (Terms of Use)

Description Chandrasekar Kannan 2008-12-27 08:14:05 UTC
In the master branch in git at the moment a complex filter get's incorrectly converted. For example the filter '(&(uid=kouk)(givenName=Konstantinos))' will become '(&(uid=kouk)(&(uid=kouk)(givenName=Konstantinos)))'. In this case there is no error because the filters are logically equivalent. But this might not always be the case. The attached patch fixes this behaviour.

=========================================================
Issue dump from jira
$VAR1 = {
          'priority' => '4',
          'customFieldValues' => [],
          'project' => 'PENROSE',
          'status' => '1',
          'components' => [
                            {
                              'name' => 'Engine',
                              'id' => '10009'
                            }
                          ],
          'attachmentNames' => '0002-recalculate-variables-when-converting-complex-filter.patch',
          'reporter' => 'kouk',
          'key' => 'PENROSE-315',
          'assignee' => 'jimyang',
          'summary' => 'complex filters get unecessarily complex when converted in FilterBuilder',
          'id' => '11042',
          'updated' => '2008-08-25 10:43:43.0',
          'votes' => '0',
          'fixVersions' => [],
          'affectsVersions' => [],
          'description' => 'In the master branch in git at the moment a complex filter get's incorrectly converted. For example the filter '(&(uid=kouk)(givenName=Konstantinos))' will become '(&(uid=kouk)(&(uid=kouk)(givenName=Konstantinos)))'. In this case there is no error because the filters are logically equivalent. But this might not always be the case. The attached patch fixes this behaviour.',
          'created' => '2008-08-25 10:43:17.0',
          'type' => '1'
        };


=========================================================

Comment 1 Endi Sukma Dewata 2009-02-05 18:08:18 UTC
Might be related to https://bugzilla.redhat.com/show_bug.cgi?id=478255.

Comment 2 Endi Sukma Dewata 2009-02-24 00:30:15 UTC
We need the configuration files and the query that was sent to the server.


Note You need to log in before you can comment on or make changes to this bug.