| Summary: | Javascript not working with exo.product.developing=false | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Portal Platform 5 | Reporter: | Martin Weiler <mweiler> | ||||
| Component: | Portal | Assignee: | hfnukal <hfnukal> | ||||
| Status: | CLOSED NEXTRELEASE | QA Contact: | |||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 5.1.0.GA | CC: | epp-bugs, theute | ||||
| Target Milestone: | --- | ||||||
| Target Release: | 5.2.0.DEV02 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| URL: | http://jira.jboss.org/jira/browse/JBEPP-763 | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2011-08-09 23:35:02 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Martin Weiler
2010-12-21 08:55:10 UTC
Link: Added: This issue is a dependency of GTNPORTAL-1182 Attachment: Added: emoticons.js For a fix we would need a new Javascript compressor such as Google Closure, it requires significant changes and proper testing which would be more appropriate for a minor (5.2) release.
As a workaround it is possible to desactivate the Javascript compressor without falling back to development mode.
To do so:
1) Edit: gatein.ear/02portal.war/WEB-INF/conf/common/resource-compressor-configuration.xml and remove the following section:
<component-plugin>
<name>JSMinCompressorPlugin</name>
<set-method>registerCompressorPlugin</set-method>
<type>org.exoplatform.portal.resource.compressor.impl.JSMinCompressorPlugin</type>
<init-params>
<value-param>
<name>plugin.priority</name>
<value>1</value>
</value-param>
</init-params>
</component-plugin>
2) Delete the server/default/tmp directory
Note: on first load there will be WARNs in the log such as:
20:50:39,635 WARN [JavascriptConfigService] Error when generating minified javascript, will use normal javascript instead
org.exoplatform.portal.resource.compressor.ResourceCompressorException: There is no compressor for JAVASCRIPT type
Those can be ignored.
Link: Added: This issue relates to JBEPP-884 We should try with Google closure, See GTNPORTAL-198 Already included from 5.1 branch There was a workaround in 5.1, this requires the solution to use an alternative Javascript compressing tool like Google closure. See https://issues.jboss.org/browse/GTNPORTAL-198 Link: Added: This issue relates to GTNPORTAL-198 Release Notes Docs Status: Added: Not Yet Documented Release Notes Docs Status: Removed: Not Yet Documented Added: Needs More Info Release Notes Text: Added: CAUSE: CONSEQUENCE: FIX: RESULT: Primary SME: Added: hfnukal NEEDINFO Due Date: Added: 30/Nov/11 NEEDINFO: Added: Subject Matter Expert Release Notes Docs Status: Removed: Needs More Info Added: Not Yet Documented Release Notes Text: Removed: CAUSE: CONSEQUENCE: FIX: RESULT: Added: CAUSE: EPP ships with a resource compressor (CSS and Javascript) CONSEQUENCE: Some javascript files were incorrectly compressed and would break unless the developer mode was enabled which has performance side effects FIX: The Javascript compressing engine has been replaced, and it's also possible to turn it off. RESULT: The Javascript should always be able to work. Release Notes Docs Status: Removed: Not Yet Documented Added: Documented as Resolved Issue Release Notes Text: Removed: CAUSE: EPP ships with a resource compressor (CSS and Javascript) CONSEQUENCE: Some javascript files were incorrectly compressed and would break unless the developer mode was enabled which has performance side effects FIX: The Javascript compressing engine has been replaced, and it's also possible to turn it off. RESULT: The Javascript should always be able to work. Added: The platform ships with a resource compressor (CSS and Javascript). Some javascript files were incorrectly compressed and would break unless the developer mode was enabled. Enabling the developer mode introduced performance side-effects. The Javascript compression engine has been replaced, and can be turned off if required, which fixes the issue. NEEDINFO Due Date: Removed: 30/Nov/11 NEEDINFO: Removed: Subject Matter Expert Added: Nobody |