coldfusion

Cannot find qryname14411 key in structure

独自空忆成欢 提交于 2019-12-11 05:44:55
问题 I have an error that seems to be associated with <cfscript> db operation // traffic tracking myQry = new Query(); myQry.setSQL("INSERT INTO dbo.Traffic (Circuit, Fuseaction, IP_hash) VALUES (:circuit, :fuseaction, :ip_hash)"); myQry.addParam(name="circuit", value="#listfirst(rc.fuseaction, '.')#", cfsqltype="CF_SQL_VARCHAR"); myQry.addParam(name="fuseaction", value="#listlast(rc.fuseaction, '.')#", cfsqltype="CF_SQL_VARCHAR"); myQry.addParam(name="ip_hash", value="#cgi.remote_addr#",

ColdFusion: trying to create dynamic downloadable PDF, but not create a file?

落花浮王杯 提交于 2019-12-11 05:42:38
问题 I haven't been able to find an answer to this ColdFusion/PDF question so here goes: I already have a back-end that creates dynamic PDFs using CFDOCUMENT . The user has to submit payment first via authorize.net, then once the payment is processed, they click a link to download a dynamic PDF we create. The PDF is saved in a file on our server. The link the user clicks to download it calls CFHEADER and CFCONTENT which points to the PDF location on the server and it downloads for them. However, I

Coldfusion 2018 on Centos 7 failing to setup Apache connector

别等时光非礼了梦想. 提交于 2019-12-11 05:38:37
问题 I've installing CF2018 on a new server, which is installed and running, I can see it if I run ps aux | ack -i coldfusion $ cat /etc/centos-release CentOS Linux release 7.6.1810 (Core) $ httpd -v Server version: Apache/2.4.6 (CentOS) Server built: Jul 29 2019 17:18:49 UPDATE I had clearly broken something so I've removed earlier errors, but I'm still getting issues with the connector. I have removed all references and files relating to mod_jk from /etc/httpd/conf , reinstalled CF then re-ran

How can I send HTTP Status Code and a Response messages to the client in ColdFusion?

末鹿安然 提交于 2019-12-11 05:27:33
问题 I am implementing the Single Sign On functionality. I have an ColdFusion application which takes input parameters from Java application (POST request). What I need to do is return status codes and a description to indicate whether the user has access and the failed reason if the user does not have access to my CF application. Something like below: I have created a cfc and provided this as an API to allow Java users to pass in their UserName, CustomerID to my CF application. Do I need to write

cflocation and session variables

吃可爱长大的小学妹 提交于 2019-12-11 05:27:25
问题 My user comes from a 3rd party site via http post with login credentials encrypted in the URL. Once the index.cfm recognizes these variables, it sends the request to: <cflocation url="login.cfm?vals=#URLEncodedFormat(url.vals)#" addtoken="yes"> The login.cfm builds a session struct if the login credentials are valid. Session.user.userID = 1; Session.user.firstName = "jo"; Session.user.lastName = "boo"; Then, it does: <cflocation url="somepage.cfm" addtoken="yes"> When I dump the session

ColdFusion server file with apostrophe character

送分小仙女□ 提交于 2019-12-11 05:08:25
问题 When I try to upload a file with apostrophe, I get the error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. if the file name is test's.pdf, I get the error. But if I change the name to test.pdf, there is no error. Does anyone know why? Thanks 回答1: I had a similar situation where I was dynamically creating filenames for pages that created excel files from query results. The approach I took was to create a function

How to delete a client-side cookie when I access a certain page?

妖精的绣舞 提交于 2019-12-11 05:02:33
问题 I am trying to delete a client-side cookie when I access a certain page. How to I do this? Even after using the code below, I'm unable to delete the client side cookie: <cfcookie name="GIFT CAT" value="" expires="NOW" /> <cfset StructDelete(cookie, 'GIFTCAT', false)> 回答1: You need to make sure all attributes are the same as on the set cookie. So secure, domain and path specifically. <cfcookie name="test1" value="1" domain="test.com" /> <cfcookie name="test1" value="" expires="now" /> doesn't

ColdFusion 10 - CFHTTP - Random peer not authenticated on SSL calls (cacerts file updated)

徘徊边缘 提交于 2019-12-11 04:55:47
问题 We have 9 ColdFusion 10 servers running version 10,0,13,287689. We've added the correct certificates to the cacerts file for java version being using by ColdFusion. Our CFHTTP SSL calls will work correctly for a while, then suddenly they will start returning peer not authenticated. The will not work agian until the ColdFusion instance is recycled at which point they work until the fail again. There is no information in the coldfusion-out, coldfusion-error, http, or exception ColdFusion logs

A timeout occur while attempting to local fusebox

情到浓时终转凉″ 提交于 2019-12-11 04:55:31
问题 I have a fusebox application setup on coldfusion 9 and it is in production mode. When application got started, it is giving me following error. A timeout occur while attempting to local fusebox. I have increased the timeout but that not help. Also tried other solution but nothing help. There is one more thing. When i increased the JVM heap size from 1-2 gb to 2-3 gb. Then after restart of coldfusion service, Error remain for 1-2 hour and then site start working. It also stop working after

Best Practice for variable with SQL in cfquery

核能气质少年 提交于 2019-12-11 04:54:01
问题 If I had a variable with with SQL code such as #PreserveSingleQuotes(arguments.sql)# What is the best way to run this code? Is there a way to run this if SQL injection attacks are possible? This question is a follow up to Variable as SQL in cfquery 回答1: #1 is a bit of funny question, because you don't have a great number of options to hand. From a ColdFusion perspective you can either run it via <cfquery> or via Query.cfc . Alternatively DB systems will be able to take a string containing SQL