View Issue Details

IDProjectCategoryView StatusLast Update
0008232mantisbtfilterspublic2008-05-06 16:43
Reportergiallu Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
Product Version1.1.0a4 
Summary0008232: Wrong permalink for filters with "duplicate of"
Description

When creating a permalink for a filter with the "duplicate of " field set, the resulting link doed not work as the original filter due to a missing "relationship_type" parameter.

For example, compare the following permalinks, the first created with a filter for "has duplicate 7948", the second with the filter "duplicate of 8103"

http://www.mantisbt.org/bugs/search.php?project_id=1&handler_id=4599&sticky_issues=on&sortby=last_updated&dir=DESC&hide_status_id=-2&relationship_type=4&relationship_bug=7948

http://www.mantisbt.org/bugs/search.php?project_id=1&handler_id=4599&sticky_issues=on&sortby=last_updated&dir=DESC&hide_status_id=-2&relationship_bug=8103

TagsNo tags attached.

Activities

vboctor

vboctor

2007-09-11 09:12

manager   ~0015607

I've checked this issue and following are the results:

  1. The code for "duplicate of" is 0, hence, it is consider as ANY and hence is not included in the relationship type.

  2. If the user sets the relationship type to "duplicate of" and bug id to XXX, then clicks on the "Relationship" link to edit this info again, the relationship type combobox shows up with "any" selected. This is due to both "any" and "duplicate of" having value of 0.

In my opinion the proper fix for this would be to do the following:

  1. Change the code for "duplicate of" to be something other than 0.

  2. Add an upgrade step which converts existing filters to use the new code. The other option is to increase filter cookie version number and assume that for previous versions, if rel type = 0 and bug type != 0, then the relationship type is duplicate of.