View Issue Details

IDProjectCategoryView StatusLast Update
0008167mantisbtfilterspublic2017-10-08 23:55
ReporterbbryantAssigned Tocproensa 
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version1.0.7 
Target Version2.8.0Fixed in Version 
Summary0008167: Filter settings saved when using Anonymous account
Description

Filter settings are saved in the database when using the anonymous account. This has weird effects for people browsing issues on this account.

Steps To Reproduce

Steps to reproduce:
1) Login anonymously, and change the filters you're using to view issues.
2) Login on from another machine, and the ones you saved should be loaded.

Tagspatch

Relationships

has duplicate 0020610 closedatrol filter settings are randomly changing, has search entries i never entered 

Activities

vboctor

vboctor

2007-07-24 02:19

manager   ~0015200

The filter changes for anonymous user should just affect the machine from which the filter was set. This may prove to be tricky, but this is the expected behavior.

bbryant

bbryant

2008-07-15 13:45

reporter   ~0018551

Any updates?

bbryant

bbryant

2008-07-28 17:25

reporter   ~0018881

ping

vboctor

vboctor

2008-07-28 21:21

manager   ~0018892

Daryn is doing some work on the filters API. You might want to get in touch with him on the IRC channel.

2008-07-29 14:37

 

20080729__mantis8167_filters_saved_in_db.diff (556 bytes)
Index: core/filter_api.php
===================================================================
--- core/filter_api.php	(revision 450)
+++ core/filter_api.php	(working copy)
@@ -2869,7 +2869,7 @@
 					echo lang_get( 'search' );
 				?>:
 				<input type="text" size="16" name="search" value="<?php PRINT string_html_specialchars( $t_filter['search'] ); ?>" />
-
+				<input type="hidden" name ="temporary" value="1" />
 				<input type="submit" name="filter" class="button-small" value="<?php PRINT lang_get( 'filter_button' ) ?>" />
 			</td>
 			</form>
bbryant

bbryant

2008-07-29 14:39

reporter   ~0018913

Attached is a patch for a bug I found when trying to replicate this issue on IRC with daryn. Besides this one small tweak that sets temporary filters correctly so that they aren't stored in the database, this issue is resolved.

atrol

atrol

2014-01-21 16:14

developer   ~0039121

Unassigned after having been assigned for a long time without progress.

cproensa

cproensa

2015-10-22 10:47

developer   ~0051678

This is an attempt to fix
PR: https://github.com/mantisbt/mantisbt/pull/661
Saves filter settings to session instead of DB

The previously commented "temporary" parameter would not fix, since its useful that filters are stored for projects as long as the anonymous user is browsing the site, the same behaviour as a registered user

Needs some more testing but looks like a good compromie to get rid of this annoying issue

Issue History

Date Modified Username Field Change
2007-07-18 19:00 bbryant New Issue
2007-07-24 02:19 vboctor Note Added: 0015200
2007-07-24 02:19 vboctor Status new => acknowledged
2008-07-15 13:45 bbryant Note Added: 0018551
2008-07-28 17:25 bbryant Note Added: 0018881
2008-07-28 21:21 vboctor Note Added: 0018892
2008-07-29 14:37 bbryant File Added: 20080729__mantis8167_filters_saved_in_db.diff
2008-07-29 14:39 bbryant Note Added: 0018913
2008-07-30 09:48 vboctor Status acknowledged => assigned
2008-07-30 09:48 vboctor Assigned To => daryn
2008-07-30 09:48 vboctor Tag Attached: patch
2008-07-30 09:49 vboctor Target Version => 1.2.0
2009-05-04 14:27 siebrand Target Version 1.2.2 => 1.x.x
2014-01-21 16:14 atrol Note Added: 0039121
2014-01-21 16:14 atrol Assigned To daryn =>
2014-01-21 16:14 atrol Status assigned => confirmed
2014-12-08 02:10 atrol Target Version 1.3.0-beta.1 => 1.3.0-beta.2
2015-03-15 19:59 dregad Target Version 1.3.0-beta.2 => 1.3.0-beta.3
2015-09-06 17:47 vboctoradmin Target Version 1.3.0-beta.3 => 1.3.0-rc.1
2015-10-22 10:47 cproensa Note Added: 0051678
2015-10-23 21:20 vboctor Assigned To => community
2015-10-23 21:20 vboctor Status confirmed => assigned
2015-12-06 02:55 vboctor Target Version 1.3.0-rc.1 => 1.3.0-rc.2
2016-01-19 15:24 atrol Assigned To community => cproensa
2016-02-21 07:47 atrol Relationship added has duplicate 0020610
2016-06-12 02:37 atrol Target Version 1.3.0-rc.2 => 1.3.0
2016-07-10 07:57 atroladmin Target Version 1.3.0 => 1.3.1
2016-08-28 10:37 atrol Target Version 1.3.1 => 1.3.2
2016-10-02 19:36 atrol Target Version 1.3.2 => 1.3.3
2016-10-30 23:23 vboctor Target Version 1.3.3 => 1.3.4
2016-11-27 08:22 dregad Target Version 1.3.4 => 1.3.5
2016-12-30 16:24 atrol Target Version 1.3.5 => 1.3.6
2017-02-01 22:47 vboctor Target Version 1.3.6 => 1.3.7
2017-02-26 21:19 vboctor Target Version 1.3.7 => 2.3.0
2017-04-01 00:20 vboctor Target Version 2.3.0 => 2.4.0
2017-04-30 14:53 vboctoradmin Target Version 2.4.0 => 2.5.0
2017-06-04 16:19 atrol Target Version 2.5.0 => 2.6.0
2017-09-03 18:50 vboctor Target Version 2.6.0 => 2.7.0
2017-10-08 23:55 vboctor Target Version 2.7.0 => 2.8.0