CFPOP exception looping cids struct.

Description

Looping the messages struct results in exception, serializing and deserializing workaround allows looping the struct. see code and exception.

New Struct<br/>
<cfset MessageNew =DeserializeJSON(SerializeJSON(message.cids))>
<cfoutput>#SerializeJSON(MessageNew)#<br/></cfoutput>
<cfloop collection="#MessageNew#" Item="CurrItem">
<cfoutput>#CurrItem##MessageNew[CurrItem]#<br/></cfoutput>
</cfloop>

CFPOP Message struct<br/>
<cfoutput>#SerializeJSON(message.cids)#<br/></cfoutput>
<cfloop collection="#Message.cids#" Item="CurrItem">
<cfoutput>#CurrItem##Message.cids[CurrItem]#</cfoutput> /* results in key not found */
</cfloop>

Environment

Windows 10, IIS webserver

Attachments

2

Activity

Show:

Pothys - MitrahSoft 27 June 2018 at 06:48
Edited

I've analyzed this ticket & issue has been reproduced on lucee lopping over cids structure returned from CFPop. ACF returns the expect result. I've attached the test file

Igal Sapir 26 June 2018 at 17:19

if you are able to reproduce please assign the ticket to me, I have other cfpop tickets that I need to work on so I'll look at the issues at the same time.

Details

Assignee

Reporter

Priority

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 26 June 2018 at 09:55
Updated 24 July 2018 at 21:25