새로운 Adobe 커뮤니티에 오신 것을 환영합니다.
The official community for ColdFusion.
최근 활동
When I run the code below, I am seeing the 'not defined' message. Why is that? <cflogin> <cfloginuser name="x" Password = "y" roles="z"></cflogin><cfif NOT IsDefined("cflogin")> not defined</cfif>
Environment: CF2016 + patch17OS: WindowsSession Enabled and hosted via Elasticache (Redis)Multi-instance environmentLoad: A LOT Given the two functions:/** * Method used to create a CSRF token, mainly used for login forms - Returns string * * tokenKey - optional, string. Unique key. Must also be used for decoding the token * forceNew - optional, boolean. Defualt to true. Will create new token each time the method is called **/ public string function generateCSRFToken( string tokenKey='some-special-key', boolean forceNew=true ){ return CSRFGenerateToken( arguments.tokenKey, arguments.forceNew ); } /** * Method used to verify a CSRF token, mainly used for login forms - Returns string * * token - required, string. The token to be verified * tokenkey - optional, string. Defualt to true. Will create new token each time the method is called **/ public boolean function verifyCSRFToken( required string token, string tokenKey='some-special-key' ){ return CSRFVerifyToken
We are facing issue when generating pdf in Coldfusion 2018. As per one relieble source we came to know this is existing bug in Coldfusion 2018. It will be really big help if some assist us in solution or is there any patch Adobe is relased then let us know. Below is error detail - RegardsNikhil --------------------------------------------------------Detail: Reason: SERVER ERRORMessage: Error occurred while generating PDF.StackTrace: coldfusion.document.webkit.PDFgErrorHandler$ServiceManagerConversionException: Error occurred while generating PDF.at coldfusion.document.webkit.PDFgErrorHandler.handleConversionError(PDFgErrorHandler.java:190)at coldfusion.document.webkit.HttpPDFRequestHandler.requestPDFGeneration(HttpPDFRequestHandler.java:178)at coldfusion.tagext.lang.HtmlToPdfTag.processPDFgRequest(HtmlToPdfTag.java:1361)at coldfusion.tagext.lang.HtmlToPdfTag.handlePDFgConversionRequest(HtmlToPdfTag.java:1511)at coldfusion.tagext.lang.HtmlToPdfTag.convertToPDF(HtmlToPdfTag.jav
We installed Coldfusion 2021 Update 3 (https://helpx.adobe.com/coldfusion/kb/coldfusion-2021-update-3.html) to mitigate the log4j vunerability, and in the instructions it says to update the web connector: After applying the update, you must upgrade the existing web server connectors. However it does not say anywhere how to install the connector. When I run this command # ./wsconfig -ws Apache -bin /usr/sbin/httpd -script /usr/sbin/apachectl -dir /etc/httpd/conf/ -v I get a message that the web server has already been configured. We are on the vesion below running on Centos 7.9:[info] jk_log_version::jk_connector_version.h (21): Connector Version: 321158 How do we update the web server connectors?
Greetings! I have coldfusion 2016 enterprise installed on a windows server, and I would like to upgrade to 2018 or 2021 (enterprise). I have downloaded the following 2018 / 2021 installers: coldfusion_2018_WWEJ_win64.exe -> from http://www.cfmlrepo.com/coldfusion_2021_GUI_WWEJ_win64.exe -> from https://www.adobe.com/products/coldfusion-family.html I have a Software License Certificate from Adobe with a serial number for "Coldfusion ENT 12.0 ALP AOO License UE LIC SN. The license number of 6 sets of 4 numbers separated by hyphens. I have verified that on the filesystem, the sn in coldfusion2016/cfusion/lib/license_properties matches the serial number in the adobe certificate. My organization purchased a 2018/2021 upgrade license from a reseller called Softchoice last year (which runs out in May), so I assume that we should be able to upgrade our installation with that. Their SKU description is "Coldfusion Ent 2021 14.0 ALP Upgrade License U E". When I run
Hi,Some code that was working perfectly before stopped working. Basically it hits an API and if the API returns a "nextPage" response then we do a CFHTTP hit to the URL contained in "nextPage"So for example if we hit https://amc.az1.qualtrics.com/API/v3/users passeshttps://amc.az1.qualtrics.com/API/v3/users?offset=100 FAILS but if I start with https://amc.az1.qualtrics.com/API/v3/users?offset=100 PASSEShttps://amc.az1.qualtrics.com/API/v3/users?offset=200 FAILS and the error always is structCharset[empty string]ErrordetailI/O Exception: peer not authenticatedFilecontentConnection FailureHeader[empty string]MimetypeUnable to determine MIME type of file.Responseheaderstruct [empty]StatuscodeConnection Failure. Status code unavailable.TextYES I tried importing the cert into keystore which we never had to do before, and that had no effect. I tried putting a 15 sec wait between cfhttp hits and that also had no effect. Thanks,G
Apache on Windows doesn't include the apachectl script, but wsconfig insists on trying to run it, and won't proceed. On a new server with CF2021+hotfix 3 and Apache 2.4.53 from apachelounge, this is the result of an attempted wsconfig: 03/24 08:51:23 debug Could not find file E:\Apache2\apache.exe03/24 08:51:23 debug Could not find file E:\Apache2\bin\apache.exe03/24 08:51:23 info Using Apache binary E:\Apache2\bin\httpd.exe03/24 08:51:25 info Server version: Apache/2.4.53 (Win64)03/24 08:51:25 debug Could not find file E:\Apache2\bin\apachectl03/24 08:51:25 debug Could not find file E:\Apache2\usr\sbin\apache2ctl03/24 08:51:25 debug Could not find file E:\Apache2\usr\sbin\apachectl03/24 08:51:25 debug Could not find file E:\Apache2\etc\init.d\httpd03/24 08:51:25 debug Could not find file E:\Apache2\etc\init.d\apache03/24 08:51:25 debug Could not find file E:\Apache2\etc\rc.d\init.d\httpd03/24 08:51:25 debug Could not find file E:\Apache2\etc\rc.d\init.d\apache03/24 08:51:25
Hello everyone! I ran into the next datetime display issue. Retrieved from a MySQL8 database, the datetime: 2022-04-06 19:27:24, trigger the following error_: “2022-04-06T19: 28: 53 is an invalid date format.” However this is correct in javascript!
Here is my code to do jQuery Autocomplete <!DOCTYPE html><html><head><link href="../assets/styles.min.css" rel="stylesheet"><title>jQuery UI Autocomplete: Using Label-Value Pairs</title><link href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/start/jquery-ui.min.css" rel="stylesheet"><script src="//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script><script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script></head><body><!---<cfajaxproxy cfc="test" jsclassname="testCFC">---><cfset stateQuery=queryNew("abbreviation,label","varchar, varchar")><cfset QueryAddRow(stateQuery, 5)><cfset QuerySetCell(stateQuery, "label", "Alabama", 1)><cfset QuerySetCell(stateQuery, "abbreviation", "AL", 1)><cfset QuerySetCell(stateQuery, "label", "Minnesota", 2)><cfset QuerySetCell(stateQuery, "abbreviation", "MN", 2)><cfs
Hello - is it possible to move parameters into a traditional folder-like URL structure. Example: Current: https://example.com/index.cfm?fuseaction=event&ID=1Possible (?): https://example.com/event/1 Thank you!
Uff! Another problem with cftexarea in Coldfusion 21, The following code: <cfparam name="comment" default="<h3 style=""text-align:center; color:red"">Is it normal?</h1>"> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> <title>Untitled Document</title> </head> <body> <cfform method="post" name="myForm" id="myForm" preservedata="yes"> <cftextarea name="raspuns" cols="90" rows="8" class="style16" id="raspuns" value="#comment#" richtext="true" toolbar="Basic" html="yes"></cftextarea> </cfform> </body> </html> The output in Coldfusion 10 is like in picture 1, and in Coldfusion 21, like in picture 2. The output should be as in Figure 1: red and middle!Thank you for help!
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
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
이미 계정이 있으신가요? 로그인
sso.login.detail.descriptionWithRegistrationLink
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.