View Issue Details

IDProjectCategoryView StatusLast Update
0015200mantisbtauthenticationpublic2014-09-23 18:05
Reportervboctor Assigned Tovboctor  
PrioritynormalSeveritymajorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.2.12 
Target Version1.2.12Fixed in Version1.2.12 
Summary0015200: Anonymous access is broken
Description

Just discovered this with the demo bug tracker. When visiting the bug tracker while not already logged in, the code detects that the anonymous user has access to a single project. It then attempts to set this on the user preference as the default project. This has two issues:

  • It attempts to change preferences of a protected user, hence, causing an error.
  • It generates SQL updates even if the preference is already set, hence extra load.

We should fix both.

I'm not 100% sure this repros on 1.2.11, but it didn't in the demo instance and the latest code for master-1.2.x which we are basing 1.2.12 on.

TagsNo tags attached.

Relationships

related to 0009826 closeddregad Single project user should default to the project, not All Projects 
related to 0015721 closedgrangeway Functionality to consider porting to master-2.0.x 

Activities

dregad

dregad

2012-11-11 17:31

developer   ~0034291

I'm not 100% sure this repros on 1.2.11

It wouldn't - this was introduced in commit b1a1bbae (see 0009826)

Your commit should be applied to master branch too for consistency.

dregad

dregad

2012-11-11 18:29

developer   ~0034292

Closing after repackaging of the release files

grangeway

grangeway

2013-04-05 17:56

reporter   ~0036143

Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch

Related Changesets

MantisBT: master-1.2.x d67c2572

2012-11-11 12:57

vboctor


Details Diff
Fixes 0015200: Anonymous access is broken. Affected Issues
0015200
mod - core/html_api.php Diff File
mod - core/user_pref_api.php Diff File

MantisBT: master df10efff

2012-11-11 12:57

vboctor

Committer: Damien Regad


Details Diff
Fixes 0015200: Anonymous access is broken. Affected Issues
0015200
mod - core/html_api.php Diff File
mod - core/user_pref_api.php Diff File