Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

structkeyexists finding keys that do not exists in CF 9

New Here ,
Oct 08, 2012 Oct 08, 2012

I found an odd issue with structkeyexists.

<cfset ticket = structnew()>
<cfset thiskey = "u|406468633|txslfault06">

<cfset structinsert(ticket, thiskey, "VOC000003770699|1349211974|tiegsda")>

<cfdump var="#ticket#">

<cfif structkeyexists(ticket, "u|398230449|njbdfault05")>
<cfset raw = structfind(ticket, "u|398230449|njbdfault05")>
    <cfdump var="#raw#">
</cfif>

somehow it thinks that u|398230449|njbdfault05 is the same as: u|406468633|txslfault06

any Ideas?

TOPICS
Advanced techniques
848
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 08, 2012 Oct 08, 2012

Not for me it doesn't.  I just get the outout of the first dump, which is what I expected.

Is that code in a stand-alone file with nothing else interfering?

Can you post a screencap of the output?

Can you provide your OS / bitness / type of CF install / anything else that might contribute to this?

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 08, 2012 Oct 08, 2012

I put this small code toguether to trouble shoot the issue... had a user complain that a ticket was assign to them that was not supposed to. and I narrow it down to this.

Capture.PNG

it works fine on my new CF10 server, it is only happening on CF9

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 08, 2012 Oct 08, 2012

I don't get it on CF9.0.2 either. Nor CF8.0.1, nor CFMX7.0.2...

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 08, 2012 Oct 08, 2012

going to try to update my cf 9,0,0,251028  to 9.0.2

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 08, 2012 Oct 08, 2012
LATEST

The update fixed the problem... this was an odd one.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources