using XML access to update access control
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > using XML access to update access control




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    using XML access to update access control  
twgerber


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-24-04 10:57 PM

I have some cloned Portlets I want to set access control on.

I made a copy of the xml from http://publib.boulder.ibm.com/pvc/w....html#updacctrl

and set the name and uid based on my lookup from the portal admin using scre
ens: Portlet - Manage Applications - selecting the WebPage50.war file and cl
icking show info.

Selected web module   Portlet Application Name   Portlets
webpage50.war   com.ibm.wps.portlets.webPage.WebPagePortlet   V_0_CO


Portlet applications belonging to this web module   Portlets
com.ibm.wps.portlets.webPage.WebPagePortlet.1.$cloned.2_0_12D   FNNI Subject
 Web Page

com.ibm.wps.portlets.webPage.WebPagePortlet.1

Here's my XML snippet:

<portal action="locate">

<!-- Set access control on a portlet - the portlet is  not redeployed.
The same syntax can be used to set access control on a new deployed portlet 
-->
<web-app action="locate" uid="com.ibm.wps.portlets.webPage.WebPagePortlet">
<portlet-app action="locate" uid="com.ibm.wps.portlets.webPage.WebPagePortle
t.1.$cloned.2_0_12D">
<access-control>
<!-- The user role should not automatically propagate to portlets in this ap
plication. -->
<role-block type="propagation" actionset="User"/>
</access-control>
<portlet action="update" active="true" name="FNNI Subject Web Page">
<access-control>
<!-- Remove all role blocks on this resource. -->
<role-block type="none"/>
<role actionset="Administrator" update="set">
<mapping subjectid="ws51bind" subjecttype="USER" update="set"/>
</role>
<role actionset="Privileged User" update="set">
<mapping subjectid="all authenticated portal users" subjecttype="USER_GROUP"
update="set"/>
</role>
<role actionset="User" update="set">
<mapping subjectid="anonymous portal user" subjecttype="USER"
update="set"/>
</role>
</access-control>
</portlet>
</portlet-app>
</web-app>

when I run this I get the following error - which doesn't seem to apply to j
ust trying to update the access control.

<?xml version="1.0" encoding="UTF-8"?>
<!-- IBM WebSphere Portal/5.0 build 144 exported on Wed Jun 23 13:04:38 CDT 
2004 from 001prtllnx/172.21.1.24 -->
<!-- 1/9 [web-app uid=com.ibm.wps.portlets.webPage.WebPagePortlet] -->
<!-- 2/9 [portlet-app uid=com.ibm.wps.portlets.webPage.WebPagePortlet.1.
$cloned.2_0_12D] -->
<!-- 3/9 [portlet name=FNNI Subject Web Page] -->
<request type="update" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:noNamespaceSchemaLocation="PortalConfig_1.2.xsd">
<status element="[portlet name=FNNI Subject Web Page]" result="failed">
<message>com.ibm.wps.command.xml.XmlCommandException: XMLC0091E: The servlet
ref attribute is required to create a portlet clone. If you want to deploy a
 WAR file without creating clones, check that the names and IDs in your WAR 
file descriptor mat
ch the names and IDs specified in the XML request. [portlet name=FNNI Su
bject Web Page]</message>
</status>
</request>


What am I missing?  Am I using the wrong uid/name?

THx






[ Post a follow-up to this message ]



    Re: using XML access to update access control  
twgerber


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-24-04 10:57 PM

Here's the XML snippet again with <> changed to --'s.

--?xml version="1.0" encoding="UTF-8"?--
--!-- IBM WebSphere Portal/5.0 build 144 exported on Wed Jun 23 13:04:38 CDT
 2004 from 001prtllnx/172.21.1.24 ----
--!-- 1/9 [web-app uid=com.ibm.wps.portlets.webPage.WebPagePortlet] ----
--!-- 2/9 [portlet-app uid=com.ibm.wps.portlets.webPage.WebPagePortlet.1
.$cloned.2_0_12D] ----
--!-- 3/9 [portlet name=FNNI Subject Web Page] ----
--request type="update" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
" xsi:noNamespaceSchemaLocation="PortalConfig_1.2.xsd"--
--status element="[portlet name=FNNI Subject Web Page]" result="failed"-
-
--message--com.ibm.wps.command.xml.XmlCommandException: XMLC0091E: The servl
etref attribute is required to create a portlet clone. If you want to deploy
 a WAR file without creating clones, check that the names and IDs in your WA
R file descriptor m
atch the names and IDs specified in the XML request. [portlet name=FNNI 
Subject Web Page]--/message--
--/status--
--/request--







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:22 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register