WebSphere Portal Server - Portal 5.1 Site Map on Anonymous Page

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > March 2006 > Portal 5.1 Site Map on Anonymous Page





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

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.

2005-07-13, 6:03 pm

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







Sergey Popov

2005-11-10, 7:51 am

Sorry, the fix URL is
http://websphere.novsu.ac.ru/portle...rtlet_fixed.zip

(our server does not recognize .war extension as archive file )


2006-03-13, 2:48 am

I have the same problem

Thank you very much for fixing bug

zeazah
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com