The official community for ColdFusion.
Recently active
I simply cannot get the CC part of the code below to work. The message is delivered to three recipients, but not delivered to the CC recipient. <cfquery name="GetTOEmails" datasource="PURCH"> SELECT ApproverEmail FROM [PurchaseRequisitions].[dbo].[Approvers] WHERE TierLevel='01'</cfquery> <cfmail query="GetTOEmails" from="My Domain User <mydomainuser@domain.com>" to="#GetTOEmails.ApproverEmail#" cc="another@domain.com" subject="Another Test" server="myserver" username="myuser" password="mypassword" priority="highest" port
The documentation at https://helpx.adobe.com/ee/coldfusion/kb/coldfusion-2021-update-3.html says:If you've created a mapping of the cf_scripts folder, you must copy the contents of the downloaded zip into CF_SCRIPTS/scrips/ajax folder to download the ajax package.The link on the page is to just the jar file, so I assume they are taking about the zip file you can download from the Update 2 page: https://helpx.adobe.com/coldfusion/kb/coldfusion-2021-update-2.html#:~:text=ColdFusion%20(2021%20release)%20Update%202%20(release%20date%2C%2014,cfsetup%20updates.It seems strange to paste the contents of the zip file which is the "bundles" folder into CF_SCRIPTS/scrips/ajax... am I missing something?
Hello everyone! The toolbar in Coldfusion 21 cftextarea is not similar to the one in Coldfusion 10. How to reduce the toolbar to 3 elements: Bold, Italic, Underline. Thanks!Cftextarea.cfm <!doctype html><html><head><meta charset="utf-8"><title>cftextarea</title><link rel="stylesheet" href="css/custom.css"></head><body><cfform name="frmExample"><div id="cftextarea_content"><cftextarea name="mytext" richtext="true" toolbar="Single">Make Love Not War!</cftextarea></div><cfinput type="submit" value="Ok" name="submit"/></cfform></body></html>
Hi,We are trying to accept old inbound links, that are currently bouncing.The old urls contain: /County_Detail.cfm/CountyID:XXX (XXX = UniqueID)We want the old links to redirect to /Counties/County_Detail.cfm?CountyID=XXXWe're using CF10 and IIS 8.5We simply want to replace the delimiters / and : We've tried a number of settings, with the following as the latest. Would someone kindly point out the error of our ways.<rewrite><rules><rule name="Rewrite Counties" stopProcessing="true"><match url="^County_Detail.cfm([a-zA-Z0-9-+]+)CountyID([a-zA-Z0-9-+]+)" /><action type="Redirect" url="County_Detail.cfm{R:1}CountyID{R:2}" /></rule></rules></rewrite> Thank you, so much!
In CF2021, an expression of the form somevar[1].xthrows an exception when the value of x is null. This happens even when trying to test for null like IsNull(somevar[1].x) There's no similar problem with somevar[1][1] or somevar.x.x or somevar.x[1] or even somevar[1][1].x.x[1].x[1].x.x.x as long as the variable and its contents have the appropriate types, and no problem with somevar[1].x when the x in the struct in the array is not null. I tried many variations and the exception is thrown only in these specific circumstances: the next-to-last operation is an array element lookup, the last operation is a struct member lookup, and the value found in the struct is null. If the array access and struct access are separated from each other by the use of a temporary variable, the exception doesn't happen. The exception message is "Element X is undefined in a CFML structure referenced as part of an expression." Here's a demo of the exception-throwing case, along w
Hello all: I am just getting started with cfwebsockets and I am having a bit of trouble. What I found from online, is that since this is public-facing application, it is best to use a websocket proxy. CF2021, Version: 2021.0.03.329779Ubuntu 20.04LTS Steps so far:1. I added the websocket package to my server and enabled web-sockets. Restarted Server.2. Added this to my application.cfc: <cfset this.wschannels = [ {name="chat"} ] /> (the application has a this.name= set from a variable as well3. created a simple page that has this: <cfwebsocket name="wSocketObj" onMessage="wsOnMessage" onOpen="wsOnOpen" onClose="wsOnClose" onError="wsOnError" subscribeTo="chat" secure="true"/> <script type="text/javascript"> wsOnMessage = function(aEvent,aToken) { console.log('wsOnMessage',aevent); var message = ColdFusion.JSON.encode(atoken); var txt=document.getElementById("myDiv"); txt.innerHTML +=message +"<br>"; } ws
cold fusion 2016 is locking files randomly and it is hang several times. installed on windows 2012 R2 ,pl suggest solution
So recently our security appliance started locating log4j 1.x files within many directories of ColdFusion. Would it be safe to delete these files since CF2018u13 no longer uses them? Example: <CF2018>\cfusion\jetty\lib\ext\log4j-1.2.17.jar Thanks!
Is there any way to specify the style in a CFChart as a variable instead of a file? <cfchart format="html" chartheight="800" chartwidth="1200" style="ProdChart.js"> vs<cfchart format="html" chartheight="800" chartwidth="1200" style="#chartstyle#">
Hi, We have CF2018 v2018,0,13,329786 on windows server 2016.Our problem is random messages with attachments gets undelivered from CF to SMTP relay. The problem is very random and seconds if not less, other messages sometimes with attachments get sent right after this error. mail.log:"Error","scheduler-5","03/08/22","10:55:59","","javax.mail.MessagingException: IOException while sending message; nested exception is: java.io.FileNotFoundException: ..... 26534A53-C408-A386-C3308E8CD0C43D73.pdf (The system cannot find the file specified)" mailsent.log -- shows that it was moved to the undelivr folder. exception.log: -- javax.mail.MessagingException: IOException while sending message;nested exception is:java.io.FileNotFoundException: .......26534A53-C408-A386-C3308E8CD0C43D73.pdf (The system cannot find the file specified)at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1365)at coldfusion.mail.MailSpooler.sendMessage(MailSpooler.java:1541
I recently updated to ColdFusion 2021 and I got almost everything working except for one chart that I am not sure how to resolve.I am using scalefrom 99% to 100% to get a better view of the data. When the chart is plotted it colors the bars outside the internal graph area and overwrites the x-axis labels. I have included sample code and screen shots.<cfset plot = { "value-box":{ "visible":true, "placement":"top-in", "font-color": "white" }}><h3>Availability by Month (%)</h3><cfchart chartheight="400" chartwidth="520" format="png" scalefrom="99" scaleTo="100" showlegend="no" plot="#plot#" > <cfchartseries t
We recently updated two customers with the latest security hotfix, Coldfusion 2021 Standard Update 2 and Coldfusion 2018 Update 12 Enterprise. After applying the update portions of our code broke. We need to know if this is an unsupported feature, a deprecated feature, or a bug in each of the updates. This code allows us to reference a value within a query using the underlying Java method IndexOf and prior to the updates, has worked correctly since Coldfusion 9. Code: getCCRepairs["MAP_CustID"].IndexOf(JavaCast("string","#session.MAP_CustID#")) :: getCCRepairs is a Query :: object "MAP_CustID" is a column in the query object :: #session.MAP_CustID# is a variable that contains the current value of MAP_CustID Error: The IndexOf method was not found I can confirm that this is related to each of the updates and previous versions/updates are not affected and work as expected. Have any of you experien
Hi All, I have a CF 11 Server (sorry I know its pretty outdated - we are scheduling to update it)Recently our server was restarted and CF couldnt start anymore. The only CF log file being updated is the C:\ColdFusion11\cfusion\logs\coldfusion-error.log Sorry for the images below but I can't copy and paste or even download the file as its outside my network. I have requested them to copy the error log, so as soon as I have it I will update hereBut the only thing it states is In The windows events - I got this message Following up some other discussions I have checked the jvm.config but it is pointing to the correct JAVA path. Its my first post here so I'm sorry if I post in the wrong topic, Thanks in advance
CreateDate() works for other Feb dates in the system except this leap day. Local.TempDate = ExecutedSearch["datefield_dt"][Local.i]; /* Mon Feb 29 17:00:00 AEDT 2016 */ Local.TempDate = CreateDate(Right(ExecutedSearch["datefield_dt"][Local.i], 4), Month(Local.TempDate), Day(Local.TempDate)); Has anyone come across this before? I cannot imagine a mature language has a leap year bug. Is there a workaround? Thank youBrent
x = nullif (x != null) {} Both of these statments fail when used in a custom tag. Both statements succeed when using in the requested template or a template that is included in another template. This issue occurs when using tag or script syntax. Can anyone else reproduce this issue? Version: 2021,0,03,329779 Message: Variable NULL is undefined. Stack Trace: coldfusion.runtime.UndefinedVariableException: Variable NULL is undefined. at coldfusion.runtime.CfJspPage._get(CfJspPage.java:462) at coldfusion.runtime.CfJspPage._get(CfJspPage.java:417) at coldfusion.runtime.CfJspPage._get(CfJspPage.java:396) at coldfusion.runtime.CfJspPage._autoscalarize(CfJspPage.java:2363) at cfrendercourse2ecfm589117369.runPage(C:\home\evansville.edu\custom-tags\course\rendercourse.cfm:2) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:257) at coldfusion.filter.CFVariablesScopeFilter.invoke(CFVariablesScopeFilter.java:56) at coldfusion.tagext.lang.ModuleTag.doStartTag
I'm running into a rather strange issue and I don't know how to debug it. I'm using a per-application datasource feature in the `Application.cfc`: this.datasources[ "bennadel" ] = { .... } And, when I restart the ColdFusion service is sometimes says that the datasource cannot be found. This "state" seems to hold for the entire life of the application, and all requests coming into the application are breaking. But then, if I restart the ColdFusion service again, it works fine (probably). I'm kind of stumped here - not sure how to even go about debugging this.
Hello. On the Adobe Help site, I'm seeing a notice on many array functions about CORBA being removed for CF 2021. I'm trying to find a future-friendly way to, for instance, see if a value exists in an array. ArrayContains, ArrayFind, ArrayContainsNoCase and ArrayFindNoCase have the CORBA removal notice. Is there a built-in function that works for CF 2021 that does a similar thing?
How to code 'queryFilter'. I followed the instuctions CF user guide to the letter (and all other variations) and I'm still stuck.
What is the best method for displaying 360-degree images on a ColdFusion website?I'm developing 360 images with hot spots where the user can click on part of the image and have data popup in a new window displaying properties / drawing links.Can CF handle this directly or do I need a Java / Jquery or another third-party app to complete this project?
Hello All,My name is HP. I am working for Leidos and our team is supporting one of the FAA's CF applications.I am assigned to find the way to make connection from our CF application to a sharepoint server.I have never done it (using CFSharepoint) before.The sharepoint administrator provides me with User Name, Password and the URL. Manualy I am able able to log in this URL with User Name, Password they provide me.however the below is my code is to hit/connect their URL give me an error <cfsharepoint action="getlistitems"WSDL="https://xxx.xxx.xxx/ajg/apt-archive/Lists/JAT/AllItems.aspx"username="xxxx"domain="https://xxx.xxxx.xxx"password="xxxx"authtype="Basic"name="listCollection"/><CFDUMP var="#listCollection#"> This is the error I got when I ran the above codes. Unable to read WSDL from URL: https://xxx.xxx.xxx/ajg/apt-archive/Lists/JAT/AllItems.aspx.Error: 401 Unauthorized. It is recommended that you use a web browser to retrieve and examine the requested WSDL document to
The 2016 and 2018 releases of ColdFusion are available as Docker images. Get started today. Charlie Arehart (he needs no introduction!) presented Docker for ColdFusion in CFSummit 2019. Check out his presentation and get on the Docker bandwagon in a matter of minutes. Whether you're a developer, an admin, or any stakeholder in your engineering team, there's value in understanding containers. Get started with containers today. Thank Charlie and I later! Charlie's presentation in CFSummit 2019.
A funny thing happend last night. A loop over the hours hit 2:00 and failed a createDateTime. So I added guard programming to test validity using isDate(), to skip the items in spring forward DST are not there (2:00 hour). It still failed. Apparently isDate is build on top of createdateTime, but instead of capturing it internally and returning false as it should, it throws an exception. This does not seem like the correct behavior for isDate().Sample code: <cfset response = isDate("3/13/2022 02:00:00")> Date value passed to date function createDateTime is unspecified or invalid.coldfusion.util.DateUtils$InvalidDateException: Date value passed to date function createDateTime is unspecified or invalid.at coldfusion.util.DateUtils.createDateTime(DateUtils.java:1503)at coldfusion.runtime.CFDateTimeParser.toDateTime(CFDateTimeParser.java:592)at coldfusion.runtime.CFDateTimeParser.parseTime(CFDateTimeParser.java:356)at coldfusion.runtime.CFDateTimeParser.parseTime
Hello We are using ColdFusion 2016 for our production server and the following vulnerablity has been reported. Currently we are on the latest update which is Update 17.Current Update: ColdFusion 2016 Update 17Update Level: 17Update Type: SecurityInstall Date: Tue, 07 Dec 2021 06:54:19 -0800 Below are the details for vulnerablity:The detection logic checks for the following -Software versionsApache Tomcat versions 8.5.0 (including) up to 8.5.47 (including)Software detected on this deviceApache Tomcat 8.5.32.0
Hi All, I need help with ColdFusion Deployment profile. My deployment profile currently shows "Development" in Deployment Profile. I need to convert this to "Production" profile and apply the license Serial Number without re-install. How can I do? ThanksRam
I am running docker destop and coldfusion 2021 local , I need the ajax package but i am unable to install it via package manager via the cfadmin or via cli. here is the error messages i get ... An error has occurred while installing the package ajax. Please check logs for more details. An error has occurred while installing the package ajax. Exception : Script folder /app/cf_scripts/scripts not found. Ajax package has been downloaded at /opt/coldfusion/bundles/ajax-2021.0.0.323925.zip. If you have created a mapping of cf_scripts folder, you can copy the contents of the downloaded zip into CF_SCRIPTS/scrips/ajax folder any help would be apriciated
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.