The official community for ColdFusion.
Recently active
During the Security in ColdFusion: A 360 degree outlook session at CF Summit this year, it was discussed that in CF 2018, there are exposed APIs for the Security Code Analyzer that allow for analyzing outside of CF Builder. I am not finding documentation that explains how to access these APIs. Can anyone point me in the right direction?Thanks,Jeff
I have an excel that I read and create a query object using this code<cfspreadsheet action="read" src="#theFile#" query="qData" headerrow="1" excludeHeaderRow ="true" columns="9,15,51,56,57,58,59" />So now I have a query object that I output and it outputs in the order that is in the excel.I loop through it like this <cfloop query="qData">and I get thisIDValue1Adams2Jones3Smith4Johnson5WilliamsNow I need to do the order in reverse like thisIDValues5Williams4Johnson3Smith2Jones1Adams Can I sort by a loop? How ?
Hello. I'm developing on a CF 2018 Developer version and I'm implementing EncodeForHTML. However, when I tried to test it I found it to do nothing. For example, the following test code from the help files gives me back exactly what you don't want:<cfscript> s1="<script>"; s2="&<>'/" & '"'; WriteOutput(EncodeForHTML(s1) & " | "); WriteOutput(EncodeForHTML(s2));</cfscript>When I run this it gives me;<script> | &<>'/"When it should give me&lt;script&gt; | &&lt;&gt;&#x27;&#x2f;&quot; Is anyone else running into this? It's like the function is turned off. Is that possible? What am I missing?I also tried it in cffiddle and it behaves the same way.
I have a query getNamesandRoles that will display the result as such DISPLAYNAME JOBROLE X X does someting Y Y does someting Z Z does someting I want to display the result of this query in a table which is shown below, I can get to show the results with a loop or through explicitly calling the query as getNamesandRoles.displayName[1] and so on, but I can figure out how to loop thru the query in a way that would skip the first row where the ID (i.e. all the
We just upgraded our CF 10 Standard to CF 13 Enterprise over the weekend and are trying to hammer out some strange bugs.One example is where we are hitting a .NET web service which returns an object. When we try to execute the .getString() method on this object the value returned is "undefined":<cfset var recInfo = structnew()><cfset var schemaName = ""><cfset var theArray = arraynew(1)> <cfinvoke webservice="#this.JobTicketWS#" method="GetSchemasNames" returnVariable="result" wsversion="1"> <cfinvokeargument name="inUsername" value="#this.inUserName#"> <cfinvokeargument name="inPassword" value="#this.inPassword#"> <cfinvokeargument name="inTicketID" value="#arguments.jobTicketID#"></cfinvoke><cfif result.getString() neq ""> <cfset theArray = result.getString()> <cfset schemaName =
Hi, my code running on CF10 does not work as is on CF2018, although the code analyzer in the administrator didn't highlight any problems.Structfind() requires a string as second parameter. My code contains structfind usages where the key argument is numeric. In CF2018 this does not work anymore. What's the cure? A setting somewhere or tostring(param) everywhere??? Also, why doesn't it work anymore?Error: StructFind only supports UDFMethod or String(Key) as second argument as second argument.Regards,Peik
Hi,I have the instances server such as api\com,12368I can create the DSN with server and port # 12368, but with the instances: api/com didn't work. I guess it didn't take the back splash from the server. What can I do?Thanks
I'm looking to get some hands on experience with Azure and AWS.Can anybody tell me if there are any gotchas that I should be aware of when trying to run CF2016 on either of these platforms?At the moment I am running on a cloud based system using VPS servers, the ISP has a great set of dashboard controlled features, for Firewall, load balancing etc, very easy to set up and use.I'm wondering if setting up in Azure or AWS would be as simple? Can I set up a VPS in the same way, install CF and roll with it, or is this going to be a very different and possibly challenging task?
Has anybody successfully published an Alexa Skill in ColdFusion. In particular, I am looking for someone who knows how to get through the signature verification requirements. Any help is greatly appreciated. I have a number of skills in development ready to go, if I can just get this figured out.Thanks!
Unable to duplicate a ColdFusion Component. coldfusion.runtime.UndefinedVariableException: Variable APPLICATION is undefined.This error is flooding my logs and can not figure out what is causing it. Any ideas?
I am new to coldfusion and need some "guiding" on this matter. I have a workstation with windows 10 and I have installed Coldfusion2016 as a .war file (cfusion.war, a JEE install option) in the webapps folder in apache tomcat 9.x directory. In the following Coldfusion code, the Auth_User is blank and when I run my application I get error.<cfset ThisUser_Id = TRIM(UCASE(RemoveChars(auth_user,1,find('\',auth_user))))>What do I need to do to get value for "auth_user"?
cfspreadsheet seems to have an issue with .xlsx files generated by SQL Server Reporting Services 2016.If I try to run cfspreadsheet, I get the following error:OPC Compliance error [M4.1]: there is more than one core properties relationship in the package ! The spreadsheeet is nothing fancy generated from SQL Reports, just about 15 columns, no subtotals, etc...straight row by row data.If I create a new spreadsheet, and copy the data from the SQL Reports generated into the new blank spreadsheet, cfspreadsheet will work.Currently on ColdFusion 10,285437Anyone run into this before? A bug somewhere in Coldfusion Apache POI routines?
Hello, all,About two years ago, we started having serious latency issues with our restricted portal. Many of us spent weeks trying to track down what the cause was. The rest of us were scrambling trying to optimize the portal as much as we could, in the hopes that we could speed up the site load times. Part of this band-aid approach involved a custom-made News slideshow on the landing page. Instead of grabbing four UUIDs, Headlines, and images on every page load, we set up the application.cfc so that every two minutes the query would run and store the UUIDs, Headlines, and images into application variables, and pull from those.Naturally, I placed an exclusive CFLOCK around the process in the application.cfc. But we are using a separate include for retrieving the images on page load, and part of that is using CFHEADER/CFCONTENT to serve up the images, passing an ID in the URL scope. This reduced the page load time by only a few seconds, but it helped.
Hi!I'm having an issue with joining/merging two different databases. I'm receiving all of the variables from one Datasource, but one variable is not showing up from the other DataSource.Both of them are related to the "IDInquiry" field, but even after relating the two its not showing up.Attached is my code:<cfquery datasource="Portal" name="GetNoms"> SELECT IDStudent, NameFull, School_Name_Previous, InqContactPhone, P1_full, P1_phone_H, P1_city, IDINQUIRY FROM Inquiries WHERE Inquiry = 1 AND Adm_Record_Status = 'Active' AND (Application IS NULL OR Application = 0) AND Adm_Enr_Status = 'Inquired' AND P1_phone_H IS NOT NULL AND P1_city IS NOT NULL AND YOE = '#YOE#' ORDER BY P1_city ASC</cfquery><cfquery datasource="Portal" name="GetPercentage"> SELECT IDInquiry, PercentComplete_display FROM inq_PWSINPUT</cfquery><cfquery dbtype="query" name="FinalMix"> SELECT * FROM GetNoms, GetPercentage WHERE GetNoms.IdInquiry = GetPercentage.I
I'm having a "File is missing" error which stops me from accessing loopback server that CF2018 is deployed. However, when I look into the specific directory (where the error message shows me xxx file in xxx is missing), the so-called missing file is existing. I tried to restart WebLogic server, not helping. This is the error log I got in Eclipse console log:<Oct 23, 2018 4:14:23,579 PM SGT> <Error> <HTTP> <BEA-101005> <[ServletContext@2099463259[app:cfusion2018_home module:cfusion2018_home path:null spec-version:3.1]] getRealPath() called with unsafe path: "/Projects/Corporate/eaccounting/:93/cfusion2018_home/Projects/Corporate/eaccounting/common/main/emailVerify.cfm".java.io.IOException: The filename, directory name, or volume label syntax is incorrectat java.io.WinNTFileSystem.canonicalize0(Native Method)at java.io.WinNTFileSystem.canonicalize(WinNTFileSystem.java:428)at java.io.File.getCanonicalPath(File.java:618)at weblogic.servlet.internal.WebAppServletC
We are installing on an offline 2012r2 'standard' installation.Installation of CF2018 went just fine - sites are reachable.After running the Lockdown application none of the ColdFusion services will start. I did select an AD account to use, validated the password was updated first, but after completing the Lockdown and restarting the server the services fail with 'Access Denied'.I have restored the ColdFusion service to use the Local System account and that now fails as well.Any insight would be greatly appreciated.
I am probably dating myself here, but I have an application running Mach-II and Coldspring (which I use for dependency injection). I recently upgraded to CF 2016 and did not have any issues with this version/upgrade. I was testing the CF 2018 Pre-release build today and was unable to get my application to load. Looks to be throwing on error on this: <cfset var abstract = false /> -----The web site you are accessing has experienced an unexpected error.Please contact the website administrator. The following information is meant for the website developer for debugging purposes.Error Occurred While Processing RequestInvalid CFML construct found on line 243 at column 28.ColdFusion was looking at the following text:abstractThe CFML compiler was processing:A cfset tag beginning on line 243, column 18.A cfset tag beginning on line 243, column 18. The error occurred in D:/APPLICATIONS/CF-INF/cfFrameworks/coldspring/beans/DefaultXmlBeanFactory.cfc: line 243Called from
I couldn't find any recommended hardware specs for the performance monitoring toolset.When I installed it I saw it uses elasticsearch, and it started with 2.5GB monitoring a single empty server.On the elasticsearch site, they recommend a machine with 64GB, I can assume this is different for this implementation. But I can not find any specs for this.How much memory/cpu usage should I expect per added monitored server? Is there any instruction on this anywhere?
When is ColdFusion 10 going to officially support MSSQL 2012? Specifically the "AlwaysOn" Availability Groups and the connection flag "ApplicationIntent=ReadOnly" or "ApplicationIntent=ReadWrite"? The JDBC driver from Microsoft supports it and I believe DataDirect has a new driver that supports it, but it doesn't seem available yet in CF10 and the latest Update 8. I tried running the Microsoft specific JDBC driver, but ran into differences in resultsets.
This is a problem that was first observed with CF8 using the cfchart tag. We have since upgraded to CF2016 and it still exists. Perhaps this is a programming error on our part but here is the issue:Trying to create a pie chart. In this case I has 4 data items. Two of them have 0 values and the other two each have a value of 50 (representing percentages).This is in response to a title to this posing as a question... How do you feel today?<cfsavecontent variable="chartContent"> <cfchart format="png" pieslicestyle="solid" width="400" height="280"> <cfchartseries type="pie"> <cfchartdata item="Terrific!" value="0"> <cfchartdata item="OK" value="50"> <cfchartdata item="Not so good" value="50"> <cfchartdata item="Terrible!" value="0"> </cfchartseries> </cfchart></
JavaSEのリリースモデル変更によりColdFusion10になにか変更はありますか?
I have a CF10 server running on Windows 2008 r2. JVM is 1.80_91. I have configured the Mail settings in CFAdmin to our Office 365 instance, I have a relay account we are using configured. When I send test emails they are only TLSv1.0 to Office365. I read a couple of forums and found the Dhttps settings which I have put into Java and JVM in CFAdmin. I restart the CF service and still the test messages are TLSv1.0. I even went into the javacpl.exe and unchecked TLS 1.0 and TLS 1.1 in Advanced.What am I missing? Based on what I have been reading, this should work correctly.
Hi everyone, We have recently upgraded our website infrastructure from Win2003 Coldfusion 9 to Win2012R2x64 with Coldfusion 11.We sorted everything out except one error that keeps coming up.From time to time, Coldfusion throws a TemplateNotFoundException for some cfm files which exist on the filesystem. These files they have high hit ratio and coldfusion serves them correctly 99% of the time, but once in a while (maybe 10 times every 50000 requests) they throw the templateNotFoundException to the user.In coldfusion-error.log I can see the following error "org.apache.coyote.ajp.AjpProcessor getRealPathFromServer SEVERE: Error in getRealPathFromConn java.io.IOException: Socket read failed" which lead me to believe this is an IIS connector issue (I'm not 100% sure)I have tried to optimize the IIS connector using the parameters found on the following article but didn't helphttp://blogs.coldfusion.com/post.cfm/coldfusion-11-iis-connector-tuning Our IIS server (8.5) has only 1 site and I con
I'm developing an app that populates a calendar with an event being generated in the code. The issue I'm having is when the calendar event is created (using MS Exchange and Outlook) it adds some characters to the message body that I don't want. For every event I create the body gets automatically populated with the following lines: When: Monday, December 24, 2018 8:30 PM-9:30 PM. UTC (The date of the event) Where: 10664 W Victory Rd (The address of the event *~*~*~*~*~*~*~*~*~*I don't want those characters (in bold above) to show as I'm populating the body of the calendar event with my own HTML formatted text. My question is how do I prevent the default message from being added to the calendar event?Thanks in advance for any and all help!!!
Hello, all,I'm working on a project whereby we can run a script that will check all the links of a generated page to make sure that each link (local and off-site) are valid.As of now, and I can be open to change, I'm using AJaX to call a CFC function that uses CFDIRECTORY to recursively get all .cfm and .htm pages of a site, swap out the physical drive path for each entry with its FQDN address, loops through that using CFHTTP to parse the page, then uses REMatch to get an array of all anchor tags in the page. I am currently looping through the arrays and adding the values as KEY to a struct to eliminate duplicates, then CFRETURN the ArrayToList(StructKeyArray(array),"|"). CF is returning something like:<a href="https://www.domain.com/index.cfm">Link One</a>|<a id="newlink" href="https://www.google.com">Link Two</a>|<a alt="test" id="testing" href="https://www.another.com/index.asp">Link Three</a>So how can I get just the value of the href
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.