Re: per application settings

2013-12-19 Thread Adam Cameron
I am trying to set up some local mappings (CF9) and it doiesn't seem to recognize it. I have this as part of several variables that are set before the 1st function in my application.cfc... cfset this.mappings[ /cup ] = #application.cuproot#/cup What ended up happening with this? -- Adam

RE: per application settings

2013-12-03 Thread David Phelan
To: cf-talk Subject: RE: per application settings I think we are focusing on the actual image too much here...I am talking about the path to the image. So this is before anything gets served... Eric -Original Message- From: Phillip Duba [mailto:phild...@gmail.com] Sent: Tuesday, November

Re: per application settings

2013-12-03 Thread Brian Kotek
Eric, just accept that you need to add an Apache alias and move on. It'll take you 3 minutes to do this. Several hours of collective time have been spent here explaining this, and it's getting silly now. If the goal has become trying to figure out why your CF Admin mappings are acting in a

Re: per application settings

2013-12-02 Thread Cameron Childress
On Tue, Nov 26, 2013 at 6:15 PM, Eric Roberts wrote: Thank you Cam...now this .png is getting called from a cfm page (header.cfm) So wouldn't the application.cfc be applied? In this scenario the browser makes two requests. 1) to a cfm page and 2) to a png file. Application.cfc is only

RE: per application settings

2013-12-02 Thread Eric Roberts
Subject: Re: per application settings So Eric, unless you have modified some tomcat settings or IIS or Apache settings, then what you are saying is not true. That is, basically, the bottom line. It could be either of those, but we can't move the answer forward unless we identify which

Re: per application settings

2013-11-27 Thread Andrew Scott
On top of what Dave has stated, the very easy thing to remember is that we have tow paths. 1) Relative paths (used for url work) 2) Absolute paths, used for file system and loading basic CRUD on files. Anytime you setup any form of mapping, it is only ever going to be used by CF tags that need

Re: per application settings

2013-11-27 Thread Adam Cameron
So Eric, unless you have modified some tomcat settings or IIS or Apache settings, then what you are saying is not true. That is, basically, the bottom line. It could be either of those, but we can't move the answer forward unless we identify which. If it *is* actually behaving the way you

per application settings

2013-11-26 Thread Eric Roberts
I am trying to set up some local mappings (CF9) and it doiesn't seem to recognize it. I have this as part of several variables that are set before the 1st function in my application.cfc... cfset this.mappings[ /cup ] = #application.cuproot#/cup For instance...when I try to access an image in

Re: per application settings

2013-11-26 Thread Carl Von Stetten
Eric, I don't think ColdFusion mappings are involved when accessing files other than ColdFusion templates and components (.cfm and .cfc). If you look at the source of your web page in your browser, you'll probably see that the URLs are still /cup/images/image.png. The web server then

Re: per application settings

2013-11-26 Thread Jon Clausen
Since your image files are being served by the web server, not by Coldfusion, you will have to create a new variable to hold your image directory prefix, or you will have to create an Alias for your web server to honor. For Apache, in your VirtualHost directive for the site you would specify:

Re: per application settings

2013-11-26 Thread Eric Roberts
So why does the mapping in CFADmin work if I set that up? That is all I am doing, just at an application level...that doesn't make sense... When CF renders the page, it should render the mapping, just like it would render a variable. Eric On Tue, Nov 26, 2013 at 12:54 PM, Jon Clausen

Re: per application settings

2013-11-26 Thread Adam Cameron
I am trying to set up some local mappings (CF9) and it doiesn't seem to recognize it. I have this as part of several variables that are set before the 1st function in my application.cfc... cfset this.mappings[ /cup ] = #application.cuproot#/cup For instance...when I try to access an image in

Re: per application settings

2013-11-26 Thread Jon Clausen
On Nov 26, 2013, at 2:11 PM, Eric Roberts ow...@threeravensconsulting.com wrote: So why does the mapping in CFADmin work if I set that up? That is all I am doing, just at an application level...that doesn't make sense... When CF renders the page, it should render the mapping, just like

Re: per application settings

2013-11-26 Thread Eric Roberts
I know that...I was referring to what is rendered after the fact.When i click on image information, the image info should display the url with /er/ in it...not the other as that is part of the path from the root. Eric On Tue, Nov 26, 2013 at 1:13 PM, Adam Cameron dac.c...@gmail.com wrote:

Re: per application settings

2013-11-26 Thread Eric Roberts
Yes...cf does evaluate the img tag...as it has a mappiung in it...just as it would evaluate it if there was a variable in the path to the image. So yes...CF does evaluate html tags...whenever ther is a / in from of a path...CF is supposed to recognize that as a mapping. If i sewt it up the cf

Re: per application settings

2013-11-26 Thread Jon Clausen
Are you developing on the standalone CF server? If so, that may be why you’re getting that behavior when you specify it in the CF Admin, but not at the application level. You may get that behavior if you’re serving everything through the self-contained server, but that behavior won’t carry

Re: per application settings

2013-11-26 Thread Adam Cameron
I know that...I was referring to what is rendered after the fact.When i click on image information, the image info should display the url with /er/ in it...not the other as that is part of the path from the root. NO, you don't quite seem to get it actually. When I said CF has got nothing to do

Re: per application settings

2013-11-26 Thread Eric Roberts
no...it's not the standalone server. It's going through Apache. This is exactly what mappings are used for...just as they are used the same way if you specify this in Apache. If it works when i set up up in cf admin...then the per application setting should work the same way but only be

Re: per application settings

2013-11-26 Thread Eric Roberts
Adam...if that is true, they why does it pick it up when I set the mapping in CF Admin? I am thinking it is you that isn't getting it... If it works with a mapping in CF Admin, then it should behave the same with a per application mapping...that was kinda the point in creating them. Eric On

Re: per application settings

2013-11-26 Thread Adam Cameron
Yes...cf does evaluate the img tag... No. It absolutely does not. You are mistaken. I'm not vaguely speculating as to what your problem might be: I know what your problem is, and I know how it is you're mistaken about things. It's a fairly common misconception people have. And both John and I

Re: per application settings

2013-11-26 Thread Eric Roberts
again...if it works with a cf mapping in cf admin...how is it not parsing the img tag? Eric On Tue, Nov 26, 2013 at 1:36 PM, Adam Cameron dac.c...@gmail.com wrote: Yes...cf does evaluate the img tag... No. It absolutely does not. You are mistaken. I'm not vaguely speculating as to what

Re: per application settings

2013-11-26 Thread Adam Cameron
no...it's not the standalone server. It's going through Apache. This is exactly what mappings are used for... No they're not. just as they are used the same way if you specify this in Apache. If it works when i set up up in cf admin...then the per application setting should work the same

Re: per application settings

2013-11-26 Thread Phillip Duba
Eric, It might be coincidence only. We had something similar with a directory mapping that caused one thing on one domain but when another domain/app had a similar directory weird things happened until we removed the CF mapping. Adam and John are right, CF mappings as defined through the

Re: per application settings

2013-11-26 Thread Adam Cameron
again...if it works with a cf mapping in cf admin...how is it not parsing the img tag? There are two possibilities here: 1) you have a very special unique version of CF in which a CF mapping setting in CFAdmin will magically change a URL in an image tag. 2) you're mistaken. Those are the only

Re: per application settings

2013-11-26 Thread Eric Roberts
Adam...as i stated several times...when I do the cf mapping in cf admin...it works just fine...so I have already done your experiment... Eric On Tue, Nov 26, 2013 at 1:44 PM, Phillip Duba phild...@gmail.com wrote: Eric, It might be coincidence only. We had something similar with a

Re: per application settings

2013-11-26 Thread Eric Roberts
Philip...it is in a .cfm file that handles the header. in this specific instance, it is calling up a logo image in the header. If this was in an html file, then they would be correct...but in a cfm file...everything is parsed. The point behind having mappings is so that in the code, you are

Re: per application settings

2013-11-26 Thread Jon Clausen
OK, Just ran a test and I can’t duplicate your server mapping functionality with a standard Apache/CF Connector server setup but I *can* duplicate that functionality when I tell Apache to serve an image MIME type (e.g. - .jpg, .png) through Coldfusion. Is this how your setup is configured?

Re: per application settings

2013-11-26 Thread Eric Roberts
John...it's not serving the image...but it renders the path in the src attribute when it renders from cfml to html and JavaScript...the mapping gets converted to the url that the browser sees and uses to get the image...hence the reson the final result from /cup/images/image.png becomes

Re: per application settings

2013-11-26 Thread Carl Von Stetten
Eric, To clear up any questions about how the URL is being built/coded, can you post the content of your .cfm file that handles the header. -Carl V. On 11/26/2013 11:52 AM, Eric Roberts wrote: Philip...it is in a .cfm file that handles the header. in this specific instance, it is calling

Re: per application settings

2013-11-26 Thread Adam Cameron
OK, Just ran a test and I can’t duplicate your server mapping functionality with a standard Apache/CF Connector server setup but I *can* duplicate that functionality when I tell Apache to serve an image MIME type (e.g. - .jpg, .png) through Coldfusion. Is this how your setup is

Re: per application settings

2013-11-26 Thread Phillip Duba
Ok, you've given us more information in this then in the original. Is it just something like this inside of header.cfm: htmlheadtitleMy app/title/headbodyheaderimg src=/cup/images/image.png/ ….. While it is true that file is parsed by ColdFusion it DOES NOT evaluate every tag inside of the

Re: per application settings

2013-11-26 Thread Matt Quackenbush
On Tue, Nov 26, 2013 at 2:52 PM, Eric Roberts ow...@threeravensconsulting.com wrote: Philip...it is in a .cfm file that handles the header. in this specific instance, it is calling up a logo image in the header. If this was in an html file, then they would be correct...but in a cfm

Re: per application settings

2013-11-26 Thread Eric Roberts
Matt...where did I say I was executing a non-cfm file? On Tue, Nov 26, 2013 at 2:04 PM, Matt Quackenbush quackfu...@gmail.comwrote: On Tue, Nov 26, 2013 at 2:52 PM, Eric Roberts ow...@threeravensconsulting.com wrote: Philip...it is in a .cfm file that handles the header. in this

Re: per application settings

2013-11-26 Thread Eric Roberts
Matt...please read what you quoted and that should address your statement about non-cfm files... Philip...it is in a .cfm file that handles the header. in this specific instance, it is calling up a logo image in the header. If this was in an html file, then they would be correct...but in a

Re: per application settings

2013-11-26 Thread Matt Quackenbush
I don't know that you did and I did not say that you did. But you repeatedly stated that CF parses html, and that is 100% WRONG. CF only parses CFML/CFScript. On Tue, Nov 26, 2013 at 3:07 PM, Eric Roberts ow...@threeravensconsulting.com wrote: Matt...where did I say I was executing a

Re: per application settings

2013-11-26 Thread Eric Roberts
Philip...if I go ijnto cf admin and set up /cup in mappings...it works as expected. As a per application mapping...it is not working as expected. here is the surrounding code in the header file... cfform action=#ATTRIBUTES.FORM_ACTION# method=post name=sds_login_form table

Re: per application settings

2013-11-26 Thread Matt Quackenbush
Correct. And you should read what I wrote. I addressed your words, exactly. On Tue, Nov 26, 2013 at 3:09 PM, Eric Roberts ow...@threeravensconsulting.com wrote: Matt...please read what you quoted and that should address your statement about non-cfm files... Philip...it is in a .cfm

Re: per application settings

2013-11-26 Thread Eric Roberts
it parses html in a cfm file...it parses it to see if there are any cf elements in it that it needs to render...like variables and mappings... Eric On Tue, Nov 26, 2013 at 2:10 PM, Matt Quackenbush quackfu...@gmail.comwrote: I don't know that you did and I did not say that you did. But you

Re: per application settings

2013-11-26 Thread Eric Roberts
so back to the question...why are the per application settings not working? Eric On Tue, Nov 26, 2013 at 2:12 PM, Matt Quackenbush quackfu...@gmail.comwrote: Correct. And you should read what I wrote. I addressed your words, exactly. On Tue, Nov 26, 2013 at 3:09 PM, Eric Roberts ow

Re: per application settings

2013-11-26 Thread Matt Quackenbush
No, it doesn't. You're flat out wrong. CF does not, has not, and never will parse HTML. It only looks for CFML code to parse, and handles it accordingly. Ex. img src=/foo/bar/image.png / !---// never parsed by CF --- img src=/#foo#/bar/image.png / !---// never parsed by CF --- cfoutput

Re: per application settings

2013-11-26 Thread Matt Quackenbush
The answer is still the same: What you are expecting will never be experienced with CF. On Tue, Nov 26, 2013 at 3:15 PM, Eric Roberts ow...@threeravensconsulting.com wrote: so back to the question...why are the per application settings not working? Eric

Re: per application settings

2013-11-26 Thread Jon Clausen
On Nov 26, 2013, at 3:15 PM, Eric Roberts ow...@threeravensconsulting.com wrote: so back to the question...why are the per application settings not working? Eric I suspect the answer lies within the unique configuration of your development server. No matter what variables you have

Re: per application settings

2013-11-26 Thread Wil Genovese
I swear this guy is a troll, nobody is that dense. but incase he is: CFMappings are used ONLY FOR things such as CFINCLUDE. They are never used for img src=“/some/place/imagename.png” To get a “mapping” for image or other HTML urls you have to use the web server (IIS OR Apache) Alias

Re: per application settings

2013-11-26 Thread Adam Cameron
Matt...where did I say I was executing a non-cfm file? When you said this: For instance...when I try to access an image in a directory (the path from the root is /cup/images/image.png), I call img src=/cup/images/image.png /, Say you have this in your eric.cfm file: cfset msg = Hi Eric

Re: per application settings

2013-11-26 Thread Adam Cameron
Adam...as i stated several times...when I do the cf mapping in cf admin...it works just fine...so I have already done your experiment... Please... do it again, and perform only the steps I listed. Then you will see you're mistaken, and we can move on. -- Adam

Re: per application settings

2013-11-26 Thread Adam Cameron
it parses html in a cfm file...it parses it to see if there are any cf elements in it that it needs to render...like variables and mappings... No it doesn't. CF only parses the CFML part of any file. It completely ignores anything else. This is easy to see if you decompile the compiled class

Re: per application settings

2013-11-26 Thread Adam Cameron
That's a good explanation / demonstration Matt. -- Adam No, it doesn't. You're flat out wrong. CF does not, has not, and never will parse HTML. It only looks for CFML code to parse, and handles it accordingly. Ex. img src=/foo/bar/image.png / !---// never parsed by CF --- img

Re: per application settings

2013-11-26 Thread Matt Quackenbush
+infinity On Tue, Nov 26, 2013 at 3:28 PM, Adam Cameron dac.c...@gmail.com wrote: it parses html in a cfm file...it parses it to see if there are any cf elements in it that it needs to render...like variables and mappings... No it doesn't. CF only parses the CFML part of any file. It

Re: per application settings

2013-11-26 Thread Eric Roberts
Then why does it work when i set up the mapping in cfadmin? No one seems to want to answer that... Eric On Tue, Nov 26, 2013 at 2:21 PM, Wil Genovese jugg...@trunkful.com wrote: I swear this guy is a troll, nobody is that dense. but incase he is: CFMappings are used ONLY FOR things

Re: per application settings

2013-11-26 Thread Phillip Duba
The fact that it works in this case is not the issue. CF mappings whether defined in the application and/or in the administrator operate the same way. You need to define for us, since we're not sitting their in front of your terminal, the mappings, mapping path and full path, as they appear in CF

Re: per application settings

2013-11-26 Thread Matt Quackenbush
That has been answered, too. From Jon... OK, Just ran a test and I can’t duplicate your server mapping functionality with a standard Apache/CF Connector server setup but I *can* duplicate that functionality when I tell Apache to serve an image MIME type (e.g. - .jpg, .png) through

Re: per application settings

2013-11-26 Thread Eric Roberts
this is the value of cuproot: /usr/test/softfac_test/www/htdocs/er so when it gets put intot he mapping setting it's /usr/test/softfac_test/www/htdocs/er/cup In the cfadmin the path is /usr/test/softfac_test/www/htdocs/er/cup Eric On Tue, Nov 26, 2013 at 2:40 PM, Phillip Duba

Re: per application settings

2013-11-26 Thread Eric Roberts
Saying that I have some special configuration is not an answer...there is nothing special about the setup of the server. He was confused with something about serving up mime types...which had nothing to do with the question. On Tue, Nov 26, 2013 at 2:43 PM, Matt Quackenbush

Re: per application settings

2013-11-26 Thread Phillip Duba
Ok, do me a favor then, delete the mapping from your administrator AND your per-application mapping, Phil On Tue, Nov 26, 2013 at 3:44 PM, Eric Roberts ow...@threeravensconsulting.com wrote: this is the value of cuproot: /usr/test/softfac_test/www/htdocs/er so when it gets put intot he

Re: per application settings

2013-11-26 Thread Eric Roberts
when i do that...the image is broken. If I add the per app setting it is broken. if I add the mapping in cf admin it works... On Tue, Nov 26, 2013 at 2:47 PM, Phillip Duba phild...@gmail.com wrote: Ok, do me a favor then, delete the mapping from your administrator AND your per-application

Re: per application settings

2013-11-26 Thread Phillip Duba
What's the new rendered path from your generated HTML? Phil On Tue, Nov 26, 2013 at 3:50 PM, Eric Roberts ow...@threeravensconsulting.com wrote: when i do that...the image is broken. If I add the per app setting it is broken. if I add the mapping in cf admin it works... On Tue, Nov

Re: per application settings

2013-11-26 Thread Adam Cameron
Then why does it work when i set up the mapping in cfadmin? No one seems to want to answer that... I suspect it's because you're mistaken about that too. Do you perform those steps I asked you to? I mean again, now, this evening, after I asked you to. And after you said I don't have to

Re: per application settings

2013-11-26 Thread Phillip Duba
You also haven't answered my question on how the header CFM is being loaded into the application's page. Is it by CFINCLUDE, CFHTTP, part of a function call, etc.? Phil On Tue, Nov 26, 2013 at 3:50 PM, Eric Roberts ow...@threeravensconsulting.com wrote: when i do that...the image is

Re: per application settings

2013-11-26 Thread Adam Cameron
when i do that...the image is broken. If I add the per app setting it is broken. if I add the mapping in cf admin it works... And did you go an TEST THAT just now, or are you running from memory or describing what you recall from past experience? -- Adam

Re: per application settings

2013-11-26 Thread Eric Roberts
http://www.xxx.com/cup/images/image.png when it is working it is http://www.xxx.com/er/cup/images/image.png On Tue, Nov 26, 2013 at 2:52 PM, Phillip Duba phild...@gmail.com wrote: What's the new rendered path from your generated HTML? Phil On Tue, Nov 26, 2013 at 3:50 PM, Eric Roberts

Re: per application settings

2013-11-26 Thread Eric Roberts
I did...it is included in the index page... On Tue, Nov 26, 2013 at 2:53 PM, Phillip Duba phild...@gmail.com wrote: You also haven't answered my question on how the header CFM is being loaded into the application's page. Is it by CFINCLUDE, CFHTTP, part of a function call, etc.? Phil

Re: per application settings

2013-11-26 Thread Adam Cameron
It just occurs to me... do you have mod_rewrite running, and do you have any rewrite rules in play? -- Adam ~| Order the Adobe Coldfusion Anthology now!

Re: per application settings

2013-11-26 Thread Phillip Duba
And that index page is at www.xxx.com/er/cup/index.cfm, correct? On Tue, Nov 26, 2013 at 3:54 PM, Eric Roberts ow...@threeravensconsulting.com wrote: I did...it is included in the index page... On Tue, Nov 26, 2013 at 2:53 PM, Phillip Duba phild...@gmail.com wrote: You also haven't

Re: per application settings

2013-11-26 Thread Phillip Duba
Thanks. Have you reset the application scope as we've asked you to add and remove the per-app mappings? Phil On Nov 26, 2013 3:55 PM, Eric Roberts ow...@threeravensconsulting.com wrote: http://www.xxx.com/cup/images/image.png when it is working it is

Re: per application settings

2013-11-26 Thread Eric Roberts
Yes on both Philip. No...no mod rewrite Adam. On Tue, Nov 26, 2013 at 3:19 PM, Phillip Duba phild...@gmail.com wrote: Thanks. Have you reset the application scope as we've asked you to add and remove the per-app mappings? Phil On Nov 26, 2013 3:55 PM, Eric Roberts

Re: per application settings

2013-11-26 Thread Cameron Childress
On Tue, Nov 26, 2013 at 3:23 PM, Eric wrote: img src=/cup/images/image.png / Here's what MAY be happening here. In the case of a CFAdmin mapping: 1) Apache gets request for /cup/images/image.png 2) Apache says no such file! what say you JRun (CF9 right?) 3) JRun says: Hey! This aint no CFM

RE: per application settings

2013-11-26 Thread Eric Roberts
Thank you Cam...now this .png is getting called from a cfm page (header.cfm ) So wouldn't the application.cfc be applied? -Original Message- From: Cameron Childress [mailto:camer...@gmail.com] Sent: Tuesday, November 26, 2013 4:48 PM To: cf-talk Subject: Re: per application settings

RE: per application settings

2013-11-26 Thread Phillip Duba
...now this .png is getting called from a cfm page (header.cfm ) So wouldn't the application.cfc be applied? -Original Message- From: Cameron Childress [mailto:camer...@gmail.com] Sent: Tuesday, November 26, 2013 4:48 PM To: cf-talk Subject: Re: per application settings On Tue

RE: per application settings

2013-11-26 Thread Eric Roberts
application settings No it wouldn't. Its being served and called through the browser, that's why you can view it directly. The scenario Cameron describes is very close to what happened to me 2 weeks ago with a mapping, Phil On Nov 26, 2013 6:15 PM, Eric Roberts ow...@threeravensconsulting.com

Re: per application settings

2013-11-26 Thread Dave Watts
it parses html in a cfm file...it parses it to see if there are any cf elements in it that it needs to render...like variables and mappings... This is a long thread, and I'm kind of woozy so I didn't read every response, but just in case this hasn't been fully addressed: this is not entirely