Re: Application.cfm/c

2013-09-25 Thread Russ Michaels
Well if they are not using any client, application or session vars or any of the other features then I guess they do not need one. In which case a non unique app name is not really needed either as there is nothing in the application of any interest to anyone. Altho a site that simple usually

Re: Application.cfm/c

2013-09-25 Thread Nando
I would assume the specific issues would be the crux of the matter. Without them, it is difficult to speculate. In regards to performance, the scopes you mention are often used to increase performance in well designed applications. If the server doesn't have enough resources to accommodate their

RE: Application.cfm/c

2013-09-25 Thread Mark A Kruger
Your admins might be referring to the idea that some OTHER application.cfm/c is being called when none is in the root of the site. These are issues that can generally be resolved but they have to be understood. I'd get more info. -Original Message- From: Byron Mann [mailto:byronos

Re: Application.cfm/c

2013-09-25 Thread Byron Mann
application.cfm. Which a good number of customer sites still use, and would result in many broken customer sites out of the box. I'm correct in thinking it just searches up the file system structure to the system root right? No CF mappings or any other craziness occurs? I think in 10 you can even set

Re: Application.cfm/c

2013-09-25 Thread Nando
that application.cfc takes precedence over application.cfm. Which a good number of customer sites still use, and would result in many broken customer sites out of the box. I'm correct in thinking it just searches up the file system structure to the system root right? No CF mappings or any other

Re: Application.cfm/c

2013-09-25 Thread Raymond Camden
On Wed, Sep 25, 2013 at 10:45 AM, Nando d.na...@gmail.com wrote: The question to ponder here is what an *empty* default Application.cfc file is going to achieve? Not much, I believe. I've totally ignored the whole rest of the thread, so pardon me if this is dumb. But an empty App.cfc

Re: Application.cfm/c

2013-09-25 Thread Byron Mann
*On CF10, application and session scope seem to work without an Application.cf* file in a parent directory* I haven't been able to produce that. I can set session and application variables, but it's not really a session or application, just a simple structure. Example below the timestamps keep

Re: Application.cfm/c

2013-09-25 Thread Jochem van Dieten
On Wed, Sep 25, 2013 at 5:39 AM, Byron Mann wrote: Our admins are telling me that we run into issues with customers on our shared platform not having one. (they didn't specify the issues in the email). It has been a while since I last set up a server for shared hosting, but I used to put an

Re: Application.cfm/c

2013-09-25 Thread Byron Mann
That is an excellent suggestion. I think we could probably do this for new servers going forward. Thanks ~Byron Byron Mann Lead Engineer Architect HostMySite.com On Wed, Sep 25, 2013 at 4:13 PM, Jochem van Dieten joch...@gmail.comwrote: On Wed, Sep 25, 2013 at 5:39 AM, Byron Mann wrote:

Application.cfm/c

2013-09-24 Thread Byron Mann
Trying to wrap my head around any implications around not using an application file. Our admins are telling me that we run into issues with customers on our shared platform not having one. (they didn't specify the issues in the email). I can see how non-unique application names might be an

Re: Loss of variables after switch from application.cfm to application.cfc in FB 3 application

2012-11-09 Thread Nick Gleason
-ID: CAKa5oqLv2tFXLzyc2zS=mmu=D3TzGXLE9vEprxisKiOet+S=z...@mail.gmail.com Subject: Re: Loss of variables after switch from application.cfm to application.cfc in FB 3 application References: 355f13cb$34d4cb1f$54e8dc90$@com Date: Mon, 5 Nov 2012 14:24:28 -0600 Precedence: bulk Reply-To: cf-talk

Re: Loss of variables after switch from application.cfm to application.cfc in FB 3 application

2012-11-09 Thread Nick Gleason
[64.118.74.225] by mail67.safesecureweb.com with SMTP; Mon, 5 Nov 2012 15:25:03 -0500 To: cf-talk cf-talk@houseoffusion.com Message-ID: CAKa5oqLv2tFXLzyc2zS=mmu=D3TzGXLE9vEprxisKiOet+S=z...@mail.gmail.com Subject: Re: Loss of variables after switch from application.cfm to application.cfc in FB 3

Re: Loss of variables after switch from application.cfm to application.cfc in FB 3 application

2012-11-09 Thread Matt Quackenbush
To: cf-talk cf-talk@houseoffusion.com Message-ID: CAKa5oqLv2tFXLzyc2zS=mmu=D3TzGXLE9vEprxisKiOet+S=z...@mail.gmail.com Subject: Re: Loss of variables after switch from application.cfm to application.cfc in FB 3 application References: 355f13cb$34d4cb1f$54e8dc90$@com Date: Mon, 5 Nov 2012 14:24:28

Loss of variables after switch from application.cfm to application.cfc in FB 3 application

2012-11-05 Thread Nick Gleason
Hi folks, Bit of a head scratcher here which I'm hoping may be obvious to you all. We've got a Fusebox 3 application which we have recently converted from application.cfm to application.cfc. One puzzling result has been that during a single page request, an attributes variable that is set

Re: Loss of variables after switch from application.cfm to application.cfc in FB 3 application

2012-11-05 Thread Matt Quackenbush
of a head scratcher here which I'm hoping may be obvious to you all. We've got a Fusebox 3 application which we have recently converted from application.cfm to application.cfc. One puzzling result has been that during a single page request, an attributes variable that is set in a file called from

Application.cfm default behaviors

2011-09-28 Thread Scott Stewart
Yeah, it said Application.cfm... I'm working on a legacy app, (on CF 9) that uses an Application.cfm, which I cant rebuild right now. inside of the file, there is a custom structure set called CFA., it's part of a home grown framework. Would it automatically be dropped into the application

Re: Application.cfm default behaviors

2011-09-28 Thread John M Bliss
I'm pretty sure it's living and dying by the request. In application.cfm: cfset x = 1 ...is: cfset variables.x = 1 ...and not: cfset application.x = 1 On Wed, Sep 28, 2011 at 8:33 AM, Scott Stewart webmas...@sstwebworks.comwrote: Yeah, it said Application.cfm... I'm working

Re: Application.cfm default behaviors

2011-09-28 Thread Dave Watts
Yeah, it said Application.cfm... I'm working on a legacy app, (on CF 9) that uses an Application.cfm, which I cant rebuild right now. inside of the file, there is a custom structure set called CFA., it's part of a home grown framework. Would it automatically be dropped

Re: application.cfm

2011-06-28 Thread Claude Schnéegans
That’s what cfthrow and cfrethrow are for. No. This is to trigger an execution error in the system. This kind of errors are not to be reported to the user. If all you want is to warn the user he has done something wrong, you just need to display some message in the returned page and that's

RE: application.cfm

2011-06-28 Thread Andrew Scott
http://www.andyscott.id.au/ -Original Message- From: Claude Schnéegans schneeg...@internetique.com [mailto:=?ISO- 8859-1?Q?Claude_Schn=E9egans schneegans@interneti=71?= =?ISO-8859- 1?Q?ue.com=3E?=] Sent: Tuesday, 28 June 2011 11:02 PM To: cf-talk Subject: Re: application.cfm

Re: application.cfm

2011-06-28 Thread Dave Watts
Pfft, never ever heard that you display then use cfabort. Sorry but you not going to ever convince me that cfabort is a good thing in any way shape or form, except for debugging purposes. I can show you many ways to rewrite it and be more efficient without using cfabort. If you want to stop

RE: application.cfm

2011-06-28 Thread Andrew Scott
template again. Enough said.. Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Wednesday, 29 June 2011 12:52 AM To: cf-talk Subject: Re: application.cfm Pfft, never ever heard that you display then use

Re: application.cfm

2011-06-28 Thread Russ Michaels
, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Wednesday, 29 June 2011 12:52 AM To: cf-talk Subject: Re: application.cfm Pfft, never ever heard that you display then use cfabort. Sorry but you not going

Re: application.cfm

2011-06-28 Thread Dave Watts
What does efficiency have to do with it? You tell me: I can show you many ways to rewrite it and be more efficient without using cfabort. You will not change my mind on the use of cfabort, pure and simple. I'm not really interested in changing your mind. I am interested in disagreeing with

Re: application.cfm

2011-06-28 Thread Claude Schnéegans
your HTML will not get rendered correctly if you simply abort a page, which may result in your friendly error message not being displayed properly, if at all. Yet another grtuitous statement... Your HTML will not get rendered correctly if you do not write it correctly, period. ;-) Ex: do not

Re: application.cfm

2011-06-28 Thread Claude Schnéegans
incorrect blanket statements I think this is exactly what I was looking for when I wrote gratuitous statement, I hope this is correct too ;-) ~| Order the Adobe Coldfusion Anthology now!

Re: application.cfm

2011-06-28 Thread Russ Michaels
If your not going to cfabort until after the final HTML tag, than doesn't that rather defeat the point. On Tue, Jun 28, 2011 at 4:26 PM, wrote: incorrect blanket statements I think this is exactly what I was looking for when I wrote gratuitous statement, I hope this is correct too ;-)

RE: application.cfm

2011-06-28 Thread Andrew Scott
and then rewrite the code again later when you requirements change? Have a think about that. Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Wednesday, 29 June 2011 1:04 AM To: cf-talk Subject: Re: application.cfm Yes

Re: application.cfm

2011-06-28 Thread Dave Watts
No Dave, I look at what the next developer or I might be doing in 6-12months time. I think that people should look at the problem at hand now and the future, and foresee maybe things might change. Would it no be better to write something properly now, rather than scratch your head and then

RE: application.cfm

2011-06-28 Thread Andrew Scott
: application.cfm No Dave, I look at what the next developer or I might be doing in 6-12months time. I think that people should look at the problem at hand now and the future, and foresee maybe things might change. Would it no be better to write something properly now, rather than scratch your head

Re: application.cfm

2011-06-27 Thread Claude Schnéegans
Or you may simply not want to waste time processing code that's unnecessary for a specific request. ... and you might even use no onRequestEnd at all ;-) ~| Order the Adobe Coldfusion Anthology now!

Re: application.cfm

2011-06-27 Thread Claude Schnéegans
processing after displaying an error message in application.cfm. This is not debugging, but HTTP request validation. I have plenty of validation done in application.cfm. ~| Order the Adobe Coldfusion Anthology now! http

RE: application.cfm

2011-06-27 Thread Andrew Scott
June 2011 11:06 PM To: cf-talk Subject: Re: application.cfm Actually cfabort was introduced as a debugging tag. Really? Note that I use CFABORT because I was not sure CFCONTENT will cause processing to stop. It is not specified in the docs, but it does, so I could remove the CFABORT

Re: application.cfm

2011-06-26 Thread Claude Schnéegans
execution of an application.cfm. Once this template is executed, the true pdf file is returned to the requester, there is no need to execute any other template, especialy a pdf file, then it aborts. The customer asked to have times every document was requested to be traced. I know there plenty of other

Re: application.cfm

2011-06-26 Thread Claude Schnéegans
it is indeed included, I don't why it could not be the same for the HTTP requested template ie: not being compiled before application.cfm passes control to it. It just happens it is not the way it works, but it is certainly not for any kind of logical or efficiency reason

Re: application.cfm

2011-06-26 Thread Dave Watts
the code, but you also have to put that together with the fact that the code is invoked when a user directly requests one of his PDFs: http://claudes_server/somefile.pdf.cfm So, the compiler attempts to compile somefile.pdf.cfm before running the code he posted in Application.cfm. Dave Watts, CTO

Re: application.cfm

2011-06-26 Thread Dave Watts
1) Why are you using application/octet-stream instead of the PDF one? Are you going to be using other file types here? My guess is that his application doesn't keep track of the MIME types for individual files. 2) Why do you have cfabort in your code, this screams bad coding. Cfabort means

RE: application.cfm

2011-06-26 Thread Andrew Scott
/ -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Monday, 27 June 2011 1:39 AM To: cf-talk Subject: Re: application.cfm I did Claude (But I stated a possible bug), because I still am struggling because you don't share the code, to how you are including

RE: application.cfm

2011-06-26 Thread Andrew Scott
: Dave Watts [mailto:dwa...@figleaf.com] Sent: Monday, 27 June 2011 1:40 AM To: cf-talk Subject: Re: application.cfm 2) Why do you have cfabort in your code, this screams bad coding. Cfabort means that you no longer want ColdFusion to continue on any more processing. Personally I would

Re: application.cfm

2011-06-26 Thread Claude Schnéegans
somefile.pdf.cfm. Then it is compiled BEFORE application.cfm is run and can CFCONTENT the file. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http

Re: application.cfm

2011-06-26 Thread Claude Schnéegans
just weird seeing cfabort rather than cfexit method=exittemplate / which is better as you know that the application will eventually fall down to onRequestEnd.cfm were as cfabort will not. When you use CFCONTENT to deliver content, there is nothing else needed to be done, except terminate the

Re: application.cfm

2011-06-26 Thread Dave Watts
The part that I am struggling with is the actual PDF itself, regardless of whether it is called via a cfml template or not. I strongly believe that if you are using cfcontent to deliver a file with the extension of PDF then it *SHOULD* not compile that file, only the template it is being

Re: application.cfm

2011-06-26 Thread Dave Watts
No there isn't, just weird seeing cfabort rather than cfexit method=exittemplate / which is better as you know that the application will eventually fall down to onRequestEnd.cfm were as cfabort will not. In many cases you might not want onRequestEnd.cfm to execute. Dave Watts, CTO, Fig Leaf

Re: application.cfm

2011-06-26 Thread Russ Michaels
[mailto:dwa...@figleaf.com] Sent: Monday, 27 June 2011 1:39 AM To: cf-talk Subject: Re: application.cfm I did Claude (But I stated a possible bug), because I still am struggling because you don't share the code, to how you are including or loading the PDF. In other words I think

RE: application.cfm

2011-06-26 Thread Andrew Scott
Actually I can't think of one. Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Monday, 27 June 2011 2:42 AM To: cf-talk Subject: Re: application.cfm No there isn't, just weird seeing cfabort rather than

RE: application.cfm

2011-06-26 Thread Andrew Scott
: Monday, 27 June 2011 2:27 AM To: cf-talk Subject: Re: application.cfm just weird seeing cfabort rather than cfexit method=exittemplate / which is better as you know that the application will eventually fall down to onRequestEnd.cfm were as cfabort will not. When you use CFCONTENT

RE: application.cfm

2011-06-26 Thread Andrew Scott
://www.andyscott.id.au/ -Original Message- From: Russ Michaels [mailto:r...@michaels.me.uk] Sent: Monday, 27 June 2011 5:45 AM To: cf-talk Subject: Re: application.cfm Andew, it has been said several times that the problem was caused by a user link to the file directly, it is not caused

Re: application.cfm

2011-06-26 Thread Dave Watts
Actually I can't think of one. Well, I can think of a couple offhand. For example, you might have some code that generates HTML output in onRequestEnd.cfm, and you might have some scripts that generate something other than HTML. Or you may simply not want to waste time processing code that's

Re: application.cfm

2011-06-26 Thread Dave Watts
Actually cfabort was introduced as a debugging tag. No, it wasn't. It was introduced to allow the programmer to halt the current program. While it can be useful for debugging, it's not specific to debugging. I'm pretty sure that CFABORT has been around since the very beginning of CFML. Dave

Re: application.cfm

2011-06-25 Thread Dave Watts
 In Claude's original question, it doesn't appear he's using CFCONTENT: Yes I am. Here is a summary of the code in application.cfm: You can see that the requested file is never executed nor intended to. The only purpose of the .cfm extension is to force the execution

Re: application.cfm

2011-06-25 Thread Dave Watts
My guess is that the compiler takes lots of extra time and resources, so it does all its work before getting into the execution process. May be, however it will also compile some files for nothing, ie: included files actually not included at execution... which represents an extra

Re: application.cfm

2011-06-25 Thread Dave Watts
Until we see the code that delivers the PDF, you have to look at what is causing the compile error. It has nothing to do with when one is compiled or not, or what order it is compiled in. ColdFusion will always compile application.cfm/application.cfc and then the template you are trying

Re: application.cfm

2011-06-25 Thread Russ Michaels
order it is compiled in. ColdFusion will always compile application.cfm/application.cfc and then the template you are trying to run, and onRequestEnd.cfm if you have it. It can't do it any other way, because it has to know what variables might be defined in the application.cfm. No, in fact

Re: application.cfm

2011-06-25 Thread Dave Watts
hasn't this all been said several times already ? It doesn't appear to have been said simply and clearly, no. 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

Re: application.cfm

2011-06-25 Thread Claude Schnéegans
CF will attempt to compile it. My assumption was it was not compiled if not executed, but from my very first post I know it is not the case. My question was is it possible to get around this. I got about 50 answers to explain what I already knew, but none to my question. So I conclude that

Re: application.cfm

2011-06-25 Thread Dave Watts
My assumption was it was not compiled if not executed, but from my very first post I know it is not the case. My question was is it possible to get around this. I got about 50 answers to explain what I already knew, but none to my question. So I conclude that there is probably no way to

RE: application.cfm

2011-06-25 Thread Andrew Scott
://www.andyscott.id.au/ -Original Message- From: Claude Schnéegans schneeg...@internetique.com [mailto:=?ISO- 8859-1?Q?Claude_Schn=E9egans schneegans@interneti=71?= =?ISO-8859- 1?Q?ue.com=3E?=] Sent: Sunday, 26 June 2011 9:19 AM To: cf-talk Subject: Re: application.cfm CF

Re: application.cfm

2011-06-25 Thread James Holmes
No. Happy now? -- WSS4CF - WS-Security framework for CF http://wss4cf.riaforge.org/ On 26 June 2011 07:19, wrote: My question was is it possible to get around this. ~| Order the Adobe Coldfusion Anthology now!

Re: application.cfm

2011-06-25 Thread Claude Schnéegans
because you don't share the code I did sent all the code, you probably missed it. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

RE: application.cfm

2011-06-25 Thread Andrew Scott
Yes you did but I also asked for the PDF in question so that I could run some tests as well, maybe you missed that:-) Anyway I have a couple of questions. 1) Why are you using application/octet-stream instead of the PDF one? Are you going to be using other file types here? 2) Why do you have

Re: application.cfm

2011-06-23 Thread Dave Watts
CF should not be compiling anything that is not CFML, if it is this actually happening then it sounds like a bug in CF. If you give a file a .cfm extension and invoke that file in an HTTP request on a server configured to run CF, for all intents and purposes that file is CFML, whether it

RE: application.cfm

2011-06-23 Thread Andrew Scott
...@figleaf.com] Sent: Thursday, 23 June 2011 4:56 PM To: cf-talk Subject: Re: application.cfm CF should not be compiling anything that is not CFML, if it is this actually happening then it sounds like a bug in CF. If you give a file a .cfm extension and invoke that file in an HTTP request

Re: application.cfm

2011-06-23 Thread Dave Watts
Dave, I realise that. In this case he is claiming to use cfcontent, any content that is used in this manner should not be compiled into the CFML template. That was my point. In Claude's original question, it doesn't appear he's using CFCONTENT: I've noticed that application.cfm is indeed

RE: application.cfm

2011-06-23 Thread Andrew Scott
I think he admitted to it a bit later. Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Thursday, 23 June 2011 6:26 PM To: cf-talk Subject: Re: application.cfm Dave, I realise that. In this case he

Re: application.cfm

2011-06-23 Thread Russ Michaels
mean secured login via an admin panel to edit ths? Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Russ Michaels [mailto:r...@michaels.me.uk] Sent: Thursday, 23 June 2011 5:15 AM To: cf-talk Subject: Re: application.cfm It is pretty simple

Re: application.cfm

2011-06-23 Thread Dominic Watson
the file, nor compile it. Yhe file is actually a pdf file under .cfm extension. This is to force execution of an application.cfm first in which I check if the user is authorized to open the file. If yes, the application.cfm returns the document with the correct name and headers

Re: application.cfm

2011-06-23 Thread Claude Schnéegans
In Claude's original question, it doesn't appear he's using CFCONTENT: Yes I am. Here is a summary of the code in application.cfm: You can see that the requested file is never executed nor intended to. The only purpose of the .cfm extension is to force the execution of the application.cfm Here

RE: application.cfm

2011-06-23 Thread Andrew Scott
will be honest you have far too much going on in the Application.cfm, why not put that in the cfml template that pulls up the PDF in the first place? I will ask another question, is this application.cfm in the directory of the template in question, or are you relying on the one in the root

Re: application.cfm

2011-06-23 Thread Claude Schnéegans
bytes that look like a CF tag, then it causes a compile error and the application.cfm is not even executed. This is the first time it happens in about 10 years I've bee using this method. I thought the template would never be compiled because of CFABORT in application.cfm, now I see

RE: application.cfm

2011-06-23 Thread Andrew Scott
with your application.cfm and the template in question and the PDF and I will have a look at it for you. And tell me which version of ColdFusion you are trying to run this against. Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Claude Schnéegans schneeg

Re: application.cfm

2011-06-23 Thread Claude Schnéegans
I will ask another question, is this application.cfm in the directory of the template in question, Yes, of course, and it include higher lever application.cfm But you really need to work out why it is trying to compile the PDF as a CFML template, Again, since application.cfm

Re: application.cfm

2011-06-23 Thread Claude Schnéegans
application.cfm 2. execute application.cfm... and eventually abort here. 3. compile the requested template 4. execute it It is rather 1. compile application.cfm AND the requested template 2. execute application.cfm... and eventually abort here. 4. execute the requested template There may be a good reason

Re: application.cfm

2011-06-23 Thread Roger Austin
This is the first time it happens in about 10 years I've bee using this method. I thought the template would never be compiled because of CFABORT in application.cfm, now I see it is not the case. Since the problem has happened once in 10 years, I would try to open the PDF in Acrobat Pro

RE: application.cfm

2011-06-23 Thread Andrew Scott
?=] Sent: Thursday, 23 June 2011 11:41 PM To: cf-talk Subject: Re: application.cfm I will ask another question, is this application.cfm in the directory of the template in question, Yes, of course, and it include higher lever application.cfm But you really need to work out why it is trying

RE: application.cfm

2011-06-23 Thread Andrew Scott
?= =?ISO-8859- 1?Q?ue.com=3E?=] Sent: Thursday, 23 June 2011 11:41 PM To: cf-talk Subject: Re: application.cfm I will ask another question, is this application.cfm in the directory of the template in question, Yes, of course, and it include higher lever application.cfm But you really

RE: application.cfm

2011-06-23 Thread Andrew Scott
it is compiled in. ColdFusion will always compile application.cfm/application.cfc and then the template you are trying to run, and onRequestEnd.cfm if you have it. It can't do it any other way, because it has to know what variables might be defined in the application.cfm. The problem that you can't

Re: application.cfm

2011-06-23 Thread Claude Schnéegans
I think you don't understand, I think you don't understand that I perfectly understand what's hapening: Although I assumed the template (pdf file) should not be compiled since never executed, it IS compiled. This causes the syntax error and stops execution. You are not taking into

RE: application.cfm

2011-06-23 Thread DURETTE, STEVEN J (ATTASIAIT)
I believe you are correct that the answer is no and that process seems perfectly logical and correct. Here is how I see the process running... By the way this is not actual knowledge of the process, but how I've always assumed that the process occurred. 1) Request is received by web server

Re: application.cfm

2011-06-23 Thread Claude Schnéegans
My guess is that the compiler takes lots of extra time and resources, so it does all its work before getting into the execution process. May be, however it will also compile some files for nothing, ie: included files actually not included at execution... which represents an extra overhead.

Re: application.cfm

2011-06-23 Thread Russ Michaels
the application.cfm is executed first or not. So the only way to avoid this is to make sure the .pdf.cfm file cannot be linked to directly, and you have been given several ways to achieve this. Russ ~| Order the Adobe Coldfusion Anthology

application.cfm

2011-06-22 Thread Claude Schnéegans
Hi, I've noticed that application.cfm is indeed run before the template called in the url, but the template itself is compiled BEFORE application.cfm is called. I need to have the ability in application.cfm to run some code and NOT compile the template. Is it possible ? CF 9

Re: application.cfm

2011-06-22 Thread Russ Michaels
that application.cfm is indeed run before the template called in the url, but the template itself is compiled BEFORE application.cfm is called. I need to have the ability in application.cfm to run some code and NOT compile the template. Is it possible ? CF 9

Re: application.cfm

2011-06-22 Thread Nathan Strutz
to not compile is weird, strange, odd. I can't think of a logical case for this, and would love to hear it if you have one. That said, you should be able to do this with an Application.cfc file instead of Application.cfm. Make an onRequest method, which will compile and run that function, then from

Re: application.cfm

2011-06-22 Thread Claude Schnéegans
The CFML must be compiled in order for Java to execute it Sure, but actually I don't want to execute the file, nor compile it. Yhe file is actually a pdf file under .cfm extension. This is to force execution of an application.cfm first in which I check if the user is authorized to open

RE: application.cfm

2011-06-22 Thread Andrew Scott
?= =?ISO-8859- 1?Q?ue.com=3E?=] Sent: Thursday, 23 June 2011 12:33 AM To: cf-talk Subject: application.cfm Hi, I've noticed that application.cfm is indeed run before the template called in the url, but the template itself is compiled BEFORE application.cfm is called. I need to have

Re: application.cfm

2011-06-22 Thread Claude Schnéegans
by some code in application.cfm I never want to have the document compiled. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http

Re: application.cfm

2011-06-22 Thread Russ Michaels
/ -Original Message- From: Claude Schnéegans schneeg...@internetique.com [mailto:=?ISO- 8859-1?Q?Claude_Schn=E9egans schneegans@interneti=71?= =?ISO-8859- 1?Q?ue.com=3E?=] Sent: Thursday, 23 June 2011 12:33 AM To: cf-talk Subject: application.cfm Hi, I've noticed

RE: application.cfm

2011-06-22 Thread Andrew Scott
Actually I disagree with what you are saying here, first I would not be putting the authentication in the Application.cfm and instead look at securing it some other way. But that is not your issue. The issue is that you are trying to run a template that will throw an error, nothing that I can

Re: application.cfm

2011-06-22 Thread Claude Schnéegans
executing application.cfm In my mind, application.cfm was called first, then the template compiled and run. Apparently, both application.cfm and the template are compiled first, then executed. This means that if application.cfm does not let the template to be executed, it is compiled for nothing

Re: application.cfm

2011-06-22 Thread Claude Schnéegans
A better way to achieve what you want is to password protect certain folders on your site I never use authentication on the server. Only through CF, since the administrators of my CMS can add/edit their own users, sometime 1000s of members.

RE: application.cfm

2011-06-22 Thread DURETTE, STEVEN J (ATTASIAIT)
=3E?=] Sent: Wednesday, June 22, 2011 11:41 AM To: cf-talk Subject: Re: application.cfm But I am at a loss to explain how a PDF is going to throw a CF Exception error, when using cfcontent to deliver the file it should not be trying to compile that content. The error is not thrown using

Re: application.cfm

2011-06-22 Thread Azadi Saryev
?Claude_Schn=E9egans wrote: Hi, I've noticed that application.cfm is indeed run before the template called in the url, but the template itself is compiled BEFORE application.cfm is called. I need to have the ability in application.cfm to run some code and NOT compile the template

Re: application.cfm

2011-06-22 Thread Russ Michaels
The admin can still edit users, even 1000's On Wed, Jun 22, 2011 at 4:43 PM, wrote: A better way to achieve what you want is to password protect certain folders on your site I never use authentication on the server. Only through CF, since the administrators of my CMS can add/edit

Re: application.cfm

2011-06-22 Thread Rex
it the name of the pdf file, which checks user's access rights to requested pdf and serves the file or shows an error. Azadi On 22/06/2011 22:33 , =?ISO-8859-1?Q?Claude_Schn=E9egans wrote: Hi, I've noticed that application.cfm is indeed run before the template called in the url

Re: application.cfm

2011-06-22 Thread Claude Schnéegans
The admin can still edit users, even 1000's Which admin? Window's or CF? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: application.cfm

2011-06-22 Thread Claude Schnéegans
be executed. At best, the file will be sent as a pdf file by CFCONTENT then application.cfm CFABORTs Furthermore, only the customer, who has paid for his system, is able to upload files. I doubt he ever attemps to sabotage his own system

Re: application.cfm

2011-06-22 Thread Russ Michaels
the admin of your CMS On Wed, Jun 22, 2011 at 7:48 PM, wrote: The admin can still edit users, even 1000's Which admin? Window's or CF? ~| Order the Adobe Coldfusion Anthology now!

Re: application.cfm

2011-06-22 Thread Claude Schnéegans
the admin of your CMS Of course, this is the way it works, but you were talking about password protect certain folders. I don't see how this can be done by CF code when files other than .cfm or .cfc are requested by HTTP and the CF server is not even invoked.

Re: application.cfm

2011-06-22 Thread Russ Michaels
It is pretty simple. use CFFILE to read the .htaccess file add a new user use CFFILE to write the .htaccess file User logs in, when he is authenticated, his credentials are available in the CGI scope for you to use via CFML. As I said, on Apache this is native, on IIS you can use Helicon APE

RE: application.cfm

2011-06-22 Thread Andrew Scott
=E9egans schneegans@interneti=71?= =?ISO-8859- 1?Q?ue.com=3E?=] Sent: Thursday, 23 June 2011 1:41 AM To: cf-talk Subject: Re: application.cfm But I am at a loss to explain how a PDF is going to throw a CF Exception error, when using cfcontent to deliver the file it should not be trying

  1   2   3   4   5   6   7   8   9   10   >