You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Stijn de Witt <St...@bergland-it.nl> on 2004/06/07 16:49:45 UTC

PSML reference from role/manager back to user/anon, how?

Hi,

I am trying to setup role-based security. I have setup the
webapp/WEB-INF/psml directory so it looks like this (thanks to some help
from this group):

webapp/WEB-INF/psml
 |-- role
 |    |-- admin
 |    |     \-- html
 |    |           \-- default.psml
 |    |-- guest
 |    |     \-- html
 |    |           \-- default.psml
 |    |-- manager
 |    |     \-- html
 |    |           \-- default.psml
 |    \-- user
 |          \-- html
 |                \-- default.psml
 \-- user
     |
     \--anon
          \-- html
                \-- default.psml

The user/anon page contains the PSML for the default site and displays fine.
For people who have rights to manage the site, but don't have admin rights,
I have created a manager role. The manager role has a permission manage,
that our portlets will check for to give extra options etc. The site should
look almost the same for managers as for anon visitors, except for the extra
options mentioned. Therefore I thought I should try to make a reference from
the role/manager page, back to the user/anon page, as described in the
jetspeed tutorial, here:
http://portals.apache.org/jetspeed-1/tutorial/3/references.html

I can't get it to work, however. The page just shows up blank.
Here is my role/manager page:

<?xml version="1.0" encoding="iso-8859-1"?>
<portlets id="100">
 <reference id="P-ed09142736-10018" path="user/anon/page/default"/>
</portlets>

And here is the logging jetspeed generates when I log in as user sakia with
role manager:

2004-06-07 16:42:08,234 [PoolThread-8] DEBUG BaseClientRegistry -
ClientRegistry: Looking for client with useragent :Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.0; Crazy Browser 1.0.5; .NET CLR 1.1.4322)
2004-06-07 16:42:08,234 [PoolThread-8] DEBUG BaseClientRegistry -
ClientRegistry: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Crazy
Browser 1.0.5; .NET CLR 1.1.4322) does not match .*MSIE 5.*
2004-06-07 16:42:08,234 [PoolThread-8] DEBUG BaseClientRegistry -
ClientRegistry: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Crazy
Browser 1.0.5; .NET CLR 1.1.4322) matches .*Mozilla/4.*
2004-06-07 16:42:08,234 [PoolThread-8] DEBUG CapabilityMapFactory -
CapabilityMap: User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.0; Crazy Browser 1.0.5; .NET CLR 1.1.4322) mapped to
ns4text/html-HTML_3_2/HTML_JAVA/HTML_JAVASCRIPT/HTML_TABLE/HTML_FORM/HTML_FR
AME/HTML_IMAGE/HTML_CSS1/HTML_LAYER/HTML_PLUGIN/HTML_DOM_NS4/HTTP_COOKIE/
2004-06-07 16:42:08,265 [PoolThread-8] DEBUG BaseClientRegistry -
ClientRegistry: Looking for client with useragent :Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.0; Crazy Browser 1.0.5; .NET CLR 1.1.4322)
2004-06-07 16:42:08,265 [PoolThread-8] DEBUG BaseClientRegistry -
ClientRegistry: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Crazy
Browser 1.0.5; .NET CLR 1.1.4322) does not match .*MSIE 5.*
2004-06-07 16:42:08,265 [PoolThread-8] DEBUG BaseClientRegistry -
ClientRegistry: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Crazy
Browser 1.0.5; .NET CLR 1.1.4322) matches .*Mozilla/4.*
2004-06-07 16:42:08,265 [PoolThread-8] DEBUG CapabilityMapFactory -
CapabilityMap: User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.0; Crazy Browser 1.0.5; .NET CLR 1.1.4322) mapped to
ns4text/html-HTML_3_2/HTML_JAVA/HTML_JAVASCRIPT/HTML_TABLE/HTML_FORM/HTML_FR
AME/HTML_IMAGE/HTML_CSS1/HTML_LAYER/HTML_PLUGIN/HTML_DOM_NS4/HTTP_COOKIE/
2004-06-07 16:42:08,281 [PoolThread-8] DEBUG JetspeedTemplatePage -
JetspeedTemplatePage: Setting type to: text/html; charset=iso-8859-1
2004-06-07 16:42:08,281 [PoolThread-8] DEBUG JetspeedTemplatePage -
JetspeedTemplatePage: requested template = Home.vm
2004-06-07 16:42:08,296 [PoolThread-8] DEBUG JetspeedTemplatePage -
JetspeedTemplatePage: calculated template = /html/Home.vm
2004-06-07 16:42:08,312 [PoolThread-8] DEBUG JetspeedTemplatePage -
JetspeedTemplatePage: layoutTemplate is finally /html/default.vm
2004-06-07 16:42:08,453 [PoolThread-8] DEBUG ParameterLoader -
ParameterLoader: Loaded parameter: MyPagesListBox,
prm=org.apache.jetspeed.modules.parameters.MyPagesListBox@f2ff9b
2004-06-07 16:42:08,500 [PoolThread-8] DEBUG BasePortletSet - User "Saskia"
is authorized to portlet set 100
2004-06-07 16:42:08,500 [PoolThread-8] DEBUG MultiColumnControllerAction -
Controller calculated setSize 1 row 1 colNum: 1 rowNum: 1
2004-06-07 16:42:08,500 [PoolThread-8] DEBUG MultiColumnControllerAction -
Column 0
2004-06-07 16:42:08,500 [PoolThread-8] DEBUG MultiColumnControllerAction -
Row 0 object: org.apache.jetspeed.portal.BasePortletSet@13e86ec
2004-06-07 16:42:08,515 [PoolThread-8] DEBUG BasePortletSet - User "Saskia"
is authorized to portlet set P-ed09142736-10018
2004-06-07 16:42:08,515 [PoolThread-8] DEBUG MultiColumnControllerAction -
Controller calculated setSize 0 row 0 colNum: 1 rowNum: 0
2004-06-07 16:42:08,515 [PoolThread-8] DEBUG MultiColumnControllerAction -
Column 0

I have the feeling I am missing something big here.
Thanks for any help,
-Stijn



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org