| Author |
Portal 5.1 Site Map on Anonymous Page
|
|
| Pinar Ugurlu 2005-06-15, 7:49 am |
| Hi all;
My specific question is about the portlet site map.
Portal Site Maps provided in portlet catalog / written by several
developers do not function correctly in anonymous pages. I suppose the
problem appears with the restriction of the Portal Object Model API in
anonymous pages.
Portlet gives the following exception in the wps logs
Caused by: java.lang.IllegalArgumentException: Using global scope (no
user) and ISOLATED isolation mode - not allowed.
at
com.ibm.wps.model.factory.PortalModelFactory.getUserID(PortalModelFactory.java:1269)
at
com.ibm.wps.model.factory.PortalModelFactory.getRuntimeTreeModel(PortalModelFactory.java:1145)
at com.ibm.wps.model.ModelUtil.getTreeModel(ModelUtil.java(Compiled Code))
at com.ibm.wps.model.ModelUtil.getNavigationModel(ModelUtil.java:521)
at sitemap.SiteMapPortlet.getMap(SiteMapPortlet.java:146)
at sitemap.SiteMapPortlet.doView(SiteMapPortlet.java:38)
Is there any other API / implementation to make this site map available
for anonymous pages?
I think this is an acceptable request but Object Model API does not
support this.
| |
|
| I am running into the same problem..Have you figured out a solution to it yet (or an alternate approach).
Thanks in advance.
| |
| Sergey Popov 2005-11-10, 7:51 am |
| Hello,
I've fixed the SiteMap Portlet bug with the Anonymous user.
Problem:
--------
SiteMap Portlet is unavaiable for anonymous user. Portal log:
Caused by: java.lang.IllegalArgumentException: Using global scope (no
user) and ISOLATED isolation mode - not allowed.
Cause:
------
IBM didn't test the portlet with anonymous user 
When requesting the page structure using Portal Model API and user may
be anonymous, they need to set "Isolation mode" to "Live":
util.setIsolationMode(com.ibm.wps.model.factory.IsolationMode.LIVE);
Solution:
---------
1. Decompile portlet classes with JAD utility
2. Fix the bug:
ModelUtil util = ModelUtil.from(request);
// Fix begins
util.setIsolationMode(com.ibm.wps.model.factory.IsolationMode.LIVE);
// Fix ends
NavigationModel model = util.getNavigationModel();
3. Compile the classes
4. Replace the classes in the WAR-file
Download fixed version:
-----------------------
http://websphere.novsu.ac.ru/portle...rtlet_fixed.war
With best wishes,
Sergey Popov,
svp@novsu.ac.ru
| |
|
|
|
| I have the same problem
Thank you very much for fixing bug
zeazah
|
|
|
|