Bug 793511 (JBEPP-592)

Summary: Banner and footer portlets - template preference
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Michal Vanco <mvanco>
Component: unspecifiedAssignee: Default User <jbpapp-maint>
Status: CLOSED WONTFIX QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.1.0.ER03CC: epp-bugs, mvecera
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-592
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-11 11:48:42 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
banner_and_footer_preferences.png none

Description Michal Vanco 2010-10-29 12:17:21 UTC
project_key: JBEPP

In classic portal there are banner and footer portlets by default.

If you click edit layout and edit any of these portlets -> it has Preferences tab with Template.
If you change value of template to anything -> nothing happens.

Btw. if I add banner or footer portlet on some page and Edit page + edit portlet, it doesn't have Preferences tab anymore.

Another example:
- Breadcrumbs portlets has two preferences as well, but when I edit this porltet in layout -> there is no Preferences tab.

Comment 1 Michal Vanco 2010-10-29 12:18:25 UTC
Attachment: Added: banner_and_footer_preferences.png


Comment 2 Michal Vanco 2010-10-29 12:25:07 UTC
Sorry, there is one change.

If you change Template value it take effect, but after signing out.

So this should be changed immediately. And what about some validation of Template input? Is it possible so that it could validate template path?

Comment 3 Michal Vanco 2010-10-29 12:38:16 UTC
One more comment:
- if you change value of footer portlet from par:/groovy/groovy/webui/component/UIFooterPortlet.gtmpl to "text in footer"
- it is saved properly, finish Edit Layout
- sign out
Error in log:
08:36:29,140 ERROR [FutureCache] Computing of resource org.exoplatform.resolver.ResourceKey@d2ace7e5 threw an exception
java.lang.NullPointerException: No null input stream accepted
	at org.exoplatform.commons.utils.IOUtil.getStreamContentAsBytes(IOUtil.java:153)
	at org.exoplatform.groovyscript.text.TemplateService$1.retrieve(TemplateService.java:76)
	at org.exoplatform.groovyscript.text.TemplateService$1.retrieve(TemplateService.java:69)
	at org.exoplatform.commons.cache.future.FutureCache$1.call(FutureCache.java:83)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at org.exoplatform.commons.cache.future.FutureCache.get(FutureCache.java:117)
	at org.exoplatform.groovyscript.text.TemplateService.getTemplate(TemplateService.java:154)
...
08:36:29,142 ERROR [portal:Lifecycle] Template: text in footer not found.

Comment 4 Scott Mumford 2010-11-08 09:12:35 UTC
Release Notes Docs Status: Removed: Not Required Added: Documented as Known Issue
Release Notes Text: Added: Editing the Template field of the banner or footer portlet preferences to any non-default value can result in changes not being validated as the portlets, by default, require a groovy template.


Comment 5 Thomas Heute 2010-11-09 08:37:37 UTC
More a feature request rather than a bug, not assigning to any particular release. No need for release note

Comment 6 Thomas Heute 2010-11-09 08:37:37 UTC
Release Notes Docs Status: Removed: Documented as Known Issue Added: Not Required