View Issue Details

IDProjectCategoryView StatusLast Update
0008167mantisbtfilterspublic2018-03-31 19:58
Reporterbbryant Assigned Tocproensa  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.7 
Target Version2.13.0Fixed in Version2.13.0 
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
Attached Files
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>

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.

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

Related Changesets

MantisBT: master 7c4880b3

2017-04-13 09:27

cproensa

Committer: atrol


Details Diff
Force temporary filters for anonymous user

If user is anonymous, every change made to the filter creates a
temporary filter. This way the differents users that may be logged in as
anonymous don't share the filter settings.

Fixes: 0008167
Affected Issues
0008167
mod - view_all_set.php Diff File