Open Bugs | New Bug anonymous
Login/Register

Equi4 SoftwareEdit Bug

Title: Mk4py ordered view find fails if >1 property in criteria Status: new
Product: Metakit Severity: major
Version: 2.4.9.4 Type: bug
Assign to:
Platform:
All - tested on Windows and Linux
Message:

File:
Description:

Messages

2005/08/04
The c4_OrderedViewer::KeyCompare method used in c4_OrderedViewer::find assumes that
the properties in the search criteria are in the same order as the properties
in the view. The PyView_find function constructs search criteria with the properties
in an order that depends on the Python built-in dictionary hash function. This
means that it is sheer luck if the criteria properties order matches the underlying
view order.
I've attached a test program demonstrating the problem and a patch for PyView.cpp
that corrects the behavior. The test program demonstrates that the patch corrects
the behavior. The patch should be run from the parent metakit-2.4.9.4 directory
(i.e. the parent of the python directory).

Files

2005/08/04 C:\Documents and Settings\kni23572\Desktop\share-with-vmware\orderedfind.tar Tar file with test program and patch application/octet-stream

Bug Tracker © 2002 McMillan Enterprises, Inc.