You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Sven Homburg <Sv...@hsofttec.com> on 2002/09/05 01:00:08 UTC

Re[4]: data.getACL() returns NULL

turbine repository HEAD (2.2b3)


RS> What version of Turbine are you using?


RS> On Wed, 4 Sep 2002 07:52, you wrote:

>> Hi Rodney,
>>
>> RS> This probably means that the user has not logged in yet.  Only logged
>> in RS> users have an access control list associated with them.  See
>>
>> thats clear
>>
>> RS> org.apache.turbine.modules.actions.AccessController action which is set
>> in RS> the "action.accesscontroller" property of
>> TurbineResources.properties.
>>
>> i traced the class
>> org.apache.turbine.modules.actions.AccessController.
>> the original code from the repository is:
>>
>>         if ( data.getUser() != null
>>         // some out-commented stuff
>>         && data.getUser().hasLoggedIn() )
>>         {
>>
>> the program never steps into this if-statement
>> if i change the code to:
>>
>>       User user = data.getUser();
>>
>>         if ( user != null && user.hasLoggedIn() )
>>         {
>>
>> the program do jump into the if-statement
>> dont ask me why, but thats fact
>>
>> >> Hi there,
>> >>
>> >> if i call the getACL() from the RunData-Object
>> >> its returns null every time.
>> >>
>> >> a bug or my error, any hints ?
>>
>> Best regards
>> homburg Softwaretechnik
>> Sven Homburg
>> D-21220 Seevetal
>>
>> http://www.hsofttec.com

RS> --
RS> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
RS> For additional commands, e-mail: <ma...@jakarta.apache.org>



Best regards
homburg Softwaretechnik
Sven Homburg
D-21220 Seevetal

http://www.hsofttec.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Re[4]: data.getACL() returns NULL

Posted by Rodney Schneider <ro...@actf.com.au>.
Hi Sven,

It seems things must be currently broken...  if you have a look at the recent 
changes to this file...

http://cvs.apache.org/viewcvs/jakarta-turbine-2/src/java/org/apache/turbine/modules/actions/AccessController.java

... it seems that the changes henning made on August 14 may have broken 
AccessController.java somehow.  Try reverting to revision 1.1.1.1 of this 
file and see if it works.  If this solves the problem, please send a patch to 
the turbine-dev mailing list.  If it doesn't solve the problem, it may have 
something to do with all the complaints other users have been making 
regarding the Turbine 2.2b3 user/security implementation.

Regards,

-- Rodney


On Thu, 5 Sep 2002 09:00, you wrote:
> turbine repository HEAD (2.2b3)
>
>
> RS> What version of Turbine are you using?
>
> RS> On Wed, 4 Sep 2002 07:52, you wrote:
> >> Hi Rodney,
> >>
> >> RS> This probably means that the user has not logged in yet.  Only
> >> logged in RS> users have an access control list associated with them. 
> >> See
> >>
> >> thats clear
> >>
> >> RS> org.apache.turbine.modules.actions.AccessController action which is
> >> set in RS> the "action.accesscontroller" property of
> >> TurbineResources.properties.
> >>
> >> i traced the class
> >> org.apache.turbine.modules.actions.AccessController.
> >> the original code from the repository is:
> >>
> >>         if ( data.getUser() != null
> >>         // some out-commented stuff
> >>         && data.getUser().hasLoggedIn() )
> >>         {
> >>
> >> the program never steps into this if-statement
> >> if i change the code to:
> >>
> >>       User user = data.getUser();
> >>
> >>         if ( user != null && user.hasLoggedIn() )
> >>         {
> >>
> >> the program do jump into the if-statement
> >> dont ask me why, but thats fact
> >>
> >> >> Hi there,
> >> >>
> >> >> if i call the getACL() from the RunData-Object
> >> >> its returns null every time.
> >> >>
> >> >> a bug or my error, any hints ?
> >>
> >> Best regards
> >> homburg Softwaretechnik
> >> Sven Homburg
> >> D-21220 Seevetal
> >>
> >> http://www.hsofttec.com
>
> RS> --
> RS> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org> RS> For additional
> commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
> Best regards
> homburg Softwaretechnik
> Sven Homburg
> D-21220 Seevetal
>
> http://www.hsofttec.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>