The official community for ColdFusion.
Recently active
Hello, all,Just curious: In ColdFusion, why does an array have a length, but a struct has a count? You can take an array and getarrayLen(array), but you can'tstructLen(struct), it has to bestructCount(struct).No biggie.. just curious.V/r,^_^
Hope we have some true regexp guru here...Here's a question. I have the following list.list = "id,option9,option10,option11,option12,option13,option14,option15,orderno,option10txt,option11txt,option16"and I have a term called "optoin16", which does not match any exact item or element in the list, however, in this case,the last item, namely, option16, is the closest match, that is what I want. How do we construct a regular expression to find "option16" from this list based on "optoin16"?Thanks.
How would you handle one or more hyphens in words? For instance, "T-cell" is a word,<cfset w = "T-cell">,REreplace("a long text string T-cell and more...", "#w#", "<a href=''>#w#</a>")The above REreplace function failed to identify "T-cell" as one word since hyphen is used as an indicator for a range such as [a-z], according to Adobe documentation, thus, one needs to add the hyphen to the end to reference it as a literal, I attempted to do the following:REreplace("a long text string T-cell and more...", "#w#-", "<a href=''>#w#</a>") orREreplace("a long text string T-cell and more...", "[#w#-]", "<a href=''>#w#</a>") However, it misfired and caused serious problems. What's the correct regExp for this situation? Many thanks
Hi Team,We are using ColdFusion Enterprise in windows server with IIS. We have setuped 3 instances in ColdFusion added to one cluster and all the websites in IIS will load from that Cluster there are almost 180 to 230 websites. Issue:All of the sudden our CF instances getting restarted when we check event logs we are seeing Below error. Again it start working normal after instance restarted its happening almost couple of times a day we having same problem with three of our servers can you help us with it .The description for Event ID 80 from source ColdFusion 11 Application Server CF1 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. If the event originated on another computer, the display information had to be saved with the event. The following information was included with the event: ColdFusion 11 Application Server CF1 the message reso
There was discussion that ColdFusion was going to deprecate dbvarname with cf2016I have code like this that works in CF2005 but I am migrating to CF2016 and am having issues with the Stored Procedure -dbvarnameThis no longer works<cfstoredproc datasource="#live#" procedure="ABX1265"> <cfprocresult name = "resultXML" resultset = "1" > <cfprocparam cfsqltype="cf_sql_char" dbvarname="@COMPANY" type="in" value="#companyCode#" > <cfprocparam cfsqltype="cf_sql_char" dbvarname="@ENVIRONMENT" type="in" value="#arguments.environment#"></cfstoredproc> <cfquery name="out2" datasource="LIVE#companyCode#" >#resultXML#</cfquery>
I just downloaded a 30 day trial for ColdFusion Standard 2016. I, however, am a university student. I read in the FAQ's for this product that students of eligible universities can receive a license for educational use (I'm not going to use this product for production development). Does anybody have a link for where I can validate my standing as a student in order to get a license?
Hi -Our site formerly ran CF9 and a Standalone Tomcat as application servers for different parts of our application, using IIS as the web server front end. There is a proxy server in front of all of that, too. All of this worked OK.CF10 has now broken this, as requests to our Tomcat Server result in a 404 Not Found error. The difference, I think, is that CF9 did not use an ISAPI redirect filter, while CF10 does. Adding a Tomcat ISAPI redirect filter results in everything (both CF10 and Standalone Tomcat) receiving a 404.I have tried adding details to the CF10 uriworkermap.properties and workers.properties files specifying the file suffix to pass to Standalone Tomcat, and which port to listen to for Standalone Tomcat requests. This receives aBad GatewayThe proxy server received an invalid response from an upstream server.error, which I guess is an improvement, but not a fix.Has anyone else encountered a problem like this? Googling is very difficult, due to the confounding of CF Tomcat a
Does anybody have a coldfusion code to share on how to create the "fingerprint" for posting form parameters to Authorize.Net SIM API?
So I am using application.cfc and I have had the same loginform/application.cfc setup for many sites. A new site was created for me recently and for some reason I cannot get the cflogin to work correctly. It bounces me to the loginform.cfm if I am not logged in, when I log in and submit the form I see the index.cfm but it does not look like the cflogin worked. I see an empty string for getauthuser(). From the index page if I click on any link I get redirected to loginform.cfm again and still the getauthuser() is an empty string. I have tried to dump cflogin.user and it is never defined.Has this ever happened to anyone before? Any thoughts on what could be wrong? Could this be an issue with how the site is set up? I also moved another working site into this directory and the login does the same thing where it works fine in it's original directory.Any ideas or info is appreciated.
I am using cfimage to write a binary image out to the browser that I pull from a DB. It is sort of working, but it only displays the top half of the image. At a certain point no matter what the image is it stops and the rest is grey. Does anyone know why this is? I have verified the images are fine and are not corrupted.
I have code that gets the Oauth token so that I can log into an application. However, the final part - going to the application - has me stumped.I have tried a form:<cfform name="trythis"" id="trythis" method="post" action="http://xxxx/api/v1/users/login.json?token=#gettokennumber#"><input type="hidden" name="email" value="user@example.com"><input type="hidden" name="password" value="pass123"><input type="hidden" name="username" value="user1"></cfform>I am thinking that somewhere I have to use that it uses json...but I'm not sure whereThen I tried cfhttp But it just sat there, doing nothing...<cfhttp url="xxxx/api/v1/users/login.json?token=#gettokennumber#" method="post" > <cfhttpparam type="header" name="Content-Type" value="application/json" /> <cfhttpparam name="password" type="formfield" value="pass123"> <cfhttpparam name="email" type="formfield" v
Bonjour,Je voudrais faire un forum avec question, réponse, commentaire.J'ai fait un select avec un query group mais les réponses ne s'affichent que si elle a au moins un commentaire !!@<CFQUERY name="Details2" datasource="#session.dbname#"> SELECT Forum_Reponse.RID, Forum_Reponse.PID, Forum_Reponse.Rmessage, Forum_Reponse.RDateReponse, Forum_Comment.CID, Forum_Comment.RID, Forum_Comment.PID, Forum_Comment.Cmessage, Forum_Comment.CDateReponse FROM Forum_Reponse,Forum_Comment WHERE Forum_Reponse.PID=9 And Forum_Reponse.RID=Forum_Comment.RID ORDER BY Forum_Reponse.RDateReponse,Forum_Comment.CDateReponse </CFQUERY>.Merci pour votre aide.Cordialement
Hello community members!I have recently installed Coldfusion 11 standard onto a windows 2012 dedicated server with a hosting provider. During installation, I chose the production profile.I have 2 main questions that I can seem to find the answers too.1. How can I connect to the Cold Fusion administrator page via a web browser on my computer without using remote desktop to connect to the dedicated server and running the web browser there.2. How can I get Dreamweaver and Coldfusion Building to connect to the server using RDS? The furthest I have gotten on getting this setup, is that I am able to connect to the server, it shows the directory I told settings to connect to, but does not show any of the files or folders. If I try to create a file or folder, it says I do not have permission.3. Any web sites I setup in IIS, i have to use the coldfusion configurator in order for it to process coldfusion pages.I am moving the sites from an older hosted server
We have many clients that all have multiple web sites. The majority of the web sites, we do not host. If I wanted to look up when their SSL certificate was going to expire and proactively notify them, does anyone know any way to do this through CF9?I've done the following, but I don't get the information from the header that I'm looking for:<cfhttp url="https://www.amazon.com" result="out"></cfhttp><cfdump var="#out#" />However, in PHP, I simply set the following options before calling curl:curl_setopt($ch[$i], CURLOPT_VERBOSE, true);curl_setopt($ch[$i], CURLOPT_CERTINFO, true);VERBOSE enables more infoCERTINFO enables the certificate information to pass in the headerthen curl_getinfo() on my curl handler and it's in an array.I ended up using PHP for this task, but it seems there ought to be a way to do it in CF.Thanks for any thoughts anyone might have!
We are facing CF server going down frequently from last 2 months without any major changes done in code or settings. Please help us to find the root cause of this issue. Current server settings and errors occurring in the logs are as belowCF server version : 9.0.0.251028Edition: EnterpriseOS : UnixOS version: 5.9Adobe Driver version: 4.0 (Build 0005)Java Version :1.6.0_12Web server : ApacheMin JVM Heap size (MB) : 1524 Max JVM Heap size (MB) : 4096JVM Arguments:-server -Dsun.io.useCanonCaches=false -XX:MaxPermSize=1524m -XX:+UseConcMarkSweepGC -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../libErrors from cfserver.log:error Error while reading header S_ERROR_TITLEjava.net.SocketException: Broken pipeerror Error in getRealPathFromConnjava.net.SocketException: Broken pipeerror Error while reading header Acrobat-Versionjava.net.SocketException: Connection reseterror ROOT CAUSE: java.lang.OutOfMemoryError: Java heap spaceerror
My editor freezes on me every day, at least once, and sometimes a lot more. Today it's happened 4 times. I never know when it's going to happen, but it seems to happen more often when I'm working on large files with a mix of cfscript, cftags and html syntax. To get back to work, I have to close the eclipse window, sometimes clicking the close box 2 or 3 times, then force quit the eclipse process from the task manager, and then I can restart eclipse.I'm running Windows 7 (x64), eclipse 3.5.1 build M20090917-0800 (x32) and ColdFusion Builder 1.0.0.263215I cannot start without errors that show up in my log, even after I clear it.I attached my log file.
A few weeks ago my CF MX 6 (yes I know - I hope to upgrade to at least 10 in January) app quit being able to send emails. I looked in the log files for those tasks that did not send emails and found the following message. "An exception occurred when setting up mail server parameters. This exception was caused by coldfusion.mail.mailSessionException...". I restarted the CF server because in the past that seems to remedy issues that have worked for years and quit working for some whatever reason. I got into the CF Administrator after the restart to look at my mail settings, and got this error message "Unable to retrieve mail settings. The selected method getServer was not found ...". Now the Mail Server box is empty and when I try to enter my mail server name and save my update I get the "Unable to retrieve mail settings. The selected method getServer was not found ..." message again. Does anyone know how to fix this?
Hello all,I am very new to ColdFusion and am trying to create an instance of an assembly. Here is the two different paths I have tried so far:*Note* Calculator is the name of the assembly/namespace and Calc is the class inside of the assembly.<cfobject type="dotnet" name="calcInstance" class="Calculator.Calc" assembly="C:\ColdFusion2016\cfusion\wwwroot\WEB-INF\cfclasses\dotNetProxy\Calculator.dll">and<cfscript> calculatorInstance = CreateObject(".NET", "Calculator.Calc", "C:\ColdFusion2016\cfusion\wwwroot\WEB-INF\cfclasses\dotNetProxy\Calculator.dll"); myVar = calculatorInstance.addition(1, 1);</cfscript>Both return "The error occurred in C:/inetpub/wwwroot/Test/index.cfm: line"There's no specific error that is given, just tells me that there was an error. I have JNBDotNetSide.exe running. I'm really not sure what I'm doing wrong. Does anyone have any suggestions on what to do?
HelloI'm running ColdFusion 11 (11,0,06,295053) in a SLESS 12 with Apache 2.4.10I found my logs full of messages like that:application.log: "Error","scheduler-2","11/26/15","09:46:51",,"" "Error","scheduler-2","11/26/15","09:46:51",,"" "Error","scheduler-2","11/26/15","09:46:51",,"" "Error","scheduler-2","11/26/15","09:46:51",,"" "Error","scheduler-2","11/26/15","09:46:51",,"" "Error","scheduler-2","11/26/15","09:46:51",,"" "Error","scheduler-2","11/26/15","09:46:51",,"" "Error","scheduler-2","11/26/15","09:46:51",,"" "Error","scheduler-2","11/26/15","09:46:51",,"" "Error","scheduler-2","11/26/15","09:46:51",,"" "Error","scheduler-2","11/26/15","09:46:51",,"" "Error","scheduler-2","11/26/15","09:46:51",
Hi,We are using <cfdocument> tag to generate ~50 pages pdf with styled text only (no images).Sometimes the library unexpectedly stop working and the pdf generation hangs forever.We are forced to restart ColdFusion to make it working properly again.Can you suggest us a way to debug the underlying java library (icebrowser,iText) to collect some useful information about the circumstances that causes the problem?Some additional server data:SUSE Linux Enterprise Server 12 on VMwareServer Details Server Product ColdFusion Version 11,0,09,299201 Edition Enterprise Operating System UNIX OS Version 3.12.28-4-default Update Level /opt/coldfusion11/cfusion/lib/updates/chf11000009.jar Adobe Driver Version 5.1.3 (Build 000094) JVM Details Java Version 1.8.0_25 Java Vendor Oracle Corporation
Anyone run into a problem with calls to CFINDEX after having applied HotFix 21? I'm getting the following stack after the hotfix (looks like during the indexing of a Word or Excel file):java.lang.NoSuchMethodError: org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFFData.getCheckBoxList()Ljava/util/List; at org.apache.poi.xwpf.usermodel.XWPFRun.text(XWPFRun.java:1001) at org.apache.poi.xwpf.usermodel.XWPFRun.toString(XWPFRun.java:971) at org.apache.poi.xwpf.usermodel.XWPFParagraph.getText(XWPFParagraph.java:215) at org.apache.poi.xwpf.usermodel.XWPFTable.<init>(XWPFTable.java:117) at org.apache.poi.xwpf.usermodel.XWPFDocument.onDocumentRead(XWPFDocument.java:152) at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:166) at org.apache.poi.xwpf.usermodel.XWPFDocument.<init>(XWPFDocument.java:118) at org.apache.poi.xwpf.extractor.XWPFWordExtractor.<init>(XWPFWordExtractor.java:59) at coldfusion.tagext.search.MSDocument.readDocx(MSDocument.java:164) at c
After creating some charts using the built in cfchart tags, I've been told that the ability to right click is not 508 compliant. Looking at the zingchart website, I have been able to work out most of the JSON, and I can see that to disable it you would use the following"gui":{ "context-menu":{ "visible":"false" }},My issue is that I don't know how to add this to the cfchart tag to get it to work. Thanks
Hi. I am trying to create a CFIF statement to search for part of our part numbers. For instance, we have part numbers like C1000 or C1300, etc. We also have part numbers like SG-BGA-6000 or PC-PLCC-2000. What I would like the If statement to do, is to tell me if there are any C Numbers, then send an email. How do you create an If Statement for part numbers that begin with C and have numbers after it? Thanks for anyone's help.Andy
I have been testing out Global Script Protection at the CF Admin level (v9.01). But it does appear to have any effect on the form posted data.... or maybe I am not understanding what it can/should do.With it on and if I post a form field with something like this entered:Test<script>alert('hello');</script> On the resulting page I get a pop-up alert - I would expect Global Script Protection to stop this?Restarted both IIS and CF App and the variable not getting setting at the application level.I am looking for simple way to add some XSS protection to a legacy cf app that has come across my desk. lots of forms and I do not have access to the source (encrypted).Cheers!
Hello, all,I'm overly concerned about XSS attempts on my sites. I cannot seem to find a decent solution.I know that as far as using URL parameters on server-side processing, you should use canonicalize() to reduce encoded script to what a potential bad actor intended to run on the server, and sanitize from there. Apparently, whitelisting is a very effective method. But, what about when whitelisting isn't an option (like, for example, input into a database, or used as a conditional for database processing)?Also, what about client-side effects? I've seen where URL parameters can be used to inject JavaScript code into a page. Now, I know that EncodeForURL() and others should be used, but how can one manipulate the URL so that XSS would be rendered useless?? Without using a redirect like CFLOCATION??V/r,^_^PS: It's the day before Thanksgiving Day, in the USA, so I won't be on much between now and Monday. Happy Thanksgiving Day to all American
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.