coldfusion-10

How to fix scheduled tasks after upgrade from ColdFusion 9 to 10

我只是一个虾纸丫 提交于 2019-12-12 09:48:26
问题 After upgrading and migrating from ColdFusion 9 to 10, all of our scheduled tasks are gone. In the logs, there are "Advance Scheduling support is not available in this edition of ColdFusion server" errors. I know this is a known issue that was fixed in the first update. At this point, ColdFusion 10 is on update 10 (which docs says is cumulative so should include update 1), and documentation says to first install the mandatory update then update 10. We did this before migrating, however our

ColdFusion 10 CFCookie not honoring domain attribute

瘦欲@ 提交于 2019-12-12 08:57:26
问题 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="/"

Should encodeForHtml() & encodeForURL() be used from CF10 onward, in favor of htmlEditFormat() & urlFormat()?

左心房为你撑大大i 提交于 2019-12-12 02:24:09
问题 In an earlier question encodeForHtml() vs htmlEditFormat(), how are they different, it seems like the new encodeForHtml() & encodeForURL() functions are superior to htmlEditFormat() & urlFormat() respectively. Should the esapi-based encodeForXXX functions be used in favor of the existing ones? Should the 2 older functions be deprecated? Thank you. 回答1: I have no idea if the two older functions would be deprecated. But I would say that using the new functions would be a good idea, unless you

ColdFusion10 CFDocument Font scaling issue

时光毁灭记忆、已成空白 提交于 2019-12-12 01:42:52
问题 I'm generating a very basic PDF with header and footer like this: <cfdocument format="PDF" pagetype="A4" unit="cm" scale="100"> <cfset template_stlye = fileRead(expandPath('love.css'))> <cfdocumentitem type="header" evalatprint="true"> <cfif cfdocument.currentpagenumber eq 1> <style type="text/css" media="screen"> <cfoutput> #template_stlye# </cfoutput> </style> <div class="pdf_header"> <div class="header_text"> I'm a lovely header </div> </div> </cfif> </cfdocumentitem> <cfdocumentitem type=

ColdFusion 10 does not work for Amazon Elastic Beanstalk

大憨熊 提交于 2019-12-11 18:57:48
问题 I'm trying to deploy ColdFusion 10 to the AWS ElasticBeanstalk service but the stock configuration is failing. I'm trying to create a x64 Tomcat 6 environment. Do you know what changes need to be made to allow ColdFusion 10 to be deployed via Amazone Elastic Beanstalk while permitting the stock config such as SES links? Thanks! Exception SEVERE: Parse error in application web.xml file at jndi:/localhost/WEB-INF/web.xml org.xml.sax.SAXParseException; systemId: jndi:/localhost/WEB-INF/web.xml;

Writing a spreadsheet using CFspreadsheet to avoid error this file might be corrupted

南笙酒味 提交于 2019-12-11 17:32:02
问题 I am trying to figure out how to add my html table to a CFspreadsheet to show in excel. All the examples online that I have found are not as crazy as mine (only a simple one basic query). Any help with this would be greatly appreciated. This is what I have been able to figure out so far for my spreadsheet : <cfset objSpreadsheet = SpreadsheetNew()> <cfset filename = expandPath("./myexcel.xls")> <!--- Create and format the header row. ---> <cfset SpreadsheetAddRow( objSpreadsheet, "Associate

CFSpreadSheet - format column not formatting the entire column

别等时光非礼了梦想. 提交于 2019-12-11 11:28:41
问题 Using CF10 Standard to create a spreadsheet from a query. No matter what I've tried so far, the formatting for a specific column stops at row 32 (1 header row, 31 data), even though the entire sheet is populated to 186 rows. <cfscript> dfStyle=StructNew(); dfStyle.fgcolor="pale_blue"; dfStyle.dataformat="mm/dd/yyyy"; theSheet = SpreadSheetNew('mysheet'); SpreadSheetAddRow(theSheet,'SID,FIRST,LAST,ADDRESS1,ADDRESS2,CITY,STATE,ZIP,EMAIL,ADDED,PID'); SpreadSheetAddRows(theSheet,qry);

How to prevent script tags and other XSS entities from being inserted into the db?

五迷三道 提交于 2019-12-11 10:33:07
问题 I have a form which contains many text boxes. All the text boxes are required fields. As these are textboxes I can not use specific validation except the length. But i do not want to allow the users to insert tags that are vulnerable to xss attacks. I know in ColdFusion i can use htmlEditFormat(),encodeForHTML() while displaying user data for preventing XSS, But I just want to prevent those from inserting to db.'GlobalScriptProtect' option also does not add much security as per my knowledge.

Query of Queries failing in Coldfusion 10

僤鯓⒐⒋嵵緔 提交于 2019-12-11 08:21:36
问题 I'm getting and error when I tried to do a query of query. Table named allData was not found in memory. The name is misspelled or the table is not defined. I have an excel document and I'm outputting to a coldfusion var called allData, then I'm doing a query on that var. but I'm getting an error: What am I doing wrong? The first dump shows the table appropriately. function name="validateExcel" access="public" output="yes" returnType="void" hint="search for dogs"> <cfspreadsheet action="read"

CFQUERYPARAM not working in ColdFusion 10

倖福魔咒の 提交于 2019-12-11 07:58:49
问题 I am passing three integers into a function in a CFC, like this: <cfscript> Q = TOPBIKES.GetTopBikes(127, 10, 11); writeDump(Q); </cfscript> The CFC uses these integers to run a query like this: <!--- GET TOP BIKES ---> <cffunction name="GetTopBikes"> <cfargument name="FeatureID" required="true"> <cfargument name="MinWins" required="true"> <cfargument name="RecordsToReturn" required="true"> <cfscript> LOCAL.FeatureID = ARGUMENTS.FeatureID; LOCAL.MinWins = ARGUMENTS.MinWins; LOCAL