View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0024189 | mantisbt | bugtracker | public | 2018-03-30 03:50 | 2021-01-24 06:28 |
Reporter | TomR | Assigned To | cproensa | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 2.12.0 | ||||
Target Version | 2.22.0 | Fixed in Version | 2.22.0 | ||
Summary | 0024189: Status color squares become black | ||||
Description | Some statusses become 'Black', I saw some issue here before which were closed, however I find this is still actual. In my config_inc.php I have $g_status_enum_string defined with all possible statusses in all projects. ( Added some constants into custom_constants_inc.php ). | ||||
Steps To Reproduce | Change between projects with different statusses. Ctrl-F5 is retrieving status colors. | ||||
Additional Information | I guess it has something to do with 'caching' in css/status_config.php? | ||||
Tags | No tags attached. | ||||
related to | 0020079 | new | Custom status colors not working when displaying issues from another project | |
related to | 0023324 | closed | cproensa | Generated css, js code should be cached by browser |
has duplicate | 0025892 | closed | dregad | Incorrect operation of the helper_generate_cache_key() function. |
has duplicate | 0025934 | closed | atrol | Status icons are black |
related to | 0024563 | closed | atrol | Status button always black |
related to | 0025755 | closed | atrol | Status icons change to black |
related to | 0025969 | closed | cproensa | bug_report_page is forced to be cached |
related to | 0027907 | closed | atrol | Status Colors all Black |
Which version do you use? |
|
Some discussion related to different stats enums in different projects 0023324:0057633 |
|
For the record, I saw a similar behavior (all squares black on `My View" page) on www.mantisbt.org/bugs some days ago. My impression was, that I got it just when using anonymous access. @cproensa do you think we should add |
|
Sorry @atrol: Version 2.12.0 |
|
I don't know. Someone configured this before I started to contribute to Mantis. I have no time to reproduce/fix at the moment
to
fixes the issue? |
|
Hi @atrol, would like to try, but the line 'cache_key=' . helper_generate_cache_key( array( 'user' ) ) is not available in source code css/status_config.php? I checked in freshly downloaded source MantisBT 2.12.0 |
|
Hi @atrol, Sorry for the quick comment. I found out hat to change line 224 of core/html_api.php And YES, this seems to fix the issue! |
|
Sorry, it's in core/html_api.php Edit: Crossed post. |
|
I have experienced that too, after anonymous access, but in my system the status enum is unique for global config, so this may not be the same issue as reported here.
Let's clarify if status enum can be changed per project. |
|
I also noticed a long time ago that sometimes there is a situation with a black status.
After that, all statuses will be displayed as black squares. |
|
It is also possible that this behavior will be reproduced if the user for some reason remains on the login_password_page.php page during the reauthorization process until the page cache lifetime expires. |
|
I created a related issue in which I presented my solution. ( https://mantisbt.org/bugs/view.php?id=25892 ) |
|
MantisBT: master aff0ea90 2019-07-09 05:18 Committer: dregad Details Diff |
Don't cache status_config.php when it's not populated When the dynamic css file `status_config.php` can't be generated, force a no-caching header to avoid the client caching a wrong version of this file. Fixes 0024189 |
Affected Issues 0024189 |
|
mod - css/status_config.php | Diff File | ||
MantisBT: master 97b745dc 2019-07-12 04:39 Committer: dregad Details Diff |
Allow explicit behavior for cache headers Use an explicit true/false value for the parameter to force the caching behavior. Otherwise, use null or omit the parameter to use default behavior. |
Affected Issues 0024189 |
|
mod - core/http_api.php | Diff File | ||
MantisBT: master 98080bb6 2019-07-15 04:27 Details Diff |
Merge PR 1526 https://github.com/mantisbt/mantisbt/pull/1526 |
Affected Issues 0024189 |
|
mod - core/http_api.php | Diff File | ||
mod - css/status_config.php | Diff File | ||
mod - javascript_config.php | Diff File | ||
mod - javascript_translations.php | Diff File | ||
mod - plugin.php | Diff File |