View Issue Details

IDProjectCategoryView StatusLast Update
0021068mantisbtbugtrackerpublic2016-06-12 00:53
Reportervboctor Assigned Todregad  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.2.20 
Summary0021068: Intermittent "error 2300 token not found"
Description

There is an intermittent error that I don't have repro steps for where users get "error 2300: token not found" error when taking an action, e.g. manage or others. Users who get this error often get out of it and don't necessarily get it again. So it can be a state that gets fixed.

Also this error started happening recently, so I'm suspecting checking fd47e9c8cb4d41e0d9ce9785c8b3d79b905fdd46 and issue 0020824 by @dregard.

Didn't set the version since this happens on master, but wasn't part of 1.3.0-rc.1.

TagsNo tags attached.

Relationships

related to 0020824 closeddregad collapse_cache_token() always update token ID # 5 

Activities

dregad

dregad

2016-06-11 20:14

developer   ~0053322

This was indeed a regression introduced by 0020824.

In some rare cases, collapse_cache_token() would attempt to touch a token that does not exist. This can happen when the current user does not have any TOKEN_COLLAPSE token, and the MANTIS_collapse_cookie contains a non-empty value that does not form a valid, colon-delimited pair.

vboctor

vboctor

2016-06-12 00:53

manager   ~0053324

Removed the fixed in version and target version since this was introduced between versions and hence shouldn't show up in changelog.

Thanks for the fix.

Related Changesets

MantisBT: master bd5a685f

2016-06-11 15:19

dregad


Details Diff
Fix intermittent "error 2300 token not found"

In some rare cases, collapse_cache_token() would attempt to touch a
token that does not exist. This can happen when the current user does
not have any TOKEN_COLLAPSE token, and the MANTIS_collapse_cookie
contains a non-empty value that does not form a valid, colon-delimited
pair.

The issue has been addressed by adding a token_exists() check prior to
calling token_touch().

Fixes 0021068
Affected Issues
0021068
mod - core/collapse_api.php Diff File

MantisBT: master-1.2.x 6fec95fd

2016-06-11 15:19

dregad


Details Diff
Fix intermittent "error 2300 token not found"

In some rare cases, collapse_cache_token() would attempt to touch a
token that does not exist. This can happen when the current user does
not have any TOKEN_COLLAPSE token, and the MANTIS_collapse_cookie
contains a non-empty value that does not form a valid, colon-delimited
pair.

The issue has been addressed by adding a token_exists() check prior to
calling token_touch().

Fixes 0021068
Affected Issues
0021068
mod - core/collapse_api.php Diff File