Re: Is this a bug,... or an undocumented feature?

2005-11-14 Thread Claude Schneegans
>>It is a result of intentional design. Ah ok. Then I suppose that CFDUMP var="#cgi# will show only the exitence of usual varables. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this

Re: Is this a bug,... or an undocumented feature?

2005-11-14 Thread Claude Schneegans
>>I believe what it is is that CF 'knows' it gets certain CGI vars, which it puts in the CGI struct. If you ask for something CF doesn't explicitly know about, it will query the web server for that variable, and the web server will return an empty string no matter what you pass it - try dumping 'c

RE: Is this a bug,... or an undocumented feature?

2005-11-14 Thread Figy, Kam
nation :) -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Monday, November 14, 2005 8:40 AM To: CF-Talk Subject: Re: Is this a bug,... or an undocumented feature? >>I suppose what's hapening is that there is no way to ask the HTTP server if some variab

RE: Is this a bug,... or an undocumented feature?

2005-11-14 Thread Dave Watts
> So, it IS a flaw, if not a bug. It is arguably a flaw, but certainly not a bug. It is a result of intentional design. It is also documented: http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/h tml/wwhelp.htm?context=ColdFusion_Documentation&file=part_dev.htm Dave Watts

Re: Is this a bug,... or an undocumented feature?

2005-11-14 Thread Claude Schneegans
>>Notice that there are CGI vars visible to ASP, but not to CF. >>This is all part of the mystery. IMO there is no mystery: cgi variables are HTTP server creatures, no doubt. But as far as CF is able to get the whole list of them, there is no reason it could not say if one belongs to that list

RE: Is this a bug,... or an undocumented feature?

2005-11-14 Thread Dawson, Michael
10:40 AM To: CF-Talk Subject: Re: Is this a bug,... or an undocumented feature? >>I suppose what's hapening is that there is no way to ask the HTTP server if some variable is defined or not. No, this is not what's hapening, since the structKeyExists function seems to work well. Also

Re: Is this a bug,... or an undocumented feature?

2005-11-14 Thread Claude Schneegans
>>I suppose what's hapening is that there is no way to ask the HTTP server if some variable is defined or not. No, this is not what's hapening, since the structKeyExists function seems to work well. Also, CFDUMP on cgi scope lists all of them, so CF manages to get the list of all existing cgi v

Re: Is this a bug,... or an undocumented feature?

2005-11-14 Thread Claude Schneegans
>>In my experience the cgi variables are related to the webserver you are using, for example you will have different cgi variables with iis than you will with apache. This is right. However CF is able to find them, whatever they are. I suppose what's hapening is that there is no way to ask the H

Re: Is this a bug,... or an undocumented feature?

2005-11-14 Thread Ryan Guill
In my experience the cgi variables are related to the webserver you are using, for example you will have different cgi variables with iis than you will with apache. Could this have something to do with it? What webserver are you using? On 11/14/05, Claude Schneegans <[EMAIL PROTECTED]> wrote: >

Re: Is this a bug,... or an undocumented feature?

2005-11-14 Thread Claude Schneegans
>>Application servers cannot know what CGI variables are passed to it. I don't see your point, when they are requested to use one of them, they do find it, no? So when I ask CF if it is defined, it shouldn't say yes if it is not. This bug is present in CF5, CF6 and CF7. -- ___

Re: Is this a bug,... or an undocumented feature?

2005-11-14 Thread Claude Schneegans
>>What version of cf are you using claude? I have all of them, well almost: CF5, CF6 and CF7, they all yield the same result. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this addre

Re: Is this a bug,... or an undocumented feature?

2005-11-14 Thread Ryan Guill
What version of cf are you using claude? On 11/14/05, Claude Schneegans <[EMAIL PROTECTED]> wrote: > >>The structKeyExists function seems to work well > > This confirm that the flaw with isdefined is a bug. > > -- > ___ > REUSE CODE! Use custom tags; > See htt

Re: Is this a bug,... or an undocumented feature?

2005-11-14 Thread Claude Schneegans
>>The structKeyExists function seems to work well This confirm that the flaw with isdefined is a bug. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Th

Re: Is this a bug,... or an undocumented feature?

2005-11-14 Thread wolf2k5
On 11/14/05, Claude Schneegans <[EMAIL PROTECTED]> wrote: > > CGI.whateverYouPutHere = [#CGI.whateverYouPutHere#] > CGI.whateverYouPutHere not defined > > > Always displays > CGI.whateverYouPutHere = [] Hi, The structKeyExists function seems to work well (tested with ColdFusion MX 6.1 with

RE: Is this a bug,... or an undocumented feature?

2005-11-13 Thread Dawson, Michael
probably should not check for the existence of CGI variables for the reason you noticed. M!ke -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Sunday, November 13, 2005 9:25 PM To: CF-Talk Subject: Is this a bug,... or an undocumented feature? It looks like ANY

Is this a bug,... or an undocumented feature?

2005-11-13 Thread Claude Schneegans
It looks like ANY variable in the cgi scope is always defined, ie: is always true, and #CGI.anythingYouPutHere# always return an empty string. CGI.whateverYouPutHere = [#CGI.whateverYouPutHere#] CGI.whateverYouPutHere not defined Always displays CGI.whateverYouPutHere = [] Is this normal