[JBoss JIRA] Created: (GTNPORTAL-1628) Comment in UIPortalApplication.gtmpl is rendered in HTML response
by Marek Posolda (JIRA)
Comment in UIPortalApplication.gtmpl is rendered in HTML response
-----------------------------------------------------------------
Key: GTNPORTAL-1628
URL: https://jira.jboss.org/browse/GTNPORTAL-1628
Project: GateIn Portal
Issue Type: Task
Security Level: Public (Everyone can see)
Affects Versions: 3.1.0-GA
Environment: EPP 5.1 ER3
Reporter: Marek Posolda
Priority: Minor
When sending request to portal, I am seeing this at the beginning of HTML response:
<script type="text/javascript">
// This variable must be used only to initialize other variables otherwise
// please use eXo.env.portal.context or eXo.env.portal.context instead
// Those 2 last variables cannot be used to initialize variables because
// we cannot be sure that they will be initialized before initializing your script
var currentContext = '/portal' ;
</script>
I wonder if it's possible to enclose the comment in groovy template within <% %> so that it won't be rendered in HTML? It can save us around 300 characters in each non-ajax HTML response.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 1 month
[JBoss JIRA] Created: (GTNPORTAL-784) Exception at startup in the log file
by Chris Laprun (JIRA)
Exception at startup in the log file
------------------------------------
Key: GTNPORTAL-784
URL: https://jira.jboss.org/jira/browse/GTNPORTAL-784
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Identity integration
Affects Versions: 3.0.0-CR01
Reporter: Chris Laprun
Assignee: Chris Laprun
Fix For: 3.0.0-GA
2010-03-02 13:59:25,268 DEBUG [org.exoplatform.portal.config.NewPortalConfigListener] Attempt to load file war:/conf/portal/group/template/group/pages.xml
2010-03-02 13:59:25,269 DEBUG [org.exoplatform.portal.config.NewPortalConfigListener] Could not get file war:/conf/portal/group/template/group/pages.xml will return null instead
java.io.IOException: Resource (war:/conf/portal/group/template/group/pages.xml) could not be found or the invoker doesn't have adequate privileges to get the resource
at org.exoplatform.container.configuration.ConfigurationManagerImpl.getInputStream(ConfigurationManagerImpl.java:274)
at org.exoplatform.portal.config.NewPortalConfigListener.getDefaultConfig(NewPortalConfigListener.java:482)
at org.exoplatform.portal.config.NewPortalConfigListener.getConfig(NewPortalConfigListener.java:440)
at org.exoplatform.portal.config.NewPortalConfigListener.createPage(NewPortalConfigListener.java:364)
at org.exoplatform.portal.config.UserPortalConfigService.createUserPortalConfig(UserPortalConfigService.java:310)
at org.exoplatform.portal.config.UserPortalConfigService.createGroupSite(UserPortalConfigService.java:276)
at org.exoplatform.portal.config.GroupPortalConfigListener.preSave(GroupPortalConfigListener.java:145)
at org.exoplatform.services.organization.idm.GroupDAOImpl.preSave(GroupDAOImpl.java:482)
at org.exoplatform.services.organization.idm.GroupDAOImpl.addChild(GroupDAOImpl.java:110)
at org.exoplatform.services.organization.OrganizationDatabaseInitializer.createGroups(OrganizationDatabaseInitializer.java:114)
at org.exoplatform.services.organization.OrganizationDatabaseInitializer.init(OrganizationDatabaseInitializer.java:73)
at org.exoplatform.services.organization.BaseOrganizationService.start(BaseOrganizationService.java:76)
at org.exoplatform.services.organization.idm.PicketLinkIDMOrganizationServiceImpl.start(PicketLinkIDMOrganizationServiceImpl.java:100)
Similar exceptions also happen for other resources:
2010-03-02 13:59:25,267 DEBUG [org.exoplatform.portal.config.NewPortalConfigListener] Could not get file war:/conf/portal/group//organization/communication/pages.xml will return null instead
java.io.IOException: Resource (war:/conf/portal/group//organization/communication/pages.xml) could not be found or the invoker doesn't have adequate privileges to get the resource
010-03-02 13:59:25,270 DEBUG [org.exoplatform.portal.config.NewPortalConfigListener] Could not get file war:/conf/portal/group//organization/communication/navigation.xml will return null instead
java.io.IOException: Resource (war:/conf/portal/group//organization/communication/navigation.xml) could not be found or the invoker doesn't have adequate privileges to get the resource
2010-03-02 13:59:25,271 DEBUG [org.exoplatform.portal.config.NewPortalConfigListener] Could not get file war:/conf/portal/group/template/group/navigation.xml will return null instead
java.io.IOException: Resource (war:/conf/portal/group/template/group/navigation.xml) could not be found or the invoker doesn't have adequate privileges to get the resource
...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 1 month
[JBoss JIRA] Created: (GTNPORTAL-944) Improve Error Management in Skin Service
by Tugdual Grall (JIRA)
Improve Error Management in Skin Service
----------------------------------------
Key: GTNPORTAL-944
URL: https://jira.jboss.org/jira/browse/GTNPORTAL-944
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: User Interface, WebUI
Affects Versions: 3.0.0-GA
Reporter: Tugdual Grall
When creating new Skin the developer/web designer has multiple place files to modify to set the correct name/uri of the skin
- web.xml should contains the name
- Stylesheet.css should do a reference to the correct webapp root
- ...
When one of this name is not corect, the system is not working and some error are raised.
For example a NPE is raised when the main CSS is not corrected configure, this occurs when the
skin-web-app/skin/StyleSheet.css does not contais the correct URI
@import url(<INVALIDURI>/UIPortalApplicationSkin.css);
Trace:
SEVERE: Could not render css /gatein-training-skin/skin/Stylesheet-lt.css
java.lang.NullPointerException
at org.exoplatform.portal.resource.SkinService.processCSSRecursively(SkinService.java:437)
at org.exoplatform.portal.resource.SkinService.processCSS(SkinService.java:429)
at org.exoplatform.portal.resource.SkinService.renderCSS(SkinService.java:341)
at org.exoplatform.portal.application.ResourceRequestFilter.doFilter(ResourceRequestFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:637)
We should put proper message in the log file with the place where the configuration is not correct.
for example:
- Invalid <CSS FILE> configuration, Skin service cannot load the skin "TrainingSkin/UIPortalApplicationSkin.css"
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 1 month