What is the bug exactly? Is it only caused when serializing the form 
struct, and not other types of structs? Thats what it would appear to be. I 
tried to populate a struct with 20 keys via a cfloop. This struct 
serialized and de serialized fine.



At 04:03 PM 11/11/02 -0500, you wrote:
>FYI, this is a known bug (in other words, it's in our system).
>
>=======================================================================
>Raymond Camden, ColdFusion Jedi Master for Hire
>
>Email    : [EMAIL PROTECTED]
>WWW      : www.camdenfamily.com/morpheus
>Yahoo IM : morpheus
>
>"My ally is the Force, and a powerful ally it is." - Yoda
>
> > -----Original Message-----
> > From: Tim Painter [mailto:cftalk@;cfex.com]
> > Sent: Monday, November 11, 2002 2:50 PM
> > To: CF-Talk
> > Subject: Re: WDDX / Missing Struct Keys & CFMX
> >
> >
> > Brook,
> >     I just ran into this last night.  I was trying to
> > serialize the Form
> > structure into a wddx packet and saving that, but it would
> > only save 10
> > fields maximum.
> >
> > To get around it -- I copied the from structure to a tmp
> > variable and then
> > serialized the tmp var instead of form and that seemed to
> > work and get all
> > the variables.
> >
> > <cfset tmp = Duplicate(form)>
> > <cfwddx action="cfml2wddx" input="#tmp#" output="frmStruct">
> >
> >
> > HTH,
> > Tim P.
> >
> > ----- Original Message -----
> > From: "Brook Davies" <[EMAIL PROTECTED]>
> > To: "CF-Talk" <[EMAIL PROTECTED]>
> > Sent: Monday, November 11, 2002 2:35 PM
> > Subject: WDDX / Missing Struct Keys & CFMX
> >
> >
> > > Hello,
> > > I have a structure that I am converting to WDDX and then
> > storing in a DB.
> > > Upon retrieving it, the structure is missing several keys.
> > I ran this
> > test:
> > >
> > > <!--- I start with a structure containing approx 20 key's --->
> > > <cfdump var="#cleanFieldStruct#">
> > >
> > > <!--- convert the cleanfieldStruct into a WDDX packet for insertion
> > > into  the DB --->
> > > <cfwddx action="cfml2wddx" input="#cleanFieldStruct#"
> > output="WddxData">
> > >
> > > <!--- convert it back for testing --->
> > > <cfwddx action="wddx2cfml" input="#WddxData#"
> > output="newCleanfieldstruct">
> > >
> > > <cfdump var="#newcleanFieldStruct#">
> > >
> > > And this results in a struct with about 50% less keys that
> > the original?!
> > I
> > > can not see any commonalities between the missing struct
> > keys. Its seems
> > to
> > > skip 1 and then 2 at a time.
> > >
> > > One other thing I just noticed is that the resulting WDDX Structure
> > > contains a max of 10 struct keys. Each time I refresh the page, the
> > > resulting WDDX structure has a max of ten, apparently
> > random keys from the
> > > original struct.
> > >
> > > Anybody familiar with this?
> > >
> > > Brook Davies
> > >
> > >
> > >
> > >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to