The official community for ColdFusion.
Recently active
hi,I am trying to update a word document by using rtf, word2007, and coldfusion 8 as such: <!-------------------------------------------------------Generate a unique ID for the file in the temporary serverdirectory and get the file that is to be merged.---------------------------------------------------------><CFSETTING ENABLECFOUTPUTONLY="YES"><CFSET OUTFILE=GetDirectoryFromPath(GetCurrentTemplatePath())&"files\xx.doc"><CFSET SOURCEFILE=GetDirectoryFromPath(GetCurrentTemplatePath())&"rtf\xx.rtf" ><!-------------------------------------------------------If the file exists then delete the file from the server.---------------------------------------------------------><CFIF FILEEXISTS(OUTFILE)><CFFILE ACTION="DELETE" FILE="#OutFile#"></CFIF><!-------------------------------------------------------Read the RTF file into memory so that it can be modified.--------------------------------------------------------><CFFILE ACT
In CF10, is there a way to set the cache region when using cfscript query functions? For example:sqlString = 'select * from dual';qs = new query();qs.setName('testME');qs.setcachedwithin(createTimespan(0,0,5,0));qs.setAttributes('cacheRegion', 'users'); //This doesnt seem right?
I enabled Windows authentication in IIS 7 for a site powered by coldfusion 10. After I logged in, a coldfusion page that dump all the CGI shows REMOTE_USER and AUTH_USER are empty. The tomcatAuthentication has been set to "false" in server.xml. Does coldfuion10 support IIS Windows authentication? If yes, is there any document on how to configure it? Thanks.
Hi, I am running ColdFusion10 Enterprise and we found two of our sites vulnerable to the Chrome80 update for SameSite cookies. I have "Use J2EE session variables" checked and Session Cookie Settings set for HTTPOnly. The issue is our main site iframes this supporting site in and we get console message "A cookie associated with a cross-site resource at *Domain Name Here* was set without the `SameSite` attribute. It has been blocked". Since these are different domains it doesn't work. I am trying to find out if there is a way to set that SameSite value to "none" for the jsessionid cookie. I tried a few things thru the Java and JVM settigs but nothing worked there and in fact actually hosed it up once and had to revert it. Any ideas/suggestions/solutions are greatly appreciated. Thanks.
Hello,static files is not working in coldfusion when I remove enablecfoutputonly from cfsetting tag. Is there a reason for that? As showed below picture, jquery is not working. Is it a bug?
Hi, I recently upgraded a CF10 Server to CF2018. In ColdFusion 10, ODBC queries to DB2 (CHAR) fields returned trimmed values. Now in CF2018 it returns the full char length and many comparisons to other tables in MySQL or SQL are returning empty. I was able to fix some by adding SELECT trim(fieldname)... But the server host many applications with thousands of .cfm pages; so it will be a dauting task to fix all those queries. I found a JVM argumment setting of "-Dcoldfusion.trim.dbresult=true" listed for CF11; but it does not apperas to be working in CF2018.Any idea if this can be enabled in a DSN or any other CF setting? Thanks!
Hi, I am using ColdFusion 2018 and an Oracle 12c Database. I would like to use LDAP to authenticate my users. As of now the users are being authenticated by their Usernames in an Oracle Database, upon logging-in their roles are checked to see if they have an adequate role and then they are made available different screens depending on their roles. I would like to do the same but within an LDAP authentication method. How can I do this ? RegardsIQ
Hello, We are using LDAP connectivity strings to connect to the database instead of using Hostnames. In the ColdFusion Admin settings page I am unable to find a place where I can enter this information. Is there any way I can do this ? I tried entering the LDAP string in the Advanced setings page but it did not work. Or LDAP server settings are similar to the one shown below. LDAP Server : oid1.city.ca:389:636Context : dc=city,dc=caDBService: pctestD I dont want to use LDAP directly on my pages as this may require a lot of modification. Instead I would like to define LDAP Database connectivity using the LDAP settings, please advice. ThanksIQ
I created coldfusion applications in coldfusion developer version but when I moved the applications in Coldfusion 2018 Enterprise server, the applications don't work. Do I need to configure the Coldfusion 2018 Enterprise server? If so,what do I need to do. I need your help. Error message:An error occurred while executing the application. Please try again or contact the administrator.
Hi dev, I'm using CF2018. Here I've tried to use writeToBrowser action in cfimage tag. It's working fine while run via webroot but it's not working ( Image disaplyed as blank in browser ) while I'm using virtual host. But both are having same code and running places or differnent. Here is my sample code:<cfimage action="read" source="C:\ColdFusion2018\cfusion\wwwroot\download.jpg" name="google" ><cfimage action="writeToBrowser" width='200' heigth='200' source="#google#" />Note : I did console on image on the browser my test application & my virtual host application have same value in img tag like below.<img src="/CFFileServlet/_cf_image/_cfimg-5097624825542879602.PNG" heigth="200" width="200" alt=""><img src="/CFFileServlet/_cf_image/_cfimg2796608237126268946.PNG" heigth="200" width="200" alt=""> But webroot show the image virtual host not showing the image in browser.
Hi,Just installed CFBuilder 2018 on Windows 10 64bit. install correctly, builtin Coldfusion 2018 also installed correctly. the problem is when goto Data Source in CFAdmin, it does not let me configure MSAccess datasource. Microsoft Access is visiable in dropdown, when I press Add then it gives me this error line. "The ColdFusion ODBC Server service is not running or has not been installed. You may also use the "MS Access with Unicode" driver to connect to MS Access datasources." it saying "ODBC Service is not running". when i goto windows services list there is not coldfusion services are available. not even ColdFusion Application. what should I do?
ColdFusion v11,0,10,300066Oracle v12.01.00.02Has anyone worked with setting up Oracle datasources utilizing Oracle Wallets? cwallet.sso? Auto login. I have successfully implemented it in Java applications where I am able to create and provide a set of properties to the JDBC connection method, in addition to some other configuration. The CFIDE Administrator Data Sources GUI does not appear to give me the option to implement Wallets. Is there a way to configure them directly? Any help would be greatly appreciated!Thanks!
Attempting to make the LockDown tool work with IIS_lockdown_silent.properties.txt.# Silent Properties file for Adobe ColdFusion Server Auto-Lockdown Installer# Web Server : IIS# Platform : Windows(All) I filled out all the parameters, such as SERVER_IIS=1SERVER_APACHE=0CF_ADMIN_USERNAME=[ my entry ]CF_ADMIN_PASSWORD=[ my entry ]SYSTEM_ADMIN_USER, domain ,pwdCF_USER_UNAME, domain. pwd, etc. When I run the program: ColdFusion_2018_Lockdown_WWEJ_win64, I am prompted to enter all of the parameters that are in the txt file. Question: Where should IIS_lockdown_silent.properties.txt reside when I run ColdFusion_2018_Lockdown_WWEJ_win64.exe? and how do you execute the program to use the parameters? Thanks!Bill R.
Hello, all, For the last several months, I've been working on code that was written many, many moons ago by someone who left for greener fields back in 2013 or 2014. It is chock full of one of my pet-peeves: isDefined(). So, I'm cringing everytime I look at this code with isDefined() all over the place. After several months, I've decided: Every current CF dev at my work knows StructKeyExists() and even (like me) prefers it. I finally decided to do something about it, and I'm sharing it for anyone who is interested. We use Dw, here, but this will work in any IDE that has a RegEx Find/Replace. // Find and replace isDefined("{scope}. with StructKeyExists({scope}," FIND: isdefined\(\s*(['"])\s*(url|variables|server|cgi)\. REPLACE: StructKeyExists($2,$1 Of course, feel free to add scopes, I just used the four for brevity. I hope someone finds this useful. V/r, ^ _ ^
Guys, I'm going to mark this one as solved. In reviewing a previous thread I launched on this, once again, I followed Nancy_OShea's advice from 2/21 to reset my DW preferences. And that produces a working DW site with DW's live view displaying my site properly. I was away from my computer for a week and a half, and my previously defined site was simply not there when I returned today. This, obviously, is a completely different issue. My apologies for not reviewing my previous questions/solutions on the forum so as to avoid unnecessary threads. Many thanks for your replies.John
Hello. I have updated Coldfusion 9 to 2018 on a Windows 2016 server with IIS 10 installed. For some reason I am now not able to access any of my pages. I get a 401.3 error. I have added IUSR, IIS_USR, Default App pool to the permissions of the folder of the page. Also I have enabled anonymous login as well and still get the 401.3 error. I am at a loss to what is different.
Thanks to Charlie's blog and Pete's tweet, we have another hidden gem in ColdFusion (2018 release). ColdFusion (2018 release) imports environment variables into the server scope. For instance, <cfscript> writeDump(server.system.environment) </cfscript> The snippet above returns a struct that contains environment variables. ColdFusion (2018 release) also imports Java system properties. For instance, <cfscript> writeDump(server.system.properties) </cfscript> The snippet above returns a struct that contains Java system properties. Pete has also documented these scopes in the cfdocs site.
Has anyone tried to use Azure AD, IIS with ColdFusion to authenticate users? Our user is external to our network and remote in via a pulse secure portal pulse secure looks up the users in a security group which is an Azure AD, They are then given link(s) to our internal apps. currently, I have to add their accounts local to the servers for then to even get to the site. without that the server rejects the log in a 401 error. I have added the security group to the server and tried different things, I even contacted Microsoft to see if they had any thoughts, they only said that I should be doing the auth at the app level, but I don't think we even get to the site. it's not even making past IIS so if anyone has some insight on how to set up an azure ad on a windows machine running ColdFusion and IIS, please drop a line. oh, these are some legacy CF apps. I really don't want to alter the code to make this work if I don't have to.
a few times a day I am getting this error - how do I fix it?
Hi, we recently upgraded our websites to a new server with coldfusion 2016 (old server coldfusion 9). We are running into strange behaviour. Coldfusion becomes unresponsive after running for several days (sometimes within a day). And even more strange, sometimes our webpages do respond normally but the coldfusion administrator returns blank pages.The administrator 'sometimes' gives the following message 'Error invoking CFC /CFIDE/administrator/updates/download.cfc : Metaspace [Enable debugging by adding 'cfdebug' to your URL parameters to see more information]' We are trying multiple things to solve these problems but we have not been succesfull. Currently we monitor our server every 5 minutes and when it becomes unresponsive we do a quick restart. Any thoughts what might cause this strange behaviour? Kind regards Thijs
My application is storing orderdata, including ‘DateOfDelivery’ - DoD, in a database (local).I wish to use DoD to calculate the corresponding weeknumber and found a method (se printout).When the function is called from onClick getElementById id=”week” is updated with correct weeknumber - but the result is only displayed. I want to capture the value and save it in the database. Is it possible in CF?Ariel_1234 ______________<!DOCTYPE html><html><meta charset="utf-8"><meta name="viewport" content="width=device-width, initital-scale=1.0"><title>weekNbr</title> <link href="home.css" rel="stylesheet" type="text/css"><link href="createNewOrder.css" rel="stylesheet" type="text/css"> <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script><head></head> <script>function checkWeek() { &nb
Hi Guys, I am trying to use factory = CreateObject("java", "coldfusion.server.ServiceFactory");writedump(factory); abort; but it is showing an empty window, doing nothing, am i missing any step here
Hello,I am trying to consume a webservice an set it up as per all the documentation I could find but I am getting errors like:Unable to read WSDL from URL: URL.asmx?WSDL I have rewritten the URL a few different waysremove the s from https,remove the ?WSDLRemove the https//: (different error) But nothing seems to work. The consensus is that it is a URL error but I can't think of what to do next. I can hit the URL through my browser no problems and I can get the service to work in SOAP UI and Boomerang. I just can't get it to work through the CF page I created. Any guidance is appreciated, thank you.
So I'd like to start by saying the website tied to the IIS connector that is pointed to this instance of coldfusion is working and responding as normal. So I'm not in an outage mode per say.. But I cannot access CFadministrator with the designated port as usual. I get the login screen as normal and when i type it in it refreshes with all blue screen (same color as the background of the login screen) and does nothing. Chrome reports Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING. All other instances of coldfusion are working correctly and i can pull up the cfadministrator for all of those just fine. Another symptom is fusion reactor doesnt seem to want to work on that instance either. All corrisponding pages clicks result in a blank page. Its as if anything going through the built in webserver is getting stuck some how. The iis connectors seem to be fine and working correctly. I currrently cann
So, we've been running CF11 on our development servers for nearly a year as we worked out several issues. Thinking all was well and good we've deployed it to our production servers only to have a whole new set of issues pop up. Most concerning is an ugly IIS error that appears out of no where: HTTP Error 500.0 - MetaspaceThe Application log is filed with entries like: "Metaspace The specific sequence of files included or processed is: C:\BlahBlahBlah"I have never seen this one before.Googling this has come up with few results. What I did find is that it is a new memory system in Java 8 supposedly to rid us of Out of Memory errors?So, I'm running Win2008, IIS7, CF11 with all current updates. Server is running in the cloud on a VM with 8GB RAM and 8 CPUs.My JVM args were: "java.args=-server -Xms256m -Xmx6144m -XX:MaxMetaspaceSize=128m"I came across this message string:Google Groups...and have changed my Java args to: "java.args=-server -Xms1024m -Xmx51
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.