Re: Adding Salt and Password Hash to existing acocunts

2013-03-06 Thread Torrent Girl

When I performed this same task a few months ago, I basically wrote a page
that did all the salting and updating as a loop.  Obviously I had decided
on the actual process for login and tested it to make sure it worked.  I
just increased the size of the password column, added a salt column and ran
all users through the salting processing page.  I can find the code if you
are interested.

Rob
On 2013-03-05 7:15 AM, Torrent Girl moniqueb...@gmail.com wrote:




Rob that would be GREAT.

Thank you 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354851
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Adding Salt and Password Hash to existing acocunts

2013-03-06 Thread Rob Parkhill

Here you go.

Cfquery name=GetUserPasswords
select memberid, password from users
/cfquery
cfoutput#getUserPasswords.RecordCount#/cfoutput!---Just to see how
many we have ---
Cfset salt = ''/
cfset newpassword = ''/
Cfset count = 0/
cfloop query=GetUserPasswords
cfset salt = generateSecretKey(DESEDE )/
Cfset newpassword = hash( hash(password[currentrow]) 
user.salt,SHA-256,us-ascii)/
 cfquery name=updateUser
UPdate users set password = '#user.password#', salt = '#user.salt#'
where memberid = '#memberid[currentrow]#'
 /cfquery
Cfset salt= ''/
cfset newpassword = ''/
Cfset count = count +1/
/cfloop
  and we changed cfoutput#count#/cfoutput

Again, you will want to change one account and test it to make sure that
your login routine will validate the password and login the user.  Then you
can just run this on the whole table, no muss no fuss.  You won't have to
make the users change anything, their passwords will just be secure.  You
will also have to come up with a Forgot Password routine, since the
passwords are irretrievable.

Cheers,

Rob


On Wed, Mar 6, 2013 at 9:33 AM, Torrent Girl moniqueb...@gmail.com wrote:


 When I performed this same task a few months ago, I basically wrote a page
 that did all the salting and updating as a loop.  Obviously I had decided
 on the actual process for login and tested it to make sure it worked.  I
 just increased the size of the password column, added a salt column and
 ran
 all users through the salting processing page.  I can find the code if you
 are interested.
 
 Rob
 On 2013-03-05 7:15 AM, Torrent Girl moniqueb...@gmail.com wrote:
 
 


 Rob that would be GREAT.

 Thank you

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354852
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CF10 install question

2013-03-06 Thread Stephens, Larry V

We have just installed CF10 standard edition 64 bit along with, Windows Server 
2008 R2 with IIS 7.5 and IE9 on a virtual machine.

Everything appears to install correctly. We enter a username and password as 
part of the setup and then, at the end of the install, we are dumped to the 
administrator (which we presume is SOP). At that point, we try to login to the 
administrator but it tells us it doesn't recognize either the user or password.

Any suggestions? We can't determine why this install is a problem when the 
other one worked.

If we turn off the password requirement (by editing the neo-security file) then 
change the password it asks for the old password and recognizes it. Turn 
security back on (which, of course, it has to be) we're right back to not 
letting us in.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354853
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF10 lockdown question

2013-03-06 Thread Pete Freitag

Hi Larry,

There has been a LOT of attacks targeting ColdFusion lately, it's time for
us all to step up our security practices. There is a lot you can do to
harden your server installation, and your application code beyond what you
have mentioned. Security is one of those things that you can never say ok,
everything is secure I can check that off my list and move on, it is a
constant ongoing thing you need to always be working on.

Some things to get started:

1) Follow the CF10 lockdown guide:
https://www.adobe.com/content/dam/Adobe/en/products/coldfusion/pdfs/cf10/cf10-lockdown-guide.pdf

2) If you can remove your need for /CFIDE this can make lockdown easier
because you can just block it

3) Another very important thing to check besides that your queries have
been cfqueryparamed is to check all your file operations for
vulnerabilities. Here are some tips for file uploads:
http://www.petefreitag.com/item/701.cfm you should also make check any file
operation that uses variables that can be tainted by the requester, for
example cfinclude template=static/#url.path#.html could be used to
download any file CF has access to (not just html files).

4) Leverage some of the new session functions in CF10 like SessionRotate
(after a successful login), SessionInvalidate (on logout).

5) Employ redundant layers of security (defense in depth), for example
using a web application firewall, such as the one my company makes
http://fuseguard.com/ there are other ones that are non specific to CF as
well.

6) Use security monitoring and scanning tools, such as a PCI scanner, and
http://hackmycf.com/ (note HackMyCF is not a PCI scanner, you should still
use a PCI scanner in addition to HackMyCF, which is highly CF specific).

7) I could go on and on, so go and register for cf.Objective() where you
can hear a several presentations on CF security given by David Epler, Phil
Duba, Bilal Soylu, and myself: http://www.cfobjective.com/sessions/ you can
find some of my past presentations here:
http://www.petefreitag.com/tag/security which also give a lot more detail
than we can get into on this thread.


--
Pete Freitag - Adobe Community Professional
http://foundeo.com/ - ColdFusion Consulting  Products
http://hackmycf.com - Is your ColdFusion Server Secure?
http://www.youtube.com/watch?v=ubESB87vl5U - FuseGuard your CFML in 10
minutes



On Tue, Mar 5, 2013 at 9:03 AM, Stephens, Larry V steph...@iu.edu wrote:


 Our webserver utilizing CF8 was hacked. We're not sure how (in what
 manner), at least at this point, but I am in the process of moving all CF
 stuff to a new server using CF10.

 I am checking all #variables# used in queries to be sure cfqueryparam is
 used. We are moving everything from MS Access to SQL Server.

 I am shedding all cfajaximport's and using jQuery ajax calls. While I
 don't *think* this is security related, I am also eliminating all cfform's
 (but, see below).

 Q1: By eliminating cfajaximport does the public need access to CFIDE or
 can I lock that down to my access, only? I recall having an issue with
 validation in cfform that had to do with not finding CFIDE (but I'm
 eliminating that issue).

 Q2: As far as CF goes, anything we're missing?

 Thanks.

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354854
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF10 install question

2013-03-06 Thread Russ Michaels

I recall seeing a similar issue recently that was related to the time sync
on the server being wrong.
Perhaps worth checking that ?



On Wed, Mar 6, 2013 at 4:41 PM, Stephens, Larry V steph...@iu.edu wrote:


 We have just installed CF10 standard edition 64 bit along with, Windows
 Server 2008 R2 with IIS 7.5 and IE9 on a virtual machine.

 Everything appears to install correctly. We enter a username and password
 as part of the setup and then, at the end of the install, we are dumped to
 the administrator (which we presume is SOP). At that point, we try to login
 to the administrator but it tells us it doesn't recognize either the user
 or password.

 Any suggestions? We can't determine why this install is a problem when the
 other one worked.

 If we turn off the password requirement (by editing the neo-security file)
 then change the password it asks for the old password and recognizes it.
 Turn security back on (which, of course, it has to be) we're right back to
 not letting us in.

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354855
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF10 lockdown question

2013-03-06 Thread Billy Cravens

+1 to FuseGuard. Implemented this on a site this a *lot* of SQL injection 
issues. No firewall or similar product is a substitute for well-written code, 
but putting this in place stopped the hemorrhaging overnight.

+1 to HackMyCF as well. Use this on the main site I support, and I'm very happy 
with weekly updates (not only tells you what the problem is, but links to how 
to fix it)

No, Pete isn't paying me to say this. :-)


Billy Cravens
bdcrav...@gmail.com


 
 
 5) Employ redundant layers of security (defense in depth), for example
 using a web application firewall, such as the one my company makes
 http://fuseguard.com/ there are other ones that are non specific to CF as
 well.
 
 6) Use security monitoring and scanning tools, such as a PCI scanner, and
 http://hackmycf.com/ (note HackMyCF is not a PCI scanner, you should still
 use a PCI scanner in addition to HackMyCF, which is highly CF specific).
 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354856
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Debugging AMF call

2013-03-06 Thread Rick Root

As you may know, I've recently migrated our web server from CF8 to CF10.

 have an old app that I wrote with Flash MX 2004 =)  The /flashservices
request was erroring with a 404, but with this advice (
http://inflagrantedelicto.memoryspiral.com/2012/12/flashservicesgateway-and-coldfusion-10/)
to get from a 404 to a 200 response...

But my app still isn't working.

I tried using Firefox / Firebug / AMF Explorer ... I see the amf request
and amf response tabs, but the amf request just says cc is not defined
and the amf response says missingResponse

I have confirmed, through cflog statements, that both of the functions I
am initially calling with this amf request are being requested and making
it through to the cfreturn statement in the functions.

Firebug does show me the following response headers:

HTTP/1.1 200 OK
Date: Wed, 06 Mar 2013 20:22:56 GMT
Server: Apache/2.2.23 (Win64) mod_ssl/2.2.23 OpenSSL/1.0.1c mod_jk/1.2.32
Content-Length: 0
Keep-Alive: timeout=5, max=99
Connection: Keep-Alive
Content-Type: application/x-amf

I'm concerned that the Content-length implies that coldfusion is not
sending any data back.

Ideas?
-- 
*The beatings will continue until morale improves.*


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354857
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Anyone see anything wrong with the syntax of the query?

2013-03-06 Thread Rick Root

And, in this case, having cfqueryparam helps you debug weird errors that
you'd get when a field that is expected to be numeric is blank or not
numeric.

Ie

where myField=#someval#

will result in an unrecognizable syntax error if #someval# is an empty
string, and the line number will be the end of the query, not necessarily
the variable location.

where myField=cfqueryparam value=#someval# cfsqltype=cf_sql_integer

will give you an error on a the exactly line number and tell you that  is
not valid data for type cf_sql_integer.

Then, you don't have to spend a lot of time trying to figure out what's
wrong with the query.

Rick



On Wed, Mar 6, 2013 at 12:13 AM, Byron Mann byronos...@gmail.com wrote:


 I'd have to agree with Dave.

 The only time I've seen an issue (with cfqueryparam) was with something
 like a sql string generated based on say a search form and then that being
 passed to a stored procedure that executes the statement in the procedure.

 Not to say it's impossible, for there are those that have way more time on
 their hands than I.

 Byron Mann
 Lead Engineer  Architect
 HostMySite.com


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354858
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Debugging AMF call

2013-03-06 Thread Cameron Childress

On Wed, Mar 6, 2013 at 3:25 PM, Rick Root rick.r...@gmail.com wrote:

 and amf response tabs, but the amf request just says cc is not defined
 and the amf response says missingResponse


Use Charles to view the entire AMF reply:
http://www.charlesproxy.com/

Smells like CF is throwing an error of cc is not defined and you're seing
that returned to your Flash file. Do you happen to have any variables on
the CF side that are called cc? Start there.

-Cameron

-- 
Cameron Childress
--
p:   678.637.5072
im: cameroncf
facebook http://www.facebook.com/cameroncf |
twitterhttp://twitter.com/cameronc |
google+ https://profiles.google.com/u/0/117829379451708140985


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354859
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Anyone see anything wrong with the syntax of the query?

2013-03-06 Thread Russ Michaels

I used cfparam to do that before cfqueryparam existed.

Regards
Russ Michaels
www.michaels.me.uk
www.cfmldeveloper.com - Free CFML hosting for developers
www.cfsearch.com - CF search engine
On Mar 6, 2013 8:37 PM, Rick Root rick.r...@gmail.com wrote:


 And, in this case, having cfqueryparam helps you debug weird errors that
 you'd get when a field that is expected to be numeric is blank or not
 numeric.

 Ie

 where myField=#someval#

 will result in an unrecognizable syntax error if #someval# is an empty
 string, and the line number will be the end of the query, not necessarily
 the variable location.

 where myField=cfqueryparam value=#someval# cfsqltype=cf_sql_integer

 will give you an error on a the exactly line number and tell you that  is
 not valid data for type cf_sql_integer.

 Then, you don't have to spend a lot of time trying to figure out what's
 wrong with the query.

 Rick



 On Wed, Mar 6, 2013 at 12:13 AM, Byron Mann byronos...@gmail.com wrote:

 
  I'd have to agree with Dave.
 
  The only time I've seen an issue (with cfqueryparam) was with something
  like a sql string generated based on say a search form and then that
 being
  passed to a stored procedure that executes the statement in the
 procedure.
 
  Not to say it's impossible, for there are those that have way more time
 on
  their hands than I.
 
  Byron Mann
  Lead Engineer  Architect
  HostMySite.com
 
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354860
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Space in a Struct Key

2013-03-06 Thread Jenny Gavin-Wear

Getting very rusty, can't remember how to access a key in a struct that has
a space in it.

Example:-
imageMetaData.exif.Focal Length

How would I cfoutput that, for example?

Would someone put me out of my misery, please?

Thanks,
Jenny

--
I am using the free version of SPAMfighter.
SPAMfighter has removed 9293 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

Do you have a slow PC? Try a Free scan
http://www.spamfighter.com/SLOW-PCfighter?cid=sigen



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354861
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Space in a Struct Key

2013-03-06 Thread Russ Michaels

Structname[your key]

Regards
Russ Michaels
www.michaels.me.uk
www.cfmldeveloper.com - Free CFML hosting for developers
www.cfsearch.com - CF search engine
On Mar 6, 2013 10:18 PM, Jenny Gavin-Wear jenn...@fasttrackonline.co.uk
wrote:


 Getting very rusty, can't remember how to access a key in a struct that has
 a space in it.

 Example:-
 imageMetaData.exif.Focal Length

 How would I cfoutput that, for example?

 Would someone put me out of my misery, please?

 Thanks,
 Jenny

 --
 I am using the free version of SPAMfighter.
 SPAMfighter has removed 9293 of my spam emails to date.
 Get the free SPAMfighter here: http://www.spamfighter.com/len

 Do you have a slow PC? Try a Free scan
 http://www.spamfighter.com/SLOW-PCfighter?cid=sigen



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354862
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Space in a Struct Key

2013-03-06 Thread Matt Quackenbush

structName[ keyName ] if unknown, otherwise ...

structName[ 'key name with space' ]


On Wed, Mar 6, 2013 at 4:17 PM, Jenny Gavin-Wear 
jenn...@fasttrackonline.co.uk wrote:


 Getting very rusty, can't remember how to access a key in a struct that has
 a space in it.

 Example:-
 imageMetaData.exif.Focal Length

 How would I cfoutput that, for example?

 Would someone put me out of my misery, please?

 Thanks,
 Jenny

 --
 I am using the free version of SPAMfighter.
 SPAMfighter has removed 9293 of my spam emails to date.
 Get the free SPAMfighter here: http://www.spamfighter.com/len

 Do you have a slow PC? Try a Free scan
 http://www.spamfighter.com/SLOW-PCfighter?cid=sigen



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354863
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Space in a Struct Key

2013-03-06 Thread Andrew Scott

Rule of thumb, keys should not have spaces.



Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+:  http://plus.google.com/113032480415921517411



On Thu, Mar 7, 2013 at 9:17 AM, Jenny Gavin-Wear 
jenn...@fasttrackonline.co.uk wrote:


 Getting very rusty, can't remember how to access a key in a struct that has
 a space in it.

 Example:-
 imageMetaData.exif.Focal Length

 How would I cfoutput that, for example?

 Would someone put me out of my misery, please?

 Thanks,
 Jenny

 --
 I am using the free version of SPAMfighter.
 SPAMfighter has removed 9293 of my spam emails to date.
 Get the free SPAMfighter here: http://www.spamfighter.com/len

 Do you have a slow PC? Try a Free scan
 http://www.spamfighter.com/SLOW-PCfighter?cid=sigen



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354864
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


anybody using Oracle RAC 11g R2 ?

2013-03-06 Thread Chris

Is anybody using Oracle RAC 11g R2 ?  How do you connect the ColdFusion
datasources?

Our customer is updating to 11g R2. The only official support I see is for
11g R1:
http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/products/coldfusion/pdfs/coldfusion9-support-matrix-4-ue.pdf

I've seen enough on the 'net to figure we can use R2, though maybe without
the advanced features like SCAN.

thanks,
Chris


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354865
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Space in a Struct Key

2013-03-06 Thread Jenny Gavin-Wear

This fails:-
cfoutput#[imageMetaData][exif][Focal Length]#/cfoutput

and I am sure I tried every other combination except the right one.

You can see the structure here:-
http://gallery.fasttrackonline.co.uk/admin/images/test.cfm

CF7, if that makes any difference.

-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: 06 March 2013 22:20
To: cf-talk
Subject: Re: Space in a Struct Key


Structname[your key]

Regards
Russ Michaels
www.michaels.me.uk
www.cfmldeveloper.com - Free CFML hosting for developers www.cfsearch.com -
CF search engine On Mar 6, 2013 10:18 PM, Jenny Gavin-Wear
jenn...@fasttrackonline.co.uk
wrote:


 Getting very rusty, can't remember how to access a key in a struct 
 that has a space in it.

 Example:-
 imageMetaData.exif.Focal Length

 How would I cfoutput that, for example?

 Would someone put me out of my misery, please?

 Thanks,
 Jenny

 --
 I am using the free version of SPAMfighter.
 SPAMfighter has removed 9293 of my spam emails to date.
 Get the free SPAMfighter here: http://www.spamfighter.com/len

 Do you have a slow PC? Try a Free scan 
 http://www.spamfighter.com/SLOW-PCfighter?cid=sigen



 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354866
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Space in a Struct Key

2013-03-06 Thread Matt Quackenbush

The only brackets should be the ones with quotes inside. Not sure why you
added those other brackets; they're not in Russ' or my examples.
On Mar 6, 2013 5:13 PM, Jenny Gavin-Wear jenn...@fasttrackonline.co.uk
wrote:


 This fails:-
 cfoutput#[imageMetaData][exif][Focal Length]#/cfoutput

 and I am sure I tried every other combination except the right one.

 You can see the structure here:-
 http://gallery.fasttrackonline.co.uk/admin/images/test.cfm

 CF7, if that makes any difference.

 -Original Message-
 From: Russ Michaels [mailto:r...@michaels.me.uk]
 Sent: 06 March 2013 22:20
 To: cf-talk
 Subject: Re: Space in a Struct Key


 Structname[your key]

 Regards
 Russ Michaels
 www.michaels.me.uk
 www.cfmldeveloper.com - Free CFML hosting for developers www.cfsearch.com-
 CF search engine On Mar 6, 2013 10:18 PM, Jenny Gavin-Wear
 jenn...@fasttrackonline.co.uk
 wrote:

 
  Getting very rusty, can't remember how to access a key in a struct
  that has a space in it.
 
  Example:-
  imageMetaData.exif.Focal Length
 
  How would I cfoutput that, for example?
 
  Would someone put me out of my misery, please?
 
  Thanks,
  Jenny
 
  --
  I am using the free version of SPAMfighter.
  SPAMfighter has removed 9293 of my spam emails to date.
  Get the free SPAMfighter here: http://www.spamfighter.com/len
 
  Do you have a slow PC? Try a Free scan
  http://www.spamfighter.com/SLOW-PCfighter?cid=sigen
 
 
 
 



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354867
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Space in a Struct Key

2013-03-06 Thread Dave Watts

 This fails:-
 cfoutput#[imageMetaData][exif][Focal Length]#/cfoutput

 and I am sure I tried every other combination except the right one.

 You can see the structure here:-
 http://gallery.fasttrackonline.co.uk/admin/images/test.cfm

If the structure is imageMetaData, and it has a key called exif, you
could refer to it either of these ways:

imageMetaData.exif
imageMetaData[exif]

If the exif key is also a structure, you could refer to it either of these ways:

imageMetaData.exif[Focal Length]
imageMetaData[exif][Focal Length]

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354868
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Space in a Struct Key

2013-03-06 Thread Jeff Garza

If you are going to use bracket notation, you need to use quotes for struct 
keys that are not variables.

#[imageMetaData][exif][Focal Length]# - Coldfusion will be looking for a 
variable called exif.

Try this instead:
#imageMetaData[exif][Focal Length]# should work.

--
Jeff

 Original Message 
 From: Jenny Gavin-Wear jenn...@fasttrackonline.co.uk
 Sent: Wednesday, March 06, 2013 4:14 PM
 To: cf-talk cf-talk@houseoffusion.com
 Subject: RE: Space in a Struct Key
 
 This fails:-
 cfoutput#[imageMetaData][exif][Focal Length]#/cfoutput
 
 and I am sure I tried every other combination except the right one.
 
 You can see the structure here:-
 http://gallery.fasttrackonline.co.uk/admin/images/test.cfm
 
 CF7, if that makes any difference.
 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354869
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Space in a Struct Key

2013-03-06 Thread Jenny Gavin-Wear

Could kick myself,  thought I had tried that.

Thanks Dave.

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: 06 March 2013 23:18
To: cf-talk
Subject: Re: Space in a Struct Key


 This fails:-
 cfoutput#[imageMetaData][exif][Focal Length]#/cfoutput

 and I am sure I tried every other combination except the right one.

 You can see the structure here:-
 http://gallery.fasttrackonline.co.uk/admin/images/test.cfm

If the structure is imageMetaData, and it has a key called exif, you could
refer to it either of these ways:

imageMetaData.exif
imageMetaData[exif]

If the exif key is also a structure, you could refer to it either of these
ways:

imageMetaData.exif[Focal Length]
imageMetaData[exif][Focal Length]

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule,
and provides the highest caliber vendor-authorized instruction at our
training centers, online, or onsite.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354870
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Space in a Struct Key

2013-03-06 Thread Jenny Gavin-Wear

Many thanks, Jeff.

-Original Message-
From: Jeff Garza [mailto:j...@garzasixpack.com] 
Sent: 06 March 2013 23:18
To: cf-talk
Subject: RE: Space in a Struct Key


If you are going to use bracket notation, you need to use quotes for struct
keys that are not variables.

#[imageMetaData][exif][Focal Length]# - Coldfusion will be looking for a
variable called exif.

Try this instead:
#imageMetaData[exif][Focal Length]# should work.

--
Jeff

 Original Message 
 From: Jenny Gavin-Wear jenn...@fasttrackonline.co.uk
 Sent: Wednesday, March 06, 2013 4:14 PM
 To: cf-talk cf-talk@houseoffusion.com
 Subject: RE: Space in a Struct Key
 
 This fails:-
 cfoutput#[imageMetaData][exif][Focal Length]#/cfoutput
 
 and I am sure I tried every other combination except the right one.
 
 You can see the structure here:-
 http://gallery.fasttrackonline.co.uk/admin/images/test.cfm
 
 CF7, if that makes any difference.
 





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354871
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm