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

Re: Application.cfm/c

2013-09-25 Thread Byron Mann
They got back to me, I think I pretty much shot down their theories. 1- Application scopes are still present without an application.cf* file and shared across all sites with no app file 2- Garbage Collection performs better when applications are defined 3- Poor structure which leads to more

Re: Application.cfm/c

2013-09-25 Thread Nando
The question to ponder here is what an *empty* default Application.cfc file is going to achieve? Not much, I believe. You can set per application mappings in an Application.cf* file, (from CF9 I think?) which is *very* helpful on shared hosting, but an empty Application.cfc file isn't going to

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:

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 on a

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 into the

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
it work right, well it did then but not anymore. And that just makes my point even stronger. Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Wednesday, 29 June 2011 1:44 AM To: cf-talk Subject: Re

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
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 tag after CFCONTENT There is still a good reason for CFABORT: stop

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
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:-) I didn't miss it. The content of the pdf has absolutely no interest. I told you it hapened to contain somewhere a string cf, the rest making an invalid CF tag. This is enough

Re: application.cfm

2011-06-26 Thread Claude Schnéegans
The alternative, though, would be for the executing process to run your first program before compiling the second, which sounds like it would be generally an inefficient thing to do - the more times control has to be passed from one process to another, the longer things generally take. And

Re: application.cfm

2011-06-26 Thread Dave Watts
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 there is a solution but I would need to see the code and the offending PDF to help further. No, he did post all the

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
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 called from. What you don't understand is that the file somefile.pdf.cfm IS the actual somefile.pdf file simply renamed

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 of the

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 to

Re: application.cfm

2011-06-25 Thread Russ Michaels
hasn't this all been said several times already ? On Sat, Jun 25, 2011 at 5:59 PM, Dave Watts dwa...@figleaf.com wrote: 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

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
Here's how I would approach this. First, if you are dead set on having the link to the pdf appear as a regular 'pdf' link, create a url rewrite rule (using either mod_rewrite in Apache, an IIS isapi extension for IIS, or another mechanism if you are using some other webserver). The mod_rewrite

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

RE: application.cfm

2011-06-23 Thread Andrew Scott
?= =?ISO-8859- 1?Q?ue.com=3E?=] Sent: Thursday, 23 June 2011 11:04 PM To: cf-talk Subject: Re: application.cfm 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

Re: application.cfm

2011-06-23 Thread Claude Schnéegans
You keep talking about templates being compiled, if there is an error as you have mentioned this will stop the compile of the template and it will look like it is being complied before the other. This is what happens indeed. There a compile error because the pdf file happens to contain some

RE: application.cfm

2011-06-23 Thread Andrew Scott
...@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 11:29 PM To: cf-talk Subject: Re: application.cfm You keep talking about templates being compiled, if there is an error as you have mentioned

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 is to be

Re: application.cfm

2011-06-23 Thread Claude Schnéegans
Now if you are 100% confident that your PDF is being delivered by the cfcontent tag, then it sounds like you may have come across a bug. No, the pdf is not delivered in case of an error, since it is a compile error, no code is executed. For years I've been using this trick, and no file even

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
://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: Thursday, 23 June 2011 11:50 PM To: cf-talk Subject: Re: application.cfm Now if you

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
wow this has dragged on a bit. I think perhaps the point is being missed, so let me have a go for you. The pdf file is never normally executed, so therefore you believe it should never be compiled either, which is a correct assumption if you are just delivering the file with with CFCONTENT, as

Re: application.cfm

2011-06-22 Thread Russ Michaels
The CFML must be compiled in order for Java to execute it You can however stop the class file being generated so that it is compiled to memory only. In the CFADMIN under caching settings - *Save class files* Russ On Wed, Jun 22, 2011 at 3:33 PM, wrote: Hi, I've noticed that

Re: application.cfm

2011-06-22 Thread Nathan Strutz
First, I will say that this is a strange request, and chances are, you're doing something wrong. Compile errors mean that there was more than an error, it's that the template has serious problems that the CFML compiler couldn't parse. The fact that you still want one page to execute and another

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 the

RE: application.cfm

2011-06-22 Thread Andrew Scott
Do you mind me asking what need would require this? I am struggling to even think of one. Regards, 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?=

Re: application.cfm

2011-06-22 Thread Claude Schnéegans
I can't think of a logical case for this, and would love to hear it if you have one. Please see my othe reply. When an administrator uploads some document ie: myDoc.pdf, it is stored as myDoc.pdf.cfm When a user tries to open directly myDoc.pdf.cfm in the url, the document is protected by

Re: application.cfm

2011-06-22 Thread Russ Michaels
A better way to achieve what you want is to password protect certain folders on your site so that the files cannot be access until a user has logged in. Using CF to do this only works to secure cfm files, so if you want to secure PDF's and the likes then simply use .htaccess files instead. This

RE: application.cfm

2011-06-22 Thread Andrew Scott
/ -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 1:12 AM To: cf-talk Subject: Re: application.cfm The CFML must be compiled in order

Re: application.cfm

2011-06-22 Thread Claude Schnéegans
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 cfcontent, but simply when CF compiles the file when the HTTP request is received, before even

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
store your pdf files outside of web root so they are not directly accessible. serve them via an intermediary .cfm page, passing 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 ,

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
Hi Claude, I agree to both Steven and Azadi's solution. Sorry Claude, but yes, you will have to rewrite your system. The trick you are using is a security risk. Someone can rename a CFM file to a PDF file and upload it. Now that CFM code can be executed on the server. It shouldn't be

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
I agree to both Steven and Azadi's solution. Of course I know this solution. I thought I had a simpler one. Someone can rename a CFM file to a PDF file and upload it. Now that CFM code can be executed on the server. No way. Even if the pseudo pdf file actually contains CFML code, it cannot

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

RE: application.cfm

2011-06-22 Thread Andrew Scott
June 2011 5:09 AM To: cf-talk Subject: Re: application.cfm 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

RE: application.cfm

2011-06-22 Thread Andrew Scott
Would that not be another risk, or do you 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

Re: application.cfm question

2010-12-31 Thread Kym Kovan
On 31/12/2010 9:55 PM, Richard Steele wrote: I'm testing some error checking stuff and don't understand why the application.cfm doesn't abort before an error is found in a file. Here's the application.cfm cfabort Here's the index.cfm cftest When the index.cfm is run, it shows the

Re: application.cfm question

2010-12-31 Thread Dominic Watson
The error you have there is a *compile time* *syntax* error, the code will be compiled before the request is 'run' which is why you see the error. If you change the code in index.cfm to cfset variable = undefinedVar /, the code will compile fine and will then abort in your app.cfm as the error

Re: Application.cfm to Application.cfc migration (Problems with Functions in Application.cfc)

2009-08-26 Thread Cutter (ColdFusion)
I would take your UDF's, put them into their own utility CFC, and load the CFC into the APPLICATION scope during onApplicationStart(). If you ever need to reload the CFC, you could always rerun your onApplicationStart() method. Steve Cutter Blades Adobe Certified Professional Advanced

Re: application.cfm question

2006-11-09 Thread RichL
Coldfusion will look for an application.cfm at the current folder level and carry on up the directory tree until it finds one. The first that it finds will override any further up the tree On 11/9/06, John Cox [EMAIL PROTECTED] wrote: One more newb question while I am at it. Does CF load

Re: application.cfm question

2006-11-09 Thread John Cox
On 11/9/06, RichL [EMAIL PROTECTED] wrote: Coldfusion will look for an application.cfm at the current folder level and carry on up the directory tree until it finds one. The first that it finds will override any further up the tree Thanks, I understand that part. What I don't understand

RE: application.cfm question

2006-11-09 Thread Dawson, Michael
] Sent: Thursday, November 09, 2006 7:31 AM To: CF-Talk Subject: Re: application.cfm question On 11/9/06, RichL [EMAIL PROTECTED] wrote: Coldfusion will look for an application.cfm at the current folder level and carry on up the directory tree until it finds one. The first that it finds

  1   2   3   4   5   >