Viewing Issue Simple Details
[ Jump to Notes ]
[ Wiki ]
|
[ View Advanced ]
[ Issue History ]
[ Print ]
|
ID |
Category |
Type |
Reproducibility |
Date Submitted |
Last Update |
0001255 |
[In-Portal CMS] Front End |
bug report |
always |
2012-04-06 14:22 |
2012-07-25 05:31 |
|
Reporter |
alex |
View Status |
public |
Project Name |
In-Portal CMS |
Assigned To |
!COMMUNITY |
Developer |
|
Priority |
normal |
Resolution |
fixed |
Fixed in Version |
5.2.0-B3 |
Status |
closed |
Product Version |
5.1.3 |
Target Version |
5.2.0 |
Time Estimate | No estimate | |
|
Summary |
0001255: Mod-rewrite url caching problem |
Description |
In-Portal parses each url on a front-end (when mod-rewrite is enabled) into a set of variables and stores them into cache.
However, when In-Portal encounters and url without theme/language specified (e.g. /english.html or /advanced.html) it:
* produces a warning, that m_lang or m_theme variable is undefined
* parsed url is cached without language/theme id specified resulting such cache not reset automatically on language/theme data change. |
Additional Information |
|
Tags |
No tags attached. |
|
Reference |
https://groups.google.com/d/topic/in-portal-bugs/ggq3MOGYips/discussion |
Change Log Message |
Fixes warning and indefinitely cached parsed mod-rewrite url |
Estimate Points |
1 |
|
Attached Files |
warning_on_rewrite_url_caching_fix_513.patch [^] (865 bytes) 2012-04-06 14:22
[Show Content]
Index: mod_rewrite_helper.php
===================================================================
--- mod_rewrite_helper.php (revision 15158)
+++ mod_rewrite_helper.php (working copy)
@@ -79,8 +79,18 @@
// domain based primary language
$this->primaryLanguageId = $this->Application->siteDomainField('PrimaryLanguageId');
+ if (!$this->primaryLanguageId) {
+ // when domain-based language not found -> use site-wide language
+ $this->primaryLanguageId = $this->Application->GetDefaultLanguageId();
+ }
+
// domain based primary theme
$this->primaryThemeId = $this->Application->siteDomainField('PrimaryThemeId');
+
+ if (!$this->primaryThemeId) {
+ // when domain-based theme not found -> use site-wide theme
+ $this->primaryThemeId = $this->Application->GetDefaultThemeId(true);
+ }
}
function processRewriteURL()
|
|