That code should work if it's in the index.cfm. It may be that you've found
a ColdFusion (or Railo?) bug. If isvalid("uuid",someinvaliduuid) isn't
returning false, that's a problem. You work around it with regex:
refindnocase("^[\d\w]{8}-[\d\w]{4}-[\d\w]{4}-[\d\w]{16}$",url.gebruikerid)On Fri, Sep 10, 2010 at 9:57 AM, Marco van den Oever < [email protected]> wrote: > For instance i am using a gebruikerid value of: > > 43DB914F-0B83-43BF-ABE313C9B6B8B291 > > Which states no user exists for that id, that's correct and all good > so far. > > Then when i change it to: > > 43DB914Fg-0B83-43BF-ABE313C9B6B8B291 > > So added a "g" after first block, i get an error: > > invalid call of the function getData (C:\websites\Farcry\core\packages > \fourq\fourq.cfc), first Argument (objectid) is of invalid type, can't > cast String [43DB914Fg-0B83-43BF-ABE313C9B6B8B291] to a value of type > [uuid] > > In other words the getData function generate an error as it sees the > given id not as uuid. > > But why is the code i placed in my header template: > > <cfif isdefined('url.gebruikersid') and not > isvalid("uuid",url.gebruikersid)> > <cflocation url="index.cfm" addtoken="no"> > </cfif> > > Not filtering this out... > > Also added it before nj > > On Sep 10, 1:47 am, Blair McKenzie <[email protected]> wrote: > > Yes, but how are you getting invalid objectid's in the URL to begin with? > > You could add a check to index.cfm before nj:display, but that doesn't > deal > > with the cause of the problem - malformed URLs. > > > > On Fri, Sep 10, 2010 at 9:43 AM, Marco van den Oever < > > > > [email protected]> wrote: > > > They are url variables that are used in getdata function. > > > > > On Sep 10, 1:27 am, Blair McKenzie <[email protected]> wrote: > > > > What are you trying to do? What are the urls you're working with? > > > > > > Blair > > > > > > On Fri, Sep 10, 2010 at 9:06 AM, Marco van den Oever < > > > > > > [email protected]> wrote: > > > > > I am checking uuid's by isvalid. > > > > > Placed them in my project header, fourq seems to generate a error. > > > > > > > How can i check my custom url variables for valid uuid, where do i > > > > > need to place them? > > > > > > > -- > > > > > You received this message cos you are subscribed to "farcry-dev" > Google > > > > > group. > > > > > To post, email: [email protected] > > > > > To unsubscribe, email: > > > > > [email protected]<farcry-dev%[email protected]> > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > > > > <farcry-dev%[email protected]<farcry-dev%[email protected]> > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > > > > > > > > For more options:http://groups.google.com/group/farcry-dev > > > > > -------------------------------- > > > > > Follow us on Twitter:http://twitter.com/farcry > > > > > -- > > > You received this message cos you are subscribed to "farcry-dev" Google > > > group. > > > To post, email: [email protected] > > > To unsubscribe, email: > > > [email protected]<farcry-dev%[email protected]> > <farcry-dev%[email protected]<farcry-dev%[email protected]> > > > > > For more options:http://groups.google.com/group/farcry-dev > > > -------------------------------- > > > Follow us on Twitter:http://twitter.com/farcry > > > > > > -- > You received this message cos you are subscribed to "farcry-dev" Google > group. > To post, email: [email protected] > To unsubscribe, email: > [email protected]<farcry-dev%[email protected]> > For more options: http://groups.google.com/group/farcry-dev > -------------------------------- > Follow us on Twitter: http://twitter.com/farcry > -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry
