Design the future of fashion, win Firefly Pro 👗✨
The official community for ColdFusion.
Recently active
Hi All,I have the next command cfexecute in CF11<cfexecute name="#app_dir#resources\oracle_instantclient\sqlldr.exe" timeout="10" arguments='userid=sampleDB/\"mypass\"@//10.230.44.7:1521/sampleDB control=#app_dir#upload\importME.ctl log=#app_dir#upload\importME.log' errorVariable="errorReport"> </cfexecute>The sql loader is working but I have an issue with security because i am including the DB password in my cfc page. Is there a way to use the CF admin data source Oracle connection here? OrIs there a way to encrypt the password in the cfexecute?ThanksJohnny
Hello, all,I am waiting for a customer to respond to a request, and thought I'd play around, for a bit, while waiting. (Sometimes, these waits can go for days.)I was thinking about something I had learned in Javascript a long time ago, and wondered if I could do the same thing in CF: a dispatch table.Here is an example of a JS dispatch table:<a href="javascript:void(0);" alt="This is title one." id="title1" class="test">One</a><a href="javascript:void(0);" alt="This is title two." id="title2" class="test">One</a><a href="javascript:void(0);" alt="This is title three." id="title3" class="test">One</a><div id="testText"> </div><script> // Pretend I'm loading jQuery $(".test").click(function(){ var divAlign = { title1:function(){$("#testText").css('textAlign','left');}, &
Hello, all,CFCs. Some of us love them (I DO), others not so much, maybe. But I'm curious about something.I recently posed a plea for help while just learning if something were possible in CF: a dispatch table.Basically, a dispatch table is an object that can perform boolean comparisons, much like a switch/case, but there's no string comparison - you drill straight to the object property.Which, now, makes me wonder. Is a CFC like a dispatch table (the various CFFUNCTIONs are properties of an object, ie the CFC), or more like a large switch/case (the various CFFUNCTIONs just the equivalent of <cfcase value="myFunctionName">...</cfcase>, in which string comparisons are performed in order to get the correct code)?Just curious.V/r,^ _ ^
Something has changed with how the cfexchangecalendar tag interacts with the Exchange server but I don't know what!Up until last week if I passed in a structure like this to the Exchange server everything looked good:This week however when I pass in a structure like this 6 hours is added to the start and end time of the event. That and the message is displayed as text and is no longer rendered in HTML. Any ideas as to where to look for what changed?My code to invoke the exchange connection looks like this:<CFEXCHANGECONNECTION ACTION="open" USERNAME="#MyName#" PASSWORD="#MyPwd#" SERVER="#MySrvr#" MAILBOXNAME="#MyMailbox#" PROTOCOL="HTTPS" PORT="443" SERVERVERSION="2010" CONNECTION="MyConn"><CFEXCHANGECALENDAR Action="create" Connection="MyConn" event="#MyStruct#" result="theUID"><CFEXCHANGECONNECTION action="close" connection="MyConn" />The structure being passed in is shown above... but I'll bet you noticed that. As a band-aid, when I create my stru
I can't seem to connect to RDS running on the local machine using CFB2018. It's CFserver 2018 and neither a password nor no authentication works.Any guidance would be appreciated. See this screenshot for more info: 03.13.2019-13.44.52
Hi, I have a stack coldfusion2016 x32 + apache24 x64 on windows 2008 x64 server ... If I execute the installer coldfusion2016 x64, it will upgrade automatically the coldfusion2016 x32 version to coldfusion2016 x64 version, preserving x32 version settings ?mayb a silly question but ... thanksMauro
Hello everyone, I'm wondering if anyone can tell me pros/cons of either of these two functions? Which one is preferred and if there is any difference in performance/security, etc? I used arrayContains() thinking it's better/faster for validations some fields on the back end as well as reducing number of lines in situations like this:<cfif userAccess eq 1> <!--- Do something ---></cfif><cfif userAccess eq 4> <!--- Do something ---></cfif>Instead I used this:<cfif arrayContains([1,4],userAccess)> <!--- Do something ---></cfif>Would listFind() or listContains() be better fit in this case or not? Please if anyone have information about the differences let me know. Thank you.
I have function that should save some form fields. This function is able to process multiple insert rows. So far I was able to create logic to handle this but the only issue so far I have once user tries to save the record. The server response looks like this:The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code. Null Pointers are another name for undefined values. coldfusionAt first I was looking and trying to find which value is not defined/missing in my function but so far I couldn't detect the issue. The next thing I did was commenting out the cfquery. After that I was getting message Form successfully saved.. This tells me that my code is breaking inside of the cfquery tag. Here is example of my code:<cffunction name="saveRecords" access="remote" output="false" returnformat="JSON"> <cfargument name="formID" type="string" required="true" default=""> <cfargument name="status1" type="st
Hi,I recently installed a wildcard SSL certificate on our domain artgalore.ca.Soon after, I started to get support emails from customers to say they could no longer access the site because of a 403 error, as seen below. When I turned off my anti-virus software, I was able to access the site. I searched a couple of forums for specifics, nothing seems to be working.Any help is appreciated.Arny
Hello, all,While still hoping for a fix from u15, we have applied u18 to one of our servers in production and are now getting the following:"Diagnostics: The ValueList() function has an invalid parameter: getarchiveyears.articleYears. Parameter 1 of function ValueList which is now getarchiveyears.articleYears must be pointing to a valid query name.The error occurred on line 323."Earlier in this document, we have:<cfquery name="getarchiveyears" datasource="#application.newsdsn#" cachedwithin="#CreateTimeSpan(0,0,10,0)#"> SELECT DISTINCT TO_CHAR(TitleDATE,'YYYY') articleYears FROM news_2016 WHERE TO_CHAR(TitleDATE,'YYYY') > '2009' ORDER BY articleYears DESC</cfquery>So, there's a valid query, named (oddly enough) getarchiveyears.The line
Good Afternoon,I am a Systems Engineer and need some help. Whenever I disable TLS 1.1 on the ColdFusion 2016 server (running on Windows 2008 R2 Operating System), I can no longer communicate with the SQL Server and receive the enable TLS 1.0 and TLS 1.1 error message instead of the web page.For Security reasons, we want all communication to be on TLS 1.2. Once I disable TLS 1.1, I cannot even load a webpage on the local ColdFusion Server without receiving the TLS error.I have asked the Developer to update the SQL JDBC Native Drivers, the CF 2016 Server is using native SQL Server driver v2011.110.7001.00 dated 8/15/2017.The java version CF 2016 is using is jre 1.8.0_191.The SQL 2012 Server is using native SQL Server driver v2011.110.7462.06 downloaded on 1/6/2018. SQL Server 2012 Management Studio version is 11.0.7462.6.From what I have read it keeps pointing me back to the native SQL drivers. I have ensured the Windows side of the servers are 100% up to date with all applicable Windows
I installed the developer version on Windows 2008 R2 with IIS 7.5.I ran the web connector to connect IIS 7.5. I see the new mappings in IIS so I'm assuming the connector worked ok. My problem is when I try to access the CF administrator. I can still only access it using the built-in web server url of http://127.0.01:8500/CFIDE/administrator/index.cfm.Once I run the web connector to connect to IIS, should the administrator be running out of IIS instead of the built-in web server?
If have some code that sets multiple Locales --><cfset currentlocale = SetLocale("English (Canadian)")><cfset currentlocale = SetLocale("English (UK)")><cfset currentlocale = SetLocale("English (US)")>In-between these different settings I have #LSCurrencyFormat(GetTotal.TotalValue)#This displays the currency and the appropriate currency sign.The question I have is how would I do this for Europe as I now have a need to support Euro'sThanksMark
Hello,I need to take the value submitted in a form and add 99 to it. I first tried:<cfset channel.type = 'Form[P#c#Channel]' + 99>That failed since the form value is a string not a number.Then I tried:<cfset channel.type = LSParseNumber('Form[P#c#Channel]') + 99> and got Form[P1Channel] must be interpretable as a valid number in the current locale.How can I change the submitted value to a number that I can perform addition on?Thanks!Gary
Hi,We migrated from CF10 to CF2018 and our CFSCHEDULE tag will not now add a task. Our code is simple, just: <cfschedule action="UPDATE" task="test" group="test" operation="HTTPRequest" startdate="#DateFormat(Now(), "mm/dd/yyyy")#" startTime="#TimeFormat(DateAdd("n", 2, Now()), "HH:mm")#" url="http://127.0.0.1/test/somescript.cfm" interval="once">Whatever we try, the task is never added to the CF-Admin. No errors in the logs. The /test fo
In my application.cfc file I have the following code:this.mappings["/includes"] = "#expandPath('../../priv/inc/')#";and then on a page I have the following CF include set up:<cfinclude template="/includes/imageOptimise-thumbnail.cfm">For the majority of the time when the page is submitted the imageOptimise-thumbnail page runs without any issue but occasionally it will error saying that it can't find the imageOptimise-thumbnail.cfm. If I resubmit the page, chances are it will work but the question is, why is it sometimes not being able to find the page?I had a look in the CF Admin and I can't see anything in the logs saying that there was an error but it is clearly showing a Coldfusion 'template not found' error message when it fails.Anyone got any ideas?
Has anyone found a fix for this? Using the Eclipse plugin version of CFBuilder 2016, when I select a few lines and hit TAB it can take up to 30 seconds in a big CFC to indent. It is ridiculously slow!! I end up going line by line and tabbing but thats getting old. Why is this happening? Its starting to make CF Builder unusable for me. Anyone find a fix?
I have tried just about every release of CF Builder since inception. I downloaded CFB2018 and am giving it a go. First issue, no matter where I look I see no ability to increase the size of the buttons in the toolbar. They are WAY too small. I find it impossible to believe that there is no way to enlarge them, so I must be missing the setting somewhere.I cant find anywhere to enable code hints. I know people are sick of hearing the comparisons to HomeSite, but there absolutely MUST be a similar feature to right click on a tag and see code hints, etc. If it is not currently available you need to do a demo of HomeSite to the folks who create CF Builder.I am trying to introduce CF to a new client and Adobe is making it a VERY difficult sell.
Hello,This is my first venture into webhooks. I am trying to read a response from ChargeOver and insert it into a database. For now, I am just dumping it to a txt file to see what it looks like. My current code is:<cfset HTTPRequestData = deserializeJSON(ToString(getHTTPRequestData().content))><cfdump var="#form#" output="C:/webhook.txt">The webhook is posting something like this:{ "context_str": "package", "context_id": "556", "event": "status", "data": { "package": { "terms_id": 2, "currency_id": 1, "external_key": null, "token": "ozevrx738b02", "nickname": "", "paymethod": "inv", "paycycle": "yrl", "bill_addr1": null, "bill_addr2": null,...etcMy webhook.txt file sh
Hi,I've updated our ColdFusion 2018 from update 1 -> to update 3 sucessfully, the instances are running and working.The instructions for this update said to recreate the apache mod_jk24.so so I recreated the connector by following these instructions manuallyColdFusion Apache manual connector configurationI've used the /cfdisk/coldfusion2018/cfusion/runtime/lib/wsconfig/connectors/apache/intel-win64/prebuilt/mod_jk24.soHowever I'm getting apache error when I tried to test the apache[admin@cfserver1 1]$ apachectl -thttpd: Syntax error on line 358 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf/mod_jk.conf: Cannot load /cfdisk/coldfusion2018/config/wsconfig/1/mod_jk24.so into server: /cfdisk/coldfusion2018/config/wsconfig/1/mod_jk24.so: invalid ELF headerso I reverted the mod_jk24.so to the earlier version (ColdFusion 2018 Release 1)We are running CentOS Linux release 7.5.1804 (Core), httpd x86_64 version 2.4.6 Release 80.el7.centos.1, Coldfusion 2018 Release 3
We are currently using ColdFusion 10 and would like to find when the CF10 product is expiring. Do we need to upgrade to the new version if so what version of ColdFusion do you recommend? Thanks.
Oracle wants to start charging a fee for the tomcat we use. Will the new fees from oracle on Java effect ColdFusion or the updates?
I decided to upgrade my local developer edition to CF2018 from CF2016. I uninstalled CF2016 and then installed CF2018. I went to move the files from the Coldfusion 2016/cfusion/wwwroot directory to the new installation as I did previously when upgrading from CF11 to CF2016, I found that only a log folder remained. Did CF delete my files on uninstall? Any way to get those back?
When toolbar="Default" doesn´t show the option input text.With toolbar="Basic" is make. Look the image.
So,Wanting to apply the latest CFv11 patches due to all the press coverage about security problems being exploited in the wild I visited the patch download page at ColdFusion 11 updates but when I pull down patch 18 and run an MD5 checksum the result I get is NOT what's listed on that page.I have downloaded a bunch of the previous patch files and run the same check (openssl md5 <filename> in case anyone thinks I'm doing it wrong) and they all match what's printed on the download page. It's only patch 18 that doesn't match.I'm trying to find out if that's a mistake by Adobe or there's some sort of corruption of tampering with the hotfix18.jar file.Any help appreciated as this is holding up patching for security.
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.