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 Sébastien Pérochon <se...@neuf.fr> on 2006/03/18 22:39:17 UTC

Portlet security constraint

  Hi,

I would like to set security constraint just for a portlet. So I set 
security constraint in the portlet fragment  as told in the manual... 
But it doesn't work => The portlet is always displayed...
If I move the security constraint to the page scope, it is working well 
(for the page of course)...
What's wrong ?

 <fragment id="cpwd-2" type="portlet" 
name="j2-admin::ChangePasswordPortlet">
      <property layout="TwoColumns" name="row" value="0" />
      <property layout="TwoColumns" name="column" value="1" />
      <security-constraints>
    <security-constraints-ref>admin</security-constraints-ref>
      </security-constraints>
    </fragment>

Thanks,
Sebastien.

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


Re: Portlet security constraint

Posted by Sébastien Pérochon <se...@neuf.fr>.
  Hi Randy,

Thanks for your answer.
I'm using 2.0 release... So, I have look into bug database and you were 
right. I have found the related issue: 
http://issues.apache.org/jira/browse/JS2-354
Should be fix in 2.1

Thanks,
Sebastien.

Randy Watler a écrit :
> Sebastien,
>
> I do not see a problem with this at first glance.
>
> What version of J2 are you using? I believe this is fixed in the 2.0.1
> branch and in the 2.1-dev trunk. If you are using the base 2.0 release,
> there may be some issues with this support.
>
> Randy
>
> On Sat, 2006-03-18 at 22:39 +0100, Sébastien Pérochon wrote:
>   
>>   Hi,
>>
>> I would like to set security constraint just for a portlet. So I set 
>> security constraint in the portlet fragment  as told in the manual... 
>> But it doesn't work => The portlet is always displayed...
>> If I move the security constraint to the page scope, it is working well 
>> (for the page of course)...
>> What's wrong ?
>>
>>  <fragment id="cpwd-2" type="portlet" 
>> name="j2-admin::ChangePasswordPortlet">
>>       <property layout="TwoColumns" name="row" value="0" />
>>       <property layout="TwoColumns" name="column" value="1" />
>>       <security-constraints>
>>     <security-constraints-ref>admin</security-constraints-ref>
>>       </security-constraints>
>>     </fragment>
>>
>> Thanks,
>> Sebastien.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>>     
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>   

Re: Portlet security constraint

Posted by Randy Watler <wa...@wispertel.net>.
Sebastien,

I do not see a problem with this at first glance.

What version of J2 are you using? I believe this is fixed in the 2.0.1
branch and in the 2.1-dev trunk. If you are using the base 2.0 release,
there may be some issues with this support.

Randy

On Sat, 2006-03-18 at 22:39 +0100, Sébastien Pérochon wrote:
>   Hi,
> 
> I would like to set security constraint just for a portlet. So I set 
> security constraint in the portlet fragment  as told in the manual... 
> But it doesn't work => The portlet is always displayed...
> If I move the security constraint to the page scope, it is working well 
> (for the page of course)...
> What's wrong ?
> 
>  <fragment id="cpwd-2" type="portlet" 
> name="j2-admin::ChangePasswordPortlet">
>       <property layout="TwoColumns" name="row" value="0" />
>       <property layout="TwoColumns" name="column" value="1" />
>       <security-constraints>
>     <security-constraints-ref>admin</security-constraints-ref>
>       </security-constraints>
>     </fragment>
> 
> Thanks,
> Sebastien.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> 
> 


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