coldfusion-11

ColdFusion 11: Changing Application “this” Scope metadata from different functions in extended Application.cfc

北慕城南 提交于 2019-12-14 03:53:26
问题 I have a general understanding of the ColdFusion Application Workflow. But some parts remain unclear to me. The general workflow is as follows... Public Application Settings are set (I.E this.name, this.mappings ext.) onApplicationStart onSessionStart onRequestStart I have a sub-directory with an Application.cfc that extends a root Application.cfc that exists at the web-root After reading tons of blogs that describe this design pattern.... ColdFusion Application-Specific Mappings Work With

CFHTTP - Read data from URL transferring in chunks

微笑、不失礼 提交于 2019-12-14 01:24:09
问题 I am trying to get a file from a URL using cfhttp but it seems that the provider is sending the data in chunks. <cfhttp method="get" url="https://www.test.com/somefile.xml"> </cfhttp> The response header is having Transfer-Encoding as chunked and is missing Content-Length . Also, the statusCode is 200 Ok but the FileContent is showing " Connection Failure ". Any suggestions? 回答1: Finally, I used java.net.URL to get this working: <cfset local.objURL = createObject( "java" , "java.net.URL" )

ColdFusion IPv6 to 128-bit unsigned int

拈花ヽ惹草 提交于 2019-12-13 10:59:10
问题 I needed to create a function that could convert an IPv6 address to its numeric representation. Working with IPv4 is pretty straight forward as it uses an 32-bit unsigned int for its numerical representation. IPv6 is represented by an 128-bit unsigned int. That size of a number is too large for the builtin ColdFusion bit logic functions to use. This function must make use of the underlying Java system to make the conversion. Need a function to do the reverse: ColdFusion 128-bit unsigned int

Coldfusion/MAMP Pro/Windows 10

核能气质少年 提交于 2019-12-13 00:14:18
问题 Documentation on setting up Mamp to work with Coldfusion in a Windows environment seems to be pretty limited, so here I am. I have both MAMP PRO and COLDFUSION 11 set up on a WINDOWS 10 computer. Mamp is pointed to the correct Document Root folder and both Apache and MySQL services start correctly (I assume). When I navigate to 'localhost' in my browser, all I can see is the ColdFusion source - not a rendered page. I assume ColdFusion isn't running in this instance. The .htaccess file seems

How to set debug output query name using queryExecute

最后都变了- 提交于 2019-12-12 10:59:09
问题 I'd like to find out if there is a way to set the debug output query name using queryExecute(). <cfscript> qryTest = queryExecute('SELECT * FROM art', {}, {datasource="cfartgallery"}); writeDump(var="#qryTest#"); </cfscript> Generates debug output like this: UPDATE for CF 11u5, the debug output replaces "_queryname_var0" with "ExecuteQuery". It looks like this variable name is safe from being over-written. 回答1: I'm posting this as an answer so I can maybe get some points. ;) It is a bug, pure

WCF and ColdFusion

空扰寡人 提交于 2019-12-12 10:47:36
问题 I have a WCF WebService I would like to consume using ColdFusion. The regular process is to use CFHTTP to the WSDL with the SOAP request in the body. Normally, this works and everything is working fine. <cfsavecontent variable="xmlBody" > <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/"> <soap:Header/> <soap:Body> <tem:GetVersion/> </soap:Body> </soap:Envelope> </cfsavecontent> <cfhttp url="https://www.example.com/OtherService.svc?wsdl"

coldfusion file content no longer readable when we open the file in an editor

白昼怎懂夜的黑 提交于 2019-12-11 17:35:59
问题 My ColdFusion 11 app is working fine on my local machine ( Windows 10 ). But when I open any .cfm file in Eclipse or even in a Notepad , I get the content - such as the following - that is not readable. It was not happening before. How can I make the files readable again? UPDATE : The website is using IIS 10 on windows 10 . Could the above issue have something to do with IIS? I've noticed that when I open a copy of the same .cfm file from my backup folder I can read the file and the above

ColdFusion - HTTP chunk missing first character

让人想犯罪 __ 提交于 2019-12-10 18:56:19
问题 This question is a continuation to my previous question regarding HTTP chunk transfer in ColdFusion. Now, I have used java.net.URL to read the chunks and this is what I have tried: <cfset local.objURL = createObject("java", "java.net.URL") .init(javaCast("string", "https://test.com/abc.xml"))> <!--- Open Connection ---> <cfset local.objConnection = local.objURL.openConnection()> <!--- Input Stream ---> <cfset local.inputStream = local.objConnection.getInputStream()> <!--- Read Chunks --->

ColdFusion 11 on Windows 10 with IIS is not working

╄→尐↘猪︶ㄣ 提交于 2019-12-10 11:36:35
问题 I installed CF 11 on Windows 10 Professional using IIS option as shown below. But when I go to IIS I don't see CFIDE folder there: I thought the CF installation process would have created a CFIDE folder in IIS with its subfolder Administrator that points to the Administrator URL. But IIS did have any such folder. If I remember in Windows 7, installing CF 11 with IIS option automatically configure Administrator website in IIS - at least that what I recall I had done in Win7. So I manually

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