Invalid statuses in search now ignored rather than honoured?

Gervase Markham gerv at mozilla.org
Tue Sep 28 10:06:13 UTC 2010


On 27/09/10 19:02, Gervase Markham wrote:
> [This issue was found using the BzAPI test suite.]

Here are some other changes in behaviour on the tip which my unit tests 
have found. Again, it would be helpful to confirm if these are intentional.

1) chfieldfrom/chfieldto date validation

4.0: 
https://landfill.bugzilla.org/bugzilla-4.0-branch/buglist.cgi?chfieldfrom=2009-Phooey-28&bug_id=1

=> '2009-phooey-28' is not a legal date.

Tip: 
https://landfill.bugzilla.org/bugzilla-tip/buglist.cgi?chfieldfrom=2009-Phooey-28&bug_id=1

=> One bug found.

2) deadlinefrom/deadlineto date validation

The same is true of deadlinefrom and deadlineto.

3) chfieldto problems (I think this one must be a bug...)

4.0: 
https://landfill.bugzilla.org/bugzilla-4.0-branch/buglist.cgi?chfieldto=2007-07-03&chfield=status_whiteboard&chfieldfrom=2007-07-01&chfieldvalue=nothingafds

=> One bug found.

Tip: 
https://landfill.bugzilla.org/bugzilla-tip/buglist.cgi?chfieldto=2007-07-03&chfield=status_whiteboard&chfieldfrom=2007-07-01&chfieldvalue=nothingafds

=> Zarro boogs.

This query picks out a change from many years ago, which is identical in 
the two databases. Removing chfieldto from the second URL shows up the 
bug (and another one, as it happens).

4) Bugs created before...

I want to find all bugs created before 2000-06-17.

4.0: 
https://landfill.bugzilla.org/bugzilla-4.0-branch/buglist.cgi?chfieldto=2000-06-17&chfield=[Bug%20creation]

=> 11 bugs found.

Tip: 
https://landfill.bugzilla.org/bugzilla-tip/buglist.cgi?chfieldto=2000-06-17&chfield=[Bug%20creation]

=> Error: "Can't use [Bug creation] as a field name."

5) owner_idle_time units

The value owner_idle_time, available for use in boolean charts, used to 
be interpreted as days if there was no unit given. It's now interpreted 
another way, because SqlifyDate() is being used instead of its own 
custom function. So:

4.0: 
https://landfill.bugzilla.org/bugzilla-4.0-branch/buglist.cgi?value0-0-0=40000&field0-0-0=owner_idle_time&type0-0-0=greaterthan&bug_id=1

=> Zarro boogs found.

Tip: 
https://landfill.bugzilla.org/bugzilla-tip/buglist.cgi?value0-0-0=40000&field0-0-0=owner_idle_time&type0-0-0=greaterthan&bug_id=1

=> One bug found.

Gerv
_______________________________________________
dev-apps-bugzilla mailing list
dev-apps-bugzilla at lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-apps-bugzilla



More information about the developers mailing list