View Issue Details

IDProjectCategoryView StatusLast Update
0010082mantisbttaggingpublic2015-08-18 11:13
Reportermiranda Assigned Tojreese  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.0a3 
Target Version1.2.0rc1Fixed in Version1.2.0rc1 
Summary0010082: Deleting a tag does after filtering by that tag results in error 2200
Description

Wanting to delete a tag in its entirety (not just the references) and lacking a tag management page, I proceeded to filter by tag on status:any issues.

Having deleted the tag in the first matched issue, a refresh on my original view_all_bug_page.php resulted in an error:

Application Error 0002200 - Cannot find tag by that name

This looked to be caused by the existing filter which was set to filter by tag 'foo', which no longer existed, ultimately confirming the error.

This has been somewhat corroborated by nuclear_eclipse, after reporting and discussing it on IRC.

A logout -> empty cache -> restart browser sequence is sufficient to alleviate the symptoms.

As far as resolution is concerned and with my limited knowledge of the codebase, there may be 2 or more possible solutions:

1 - Reset entire current filter in its entirety after tag deletion logic
2 - Reset tag list in filter after tag deletion logic
3 - Gracefully display the missing tag in the filter area but show no matches

I would suggest (3) given the user knows they just deleted the tag, so 'no matches' is also an expected output, confirming the operation.

Steps To Reproduce
  • Filter any list of issues by tag 'foo'
  • Open one issue in new tab
  • Click on tag name link (not the X)
  • Delete tag
  • Go back to original view_all_bug_page.php page or refresh
TagsNo tags attached.

Relationships

related to 0010026 closedjreese Need tag management interface 
related to 0012917 closeddregad APPLICATION ERROR 0002200 - Could not find a tag with that name 
related to 0020041 closedatrol APPLICATION ERROR 0002200 - Could not find a tag with that name 

Activities

jreese

jreese

2009-01-26 12:13

reporter   ~0020717

I think probably the simplest way to resolve this is by modifying the tag API to either:

  • not trigger an error for 'tag not found', or
  • allow the API to specify when an error is unwanted

However, this doesn't solve the root cause of the problem, in that deleting a tag does not currently modify existing filters to remove references to that tag. I suspect this is probably true of just about all of our API's, but I could be wrong.

Will investigate, and commit a solution as time permits.

jreese

jreese

2009-03-30 13:11

reporter   ~0021298

Fix committed to 1.2.x development tree.

Related Changesets

MantisBT: master 16b64ab3

2009-03-30 11:43

jreese


Details Diff
Fix 0010082: Deleting a tag breaks any filters using that tag. Affected Issues
0010082
mod - core/filter_api.php Diff File