As always, I really appreciate the quick turnaround on bug fixing and support. I truly enjoy the community surrounding this product.
On Fri, Feb 13, 2009 at 3:28 PM, Paul Bonfanti <[email protected]> wrote: > I entered this bug into the New Atlanta bug database as bug #3177. I just > committed a fix for it into OpenBD. You should be able to test it out > sometime after tomorrow using the nightly build. > > > > Paul > > > > *From:* [email protected] [mailto:[email protected]] *On > Behalf Of *Anthony Hixon, Jr. > *Sent:* Friday, February 13, 2009 11:51 AM > *To:* [email protected] > *Subject:* [OpenBD] Re: cflogout Question > > > > And it worked perfectly by the way! Thank you. > > > > So it looks like StructUpdate in OpenBD doesn't like what I was doing in > CF8? > > On Fri, Feb 13, 2009 at 8:39 AM, Paul Bonfanti <[email protected]> > wrote: > > I should have mentioned that I plan on investigating this further. I just > wanted to give you a workaround in the meantime. > > > > Paul > > > > *From:* [email protected] [mailto:[email protected]] *On > Behalf Of *Anthony Hixon, Jr. > *Sent:* Thursday, February 12, 2009 9:04 PM > > > *To:* [email protected] > *Subject:* [OpenBD] Re: cflogout Question > > > > Ok. I'll try it like that tomorrow. > > > > StructDelete was working on my previous server. In fact, the original code > I posted was working code from a CF8 server that I'm migrating from. I > should've thought about cfcookie to set them again. Hopefully that will > work. > > On Thu, Feb 12, 2009 at 5:28 PM, Paul Bonfanti <[email protected]> > wrote: > > Try this: > > > > <cfif IsDefined("url.logout") AND url.logout EQ true> > <cflogout> > > <cfscript> > IF (IsDefined("cookie.loginMessage")) { > StructDelete(cookie, "loginMessage"); > } > > </cfscript> > <cfif (IsDefined("cookie.admin")> > > <cfcookie name="admin" value="false"> > > </cfif> > <cfif (IsDefined("cookie.username")> > > <cfcookie name="username" value="#GetAuthUser()#"> > > </cfif> > > </cfif> > > I'm not sure if StructDelete will remove the "loginMessage" from the > browser though. If not then you'll need to do this: > > > > <cfif (IsDefined("cookie.loginMessage")> > > <cfcookie name="loginMessage" value="" expires="now"> > > </cfif> > > > > Paul > > > > *From:* [email protected] [mailto:[email protected]] *On > Behalf Of *Anthony Hixon, Jr. > *Sent:* Thursday, February 12, 2009 4:36 PM > *To:* [email protected] > *Subject:* [OpenBD] Re: cflogout Question > > > > Sorry I'm just getting around to responding Paul. I did comment out the > cfscript lines and the error shows up whenever I try any of them. It only > works when use cflogout only. > > > > So, I changed my IsDefined to StructKeyExists, but that produces the same > error. It seems related to the cookie struct and the error seems to be > saying it cannot cast the boolean response of my if statement to the cookie > struct type (just guessing here)? > > > > Any thoughts? > > On Thu, Feb 5, 2009 at 10:01 AM, Paul Bonfanti <[email protected]> > wrote: > > Could you try commenting out sections of that code to determine which line > of code is causing the problem? I'm guessing it's not the cflogout causing > the problem but the StructDelete or one of the StructUpdate calls. > > > > *From:* [email protected] [mailto:[email protected]] *On > Behalf Of *Anthony Hixon, Jr. > *Sent:* Wednesday, February 04, 2009 9:25 AM > *To:* openbd > *Subject:* [OpenBD] cflogout Question > > > > I'm one step away from having one my apps migrated to OpenBD and I'm having > an issue with cflogout. > > When I click "logout" in my application, this URL is called: > http://webprod/policies/index.cfm?logout=true (It's obviously internal) > > Which calls the cflogout tag in my onRequest Start method: > > <cfif IsDefined("url.logout") AND url.logout EQ true> > <cflogout> > <cfscript> > IF (IsDefined("cookie.loginMessage")) { > StructDelete(cookie, "loginMessage"); > } > IF (IsDefined("cookie.admin")) { > StructUpdate(cookie, "admin", false); > } > IF (IsDefined("cookie.username")) { > StructUpdate(cookie, "username", GetAuthUser()); > } > </cfscript> > </cfif> > > And I get this output: > HTTP ERROR: 500 > > com.naryx.tagfusion.cfm.engine.cfBooleanData cannot be cast to > com.naryx.tagfusion.cfm.cookie.cfCookieData$cookieWrapper > > > > I'm hoping this is just some syntactical error on my part that Adobe let > slide and OpenBD does not. > > Thoughts? > > -- > Anthony Hixon, Jr. > Certified Advanced ColdFusion MX 7 Developer > Mobile: (706) 639-3617 > [email protected] > > > Mobile: (706) 639-3617 > [email protected] > > > Mobile: (706) 639-3617 > [email protected] > > > Mobile: (706) 639-3617 > [email protected] > > > > > > > > -- Anthony Hixon, Jr. Certified Advanced ColdFusion MX 7 Developer Mobile: (706) 639-3617 [email protected] --~--~---------~--~----~------------~-------~--~----~ Open BlueDragon Public Mailing List http://groups.google.com/group/openbd?hl=en official site @ http://www.openbluedragon.org/ !! save a network - trim replies before posting !! -~----------~----~----~----~------~----~------~--~---
