tracker issue : CF-4126385

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] Bug for: WDDX mangles ordered struct

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 03/09/2016

Components: Language

Versions: 2016

Failure Type:

Found In Build/Fixed In Build: RC1_v12 / 303894

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Win All

Vote Count: 0

WDDX mangles ordered struct

Repro:

<cfscript>
  orderedStruct = [b="b", a="a", c="c"];
  cfwddx(action="cfml2wddx", input=orderedStruct, output="serializedStruct");
  cfwddx(action="wddx2cfml", input=serializedStruct, output="deserializedStruct");
  writeDump(orderedStruct);
  writeDump(deserializedStruct);
</cfscript>

Actual result:

{b="b",a="a",c="c"}
{a="a",b="b",c="c"}

Expected result:

{b="b",a="a",c="c"}
{b="b",a="a",c="c"}

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4126385

External Customer Info:
External Company:  
External Customer Name: Aaron Neff
External Customer Email: adobelabs@itisdesign.com
External Test Config:

Attachments:

Comments:

Adding BUG AUDIT TRAIL ********action: updated fieldName: Fix By Product Milestone newValue: HF2 oldValue: Alpha oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2016-02-29 12:50:45.0 action: updated fieldName: Fix By Milestone newValue: Post Release oldValue: Alpha oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2016-02-29 12:50:45.0 action: updated fieldName: Owner newValue: mchandna oldValue: awdhesh oprid: mchandna recordName: RQ_DEFECT timpestamp: 2016-02-15 07:44:19.0 action: updated fieldName: Dev Assigned newValue: mchandna oldValue: awdhesh oprid: mchandna recordName: RQ_DEFECT timpestamp: 2016-02-15 07:44:19.0 action: updated fieldName: QE Assigned newValue: suchsing oldValue: inoel oprid: suchsing recordName: RQ_DEFECT timpestamp: 2016-02-15 07:02:32.0 action: updated fieldName: Fix By Product Milestone newValue: Alpha oldValue: Blank oprid: suchsing recordName: RQ_DEFECT timpestamp: 2016-02-15 07:00:34.0 action: updated fieldName: Reason newValue: BugVerified oldValue: Blank oprid: suchsing recordName: RQ_DEFECT timpestamp: 2016-02-15 07:00:34.0 action: updated fieldName: Fix By Milestone newValue: Alpha oldValue: Blank oprid: suchsing recordName: RQ_DEFECT timpestamp: 2016-02-15 07:00:34.0 action: updated fieldName: Status newValue: ToFix oldValue: Unverified oprid: suchsing recordName: RQ_DEFECT timpestamp: 2016-02-15 07:00:34.0 action: updated fieldName: Owner newValue: awdhesh oldValue: inoel oprid: suchsing recordName: RQ_DEFECT timpestamp: 2016-02-15 07:00:34.0 action: updated fieldName: Priority newValue: 3 oldValue: 0 oprid: suchsing recordName: RQ_DEFECT timpestamp: 2016-02-15 07:00:34.0
Comment by CFwatson U.
4322 | March 09, 2016 01:51:32 AM GMT
Added By: PreRelease User User Name:Aaron Neff Note Added: The forum thread discussing this ticket is: http://prerelease.adobe.com/r/?3d7bf9096e184b6092e495871cfdf647 Date Added :2016-02-12 15:48:17.0 Added By: PreRelease User User Name:Aaron Neff Note Added: Entered Bug. Date Added :2016-02-12 15:37:27.0
Comment by CFwatson U.
4323 | March 09, 2016 01:51:33 AM GMT
We are planning to implement metadata for structs which will help in deserializing the structs in better way. This bug will be taken with that.
Comment by Milan C.
4324 | May 05, 2016 01:24:52 AM GMT
Aaron, this will be taken in the next release as it has a dependency on an implementation which is being addressed only in the next release.
Comment by Vamseekrishna N.
4325 | August 09, 2016 10:10:50 PM GMT
This does not work for sorted structs as well.
Comment by Suchika S.
4326 | September 20, 2016 05:31:18 AM GMT
Hi Adobe, 1) WDDX should serialize/deserialize ordered struct 2) If sorted struct was created WITHOUT closure, WDDX should serialize/deserialize the sorted struct 3) If sorted struct was created WITH closure, it should be documented that it will be serialized/deserialized as an ordered struct (since functions cannot be serialized) Thoughts? Thanks!, -Aaron
Comment by Aaron N.
4327 | July 27, 2017 06:19:57 PM GMT
Hi Adobe, I see the status is currently "To Test/Fixed". Specifically, what was fixed and is being tested? Please consider my previous post. Thanks!, -Aaron
Comment by Aaron N.
4328 | July 27, 2017 06:23:11 PM GMT
1. Ordered Structs           a. Syntax of serialized struct will be like <struct type="ordered">.... 2. Sorted Structs           a. For sorted structs created without 'closure'                     i. Serialization will be carried out like ordered structs.                     ii. Syntax will be like <struct type="ordered">....           b. For sorted structs created with 'closure'                     i. Their sorttype, sortorder, and localesensitive attributes will be preserved during   serialization.                     ii. Syntax will be like <struct type='ordered' sorttype='text' sortorder='desc'     localesensitive='true' >...
Comment by Nikhil D.
4329 | August 01, 2017 01:33:59 PM GMT