coldfusion-10

Passing IEnumerable Variables into .NET from ColdFusion

你离开我真会死。 提交于 2019-12-10 13:17:56
问题 I'm working on doing some ColdFusion 10 integration with a custom .NET DLL that I don't have the ability to tweak. During this process, I've been able to do everything that I need to do other than create an IEnumerable data type to pass to one of the methods of the object. Here's what I need to integration with: It's the Set_Events method that I'm having the trouble with. I can create the individual Events that are supposed to be part of that enum variable, but I'm unable to create what it

ColdFusion 10 REST API: How to set status code 201 without RestSetResponse()

感情迁移 提交于 2019-12-10 04:21:08
问题 I'm using ColdFusion 10's new built-in REST API and I'd like to return a status code of 201 (Created). I first tried the RestSetResponse() approach that's described here: http://www.adobe.com/devnet/coldfusion/articles/restful-web-services.html. It works well, except that it forces you to set the function's returntype to "void". The problem with "void" is that whenever I throw an exception, it no longer returns the proper JSON error message. Throwing this exception: <cfthrow errorcode="400"

How to scope closure's variables in CF10?

橙三吉。 提交于 2019-12-10 02:47:32
问题 Quoted from the Adobe ColdFusion 10: Using closures documentation: function helloTranslator(String helloWord) { return function(String name) { return "#helloWord#, #name#"; }; } How to scope helloWord and name properly on the return line? Are they both in Arguments scope? If that's the case, they must be unique? The Closures and functions section also mentions there are 4 more scopes on top of the already long scope search: In closure, following is the order of search for an unscoped variable

How to disable localhost_access_log files for ColdFusion/Tomcat

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 17:03:50
问题 I was running out of disk space on a web server. Since the logs are stored on another drive and there wasn't any new files for the web sites, there had to be something else going on. I found that the Tomcat service that comes with ColdFusion 10 was writing log files for every web page request in this folder {ColdFusion Root}\cfusion\runtime\logs. They accounted for 8GB of disk space! The filenames were in this format: localhost_access_log.YYYY-MM-DD.txt If you are running a single site on

var scoping and module calls in a cfc [duplicate]

女生的网名这么多〃 提交于 2019-12-08 03:31:10
问题 This question already has an answer here : Can cfmodule return values to caller's local scope? (1 answer) Closed 4 years ago . If I have a method in a CFC which needs to call in some legacy code via a module call (to perform some critical functionality) am I at risk for variable "bleeding"? For example: <!--- in my cfc ---> <cffunction name="myFunc"> <cfset var qData = ""> <cfmodule template="some_legacy_code.cfm" attr1="hi" attr2="hello"> <cfreturn qData> </cffunction> <!--- in some_legacy

ColdFusion: session variables not sticking in website migrated from CF 8 to CF 10

心不动则不痛 提交于 2019-12-08 03:27:44
问题 I manage a ColdFusion-based website that recently migrated from CF 8 to CF 10. The site requires users to log in and keeps certain values in session variables, which are used throughout the site for verification, etc. Since the migration to CF 10, I have been having a lot of trouble with sessions not "sticking" from page to page, particularly after the login process. I had not been using cookies to keep track of values on the client side prior to the migration, nor do I use addtoken="yes" for

BouncyCastle Library in ColdFusion 10

依然范特西╮ 提交于 2019-12-07 18:51:54
问题 I've been trying to get RSA Private Key Encryption working in ColdFusion 10 and installed the BouncyCastle library since it supports the encryption mode that my application requires. Trying to load the library with JavaLoader resulted in errors ("Class is on the bootclasspath" and "JCE cannot authenticate the provider BC") so I had to install it statically... Copy the jar to %CF_ROOT%/jre/lib/ext/ and add the following to %CF_ROOT%/jre/lib/security/java.security : security.provider.<N>=org

How to get DateCompare() to behave in ColdFusion 10?

て烟熏妆下的殇ゞ 提交于 2019-12-07 03:28:54
问题 I'm using CF10 with latest update level on Windows in Pacific Standard Time. I need a datecompare() combination that returns 0 but I cannot get it to behave every since Adobe decided to change the behavior of DateConvert() and DateCompare() <cfset filePath = getBaseTemplatePath()> <cfset fileinfo = getFileInfo(filePath)> <cfset lastModified = fileinfo.lastModified> <cfset lastModifiedUTC = dateConvert("local2utc", lastModified)> <cfset lastModifiedUTC2 = dateAdd("s", getTimezoneInfo()

Import Certificate for ColdFusion10

与世无争的帅哥 提交于 2019-12-06 12:33:32
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 directory keytool -import -keystore cacerts -alias giveUniqueName -file filename.cer But when I try and do a

var scoping and module calls in a cfc [duplicate]

a 夏天 提交于 2019-12-06 11:38:13
This question already has an answer here : Can cfmodule return values to caller's local scope? (1 answer) Closed 4 years ago . If I have a method in a CFC which needs to call in some legacy code via a module call (to perform some critical functionality) am I at risk for variable "bleeding"? For example: <!--- in my cfc ---> <cffunction name="myFunc"> <cfset var qData = ""> <cfmodule template="some_legacy_code.cfm" attr1="hi" attr2="hello"> <cfreturn qData> </cffunction> <!--- in some_legacy_code.cfm ---> <cfquery name="qData"> select * from x </cfquery> <cfset caller.qData = qData> By using