Re: null pointer protection in DefaultTurbineRunData.setUser()...

2004-04-05 Thread Brian Lawler
The lazy loading-ness of my implementation is simply a re-implementation of getPermissions() and getRoles() that tries the map then goes to the database if not in the map. I would just submit the class outright except that it references the tribe implementations of group, role, and permission.

Re: null pointer protection in DefaultTurbineRunData.setUser()...

2004-04-03 Thread Scott Eade
Brian Lawler wrote: Another issue we ran into was that creating ACLs became heavy, and caching the ACL in your session meant that if your permissions were changed by someone else - a site administrator or tribe moderator - you would not see those changes until the next time you logged in.

RE: null pointer protection in DefaultTurbineRunData.setUser()...

2004-04-02 Thread Eric Pugh
Message- > From: Brian Lawler [mailto:[EMAIL PROTECTED] > Sent: Friday, April 02, 2004 10:37 PM > To: Turbine Developers List > Subject: Re: null pointer protection in > DefaultTurbineRunData.setUser()... > > > The main problem we have had from the start is that I have a framewor

Re: null pointer protection in DefaultTurbineRunData.setUser()...

2004-04-02 Thread Brian Lawler
ented your security? Have you looked at the security module in Fulcrum? New and Improved! -Original Message- From: Brian Lawler [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 7:33 PM To: Turbine Developers List Subject: Re: null pointer protection in DefaultTurbineRunData.setUser().

RE: null pointer protection in DefaultTurbineRunData.setUser()...

2004-04-01 Thread Eric Pugh
> > void clearUser(){ > > setUser(TurbineSecurity.getAnonymousUser()); > > save(); > > } > > > > Eric > > > >> -Original Message- > >> From: Brian Lawler [mailto:[EMAIL PROTECTED] > >> Sent: Thursday, April 01, 20

Re: null pointer protection in DefaultTurbineRunData.setUser()...

2004-04-01 Thread Brian Lawler
ity.getAnonymousUser()); save(); } Eric -Original Message- From: Brian Lawler [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 8:58 AM To: Turbine Developers List Subject: Re: null pointer protection in DefaultTurbineRunData.setUser()... Hmm.. seems like the attachment wa

RE: null pointer protection in DefaultTurbineRunData.setUser()...

2004-04-01 Thread Eric Pugh
ity.getAnonymousUser()); save(); } Eric > -Original Message- > From: Brian Lawler [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 01, 2004 8:58 AM > To: Turbine Developers List > Subject: Re: null pointer protection in > DefaultTurbineRunData.setUser()... > > >

Re: null pointer protection in DefaultTurbineRunData.setUser()...

2004-03-31 Thread Brian Lawler
Hmm.. seems like the attachment wasn't allowed through. Here is the text of the attachment... Index: src/java/org/apache/turbine/services/rundata/DefaultTurbineRunData.java === RCS file: /home/cvspublic/jakarta-turbine-2/src/ja

null pointer protection in DefaultTurbineRunData.setUser()...

2004-03-31 Thread Brian Lawler
committers- Please find attached a trivial patch that will prevent a null pointer exception being thrown when setUser(null) is called. Is this the correct way to submit these patches? -Brian - To unsubscribe, e-mail: [EMAIL