coldfusion-10

ColdFusion 8 to ColdFusion 10 Migration: CFloginUser Not Working As Expected

会有一股神秘感。 提交于 2019-12-04 15:31:29
After upgrading from CF8 to CF10, moving all files and databases and jumping through all the configuration hoops, the new version of the site is up and running, but the authentication/login is not working. Here are the environments: Old server: ColdFusion Enterprise 8,0,1,195765 Operating System: Windows Vista* OS Version: 6.0 Update Level: .... hf801-00007.jar IIS Version: 7 (*not sure where that "Vista" comes from? The System Information says "Windows Server 2008 Datacenter without Hyper-V") New server: ColdFusion Enterprise 10,0,11,285437 Tomcat Version: 7.0.23.0 Operating System: Windows

ColdFusion 10 CFCookie not honoring domain attribute

只愿长相守 提交于 2019-12-04 11:38:38
I have an Application.cfc with the following settings: <cfset THIS.Name = "Test01" /> <cfset THIS.ApplicationTimeout = CreateTimeSpan(1,0,0,0) /> <cfset THIS.sessionTimeout = CreateTimeSpan(1,0,0,0) /> <cfset THIS.clientManagement = false /> <cfset THIS.SessionManagement = true /> <cfset THIS.SetClientCookies = false /> <cfset THIS.setDomainCookies = false /> And I attempted to send the following cookies: <cfcookie name="CFID" value="#session.CFID#" domain=".test01.domain.net" path="/" expires="never"> <cfcookie name="CFTOKEN" value="#session.CFTOKEN#" domain=".test01.domain.net" path="/"

Website based on REST in ColdFusion

孤者浪人 提交于 2019-12-04 05:50:55
My company is about to redesign a big project from scratch. We are currently thinking about how to implement data providers. I used to integrate some webservices in the last few months and pretty much like handling data this way. So I was thinking about a RESTful design. We will be using ColdFusion 10 that comes with REST support, but I actually don't like the component structure required for it. The biggest advantage is probably that we'll be able to use REST to provide data for all our platforms, that is: website, mobile website and iOS/Android app. My security approach would be as follow:

Coldfusion 10 slower when using Java 1.7 compared to 1.6

和自甴很熟 提交于 2019-12-03 11:11:20
问题 I have a webservice running on Coldfusion 10 64bit . While investigating a memory leak I went to upgrade the JRE from 1.6 to 1.7 but noticed a significant performance hit. I had created a simple test webservice which on JRE 1.6 I could run easily at 5000 requests per minute as soon as I changed the JRE to 1.7 though this rate drops too 2000 or less per minute. Does anyone know of tuning settings or something I am missing. The preference is to use JRE 1.7 as it appears to have fixed the memory

Error in cookie expiration date for Chrome

拟墨画扇 提交于 2019-12-03 10:14:47
I am having problem with the cookie expiry date on Chrome. I set two cookies like this using ColdFusion: <cfset thekey = generatesecretkey("DESEDE")> <cfcookie name="cookie1" value="#Hash(userid&thekey,'SHA-256')#" httponly="true" > <cfcookie name="cookie2" value="#thekey#" httponly="true" > They have been working for a while. However, after the upgrade to ColdFusion 10 and working with Chrome, weird thing started to happen. It only happened with Chrome browser. Other browsers do not have this issue: When these two cookies are set they both end up with an expiry date of Wednesday December 31,

Coldfusion 10 slower when using Java 1.7 compared to 1.6

大兔子大兔子 提交于 2019-12-03 01:34:20
I have a webservice running on Coldfusion 10 64bit . While investigating a memory leak I went to upgrade the JRE from 1.6 to 1.7 but noticed a significant performance hit. I had created a simple test webservice which on JRE 1.6 I could run easily at 5000 requests per minute as soon as I changed the JRE to 1.7 though this rate drops too 2000 or less per minute. Does anyone know of tuning settings or something I am missing. The preference is to use JRE 1.7 as it appears to have fixed the memory leak issue I was having. Running Server JRE: java version "1.7.0_51" Java(TM) SE Runtime Environment

how to get href value using coldfusion?

谁都会走 提交于 2019-12-02 20:19:16
问题 <cfoutput> <cfsavecontent variable="s"> This is some text. It is true that <a href="http://www.cnn.com">Harry Potter</a> is a good </cfsavecontent> <cfset matches = reMatch("<[aA].*?>",s) /> #matches# </cfoutput> I need to get only "http://www.cnn.com" how to do this 回答1: @Bhargavi : Your regex is fine. Try #matches[1]# instead. <cfdump var="#matches#"> will show you the array of values on which the results can be manipulated accordingly. 来源: https://stackoverflow.com/questions/22704786/how

CF 10 crashes on a large number of form fields

隐身守侯 提交于 2019-12-02 12:43:33
When submitting a large number of form fields, ColdFusion 10 crashes even if ColdFusion 9 does not. Earlier versions of ColdFusion 9 did not restrict the number of form fields that could be submitted. ColdFusion 10, be default limits the number of fields to 100. If you go to Server Settings -> Settings then the to Request Size Limits section. There is a setting called Maximum number of POST request parameters . It needs to be adjusted upward As Leigh mentioned (I can personally attest to this), this limit was actually added in 9.0.2. The problem was that there was no way to change it in the

ColdFusion - Inserting arabic/persian characters to mysql

↘锁芯ラ 提交于 2019-12-02 03:18:53
I insert my data into mysql db with this code: <cfprocessingdirective pageEncoding="utf-8"> <cfset setEncoding("URL", "utf-8")> <cfset setEncoding("Form", "utf-8")> <cfcontent type="text/html; charset=utf-8"> <!DOCTYPE html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> </head> <body> <cfparam name="postTextBox" default="" type="String"> <cfoutput> <form action="index.cfm" method="POST" name="form"> <input name="postTextBox" type="text"/> <input name="" type="submit" value="Submit" /> </form> </cfoutput> <cfquery name="myQuery" datasource="hello">

Method Not Found Calling .NET Method with List from ColdFusion

大城市里の小女人 提交于 2019-12-02 02:51:34
问题 For some background, this is related to Passing IEnumerable Variables into .NET from ColdFusion. I've changed the code to use a list instead, and have made progress, but continue to hit roadblocks when using anything other than simple data types with .NET and ColdFusion. So here's the current issue. First, I have a .dll with the following VideoWallEvent.cs file: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CoStar.Utilities.VideoWall { public