coldfusion-10

ColdFusion10 CFDocument debug output

試著忘記壹切 提交于 2020-01-15 06:05:30
问题 Is there a way to capture the complete HTML code from CFDocument before it generates the actual Document/PDF (for debugging)? The tag itself doesn't seem to support it. What works partially is storing the separate parts of the HTML via cfsavecontent but I can't capture the whole thing at once: <cfsavecontent variable="test123"> <style type="text/css" media="screen"> <!-- Style based on paperSize--> <cfoutput> #request.paperSize.css# </cfoutput> </style> </cfsavecontent> <cfdump var="#test123#

Connection reset by peer: socket write error - cfcontent on Coldfusion 10

て烟熏妆下的殇ゞ 提交于 2020-01-11 08:42:13
问题 We recently upgraded from Coldfusion 9 to CF10 and I'm now receiving a sporadic error on a page where I'm using cfcontent to serve documents (pdf, doc, etc.) I'm using cfcontent to control access to the files, as some are for internal use only. This was not occurring when using CF9 (both standard), and I'm thinking it may be related to the change to Tomcat. I can't recreate the error, but it's occurring 200 times per day or so: coldfusion.tagext.OutputException: The cause of this output

Selecting “uniqueidentifier” type in cfquery

霸气de小男生 提交于 2020-01-07 00:54:14
问题 I need to select a row where identifier matches my variable. Let's say, my variable value is "myvariable" (in uniqueidentifier form, of course). <cfset current_user_id = "myvariable"> Here's my "cfquery" content: <cfquery name="findUser" datasource="#SOURCE#"> SELECT db.[User].UserID FROM db.[User] WHERE db.[User].UserID = "#current_user_id#"; </cfquery> It returns the following error: [Macromedia][SQLServer JDBC Driver][SQLServer]Invalid column name 'myvariable'. The data and query is fine.

Coldfusion 10 on Windows 2k8 - .com/ loads OK but .com/index.cfm gives a 404

荒凉一梦 提交于 2020-01-04 14:21:23
问题 I'm setting up a new server (CF10 W2K8) going by Pete Freitag's new CF10 lockdown guide. I have a test site installed and if I bring up www.mydomain.com it loads the default document (index.cfm) just fine. However, if I try www.mydomain.com/index.cfm (or any other specific .cfm page), I get a 404 not found. IIS logs do record a 404 error. If I create a .htm/.html page it comes up fine. 回答1: I had this problem as well. Running on Windows Server 2008 R2. I found some threads that suggested that

Coldfusion 10 on Windows 2k8 - .com/ loads OK but .com/index.cfm gives a 404

▼魔方 西西 提交于 2020-01-04 14:21:15
问题 I'm setting up a new server (CF10 W2K8) going by Pete Freitag's new CF10 lockdown guide. I have a test site installed and if I bring up www.mydomain.com it loads the default document (index.cfm) just fine. However, if I try www.mydomain.com/index.cfm (or any other specific .cfm page), I get a 404 not found. IIS logs do record a 404 error. If I create a .htm/.html page it comes up fine. 回答1: I had this problem as well. Running on Windows Server 2008 R2. I found some threads that suggested that

Problems determining a file's mime type in ColdFusion

别来无恙 提交于 2020-01-04 13:46:06
问题 When I try to determine a file's mime type with getPageContext().getServletContext().getMimeType() , it returns undefined if the extension is in uppercase (e.g., image.JPG ). Has anyone run into this before? I know there is FileGetMimeType , but that gives me another set of issues within the codebase in which I'm working. I am running ColdFusion 10. 回答1: This appears to be a regression in ColdFusion 10 (it works fine on CF9). I'd go through the motions of raising a bug, but Adobe will more

Why does directoryExists test true but cfdirectory fails?

我只是一个虾纸丫 提交于 2020-01-03 13:08:24
问题 I have a page that accesses in-memory files. We have 10 - 20k files stored in hundreds of directories (up to 2000). All directories and files are created programmatically. There are no permissions set or changed. All files use the default CF account, which we have had no issues with. Every once in a while, we get an error. We test for the existence of a directory. If it exists, we get the contents of the directory and do something with the files. We are successfully able to read directories

Import Certificate for ColdFusion10

拟墨画扇 提交于 2020-01-02 18:44:12
问题 Trying to do a certificate import into the cacerts story in ColdFusion10. I am able to run these commands and get the .cer file to import using these commands. Manually import a certificate Go to a page on the SSL server in question. Double-click the lock icon. Click the Details tab.Click Copy To File. Select the base64 option and save the file. Copy the CER file into C:\ColdFusion9\runtime\jre\lib\security (or whichever JRE ColdFusion is using). Run the following command in the same

Is it possible to rewrite url using ColdFusion?

北战南征 提交于 2019-12-30 05:21:04
问题 I have got a requirement for generating user friendly urls.I am on IIS. My dynamic URLs looks like, www.testsite.com/blog/article.cfm?articleid=4432 Client wants the urls should look like www.testsite.com/blog/article_title I know this can be easily done using IIS URL rewiter 2.0. But the Client wants to do it using ColdFusion only. Basic idea he given like, User will hit the url www.testsite.com/blog/article_title I need to fetch the article id using the article_title in the url. Using the

Does HTMLStripCharFilterFactory @ Solr 3.4 strip out html for returned fields?

我怕爱的太早我们不能终老 提交于 2019-12-25 16:27:52
问题 I'm using CF10 which should be using Solr 3.4 according to corporatezen.com/2013/11/updating-solr-engine-coldfusion. I added <charFilter class="solr.HTMLStripCharFilterFactory"/> to <fieldType name="text"> but the summary field in the search result still includes HTML. Any idea why? <field name="summary" type="text" indexed="false" stored="true" required="false" /> http://localhost:8985/solr/test/admin/schema.jsp shows: Field: summary Field Type: TEXT Properties: Tokenized, Stored Schema: