The official community for ColdFusion.
Recently active
Hi,How to find an dpi of an image using coldfusion?is there any way to modify an images dpi using coldfusion?
Hi all,i have two cfc' components usind extends as:<!--- myParent.cfc ---><cfcomponent displayname="myParent" output="false"> <cfscript> this.myData = ''; </cfscript> <cffunction access="remote" name="setQueryData" output="false" > <cfquery name="this.myData" datasource="#myDatasource#"> SELECT * FROM myTable </cfquery> </cffunction></cfcomponent><!--- myExtend.cfc ---><cfcomponent extends="myParent"> <cffunction access="remote" name="getData" output="false" > <cfquery name="qryData" datasource="#myDatasou
I have a SQL Server 2008 database with a table that has an ID field that has an identity increment and seed of 1.This work great as each new record created automatically gets a new and distinct number.Now when I insert certain new records I need to be able to make that value start at 10001 and then the next would be 10002 etc.But this is only for certain inserts.Is there a way to control the identity seed & increment on the fly via a query maybe?So some inserts would follow 1,2,3,4,5,6,7 depending on whats being insertedand others would follow 10001,10002,10003 depending on whats being inserted.is this possible?
I have a page that uses cflayout to display data. Links in the page fires a cfwindow that also contains a cflayout tag. This works perfectly in all other browsers, including IE 10, but not IE 9 and below. It does not produce an error, it simply does not display anything at all. The window appears with nothing in it. Server side is CF9.01. Any ideas? Many thanks!
I created my FirstHomePage.cfm on the ColdFusion 10 Developer server.It works on the same server machine, but i got HTTP 404 error from other machine.I added IP Address on ColdFusion server Admin page to Allow IP address.I would like any configuration need to be done to let other machine acess the web page from the other machine.Your help and information is great appreciated,Regards,Iccsi,
I just finished applying the hotifx 4 for my 9.01 coldfusion 32bit server on a Unbuntu box and after restarting CF and Apache I noticed the Admin page comes up blank, otherwise CF is working perfectly.I checked the logged and saw thiscoldfusion9/logs# tail -f cfserver.log04/02 21:24:15 user CFCServlet: init04/02 21:24:33 user FlashGateway: init04/02 21:24:34 user MessageBrokerServlet: init04/02 21:24:41 user CFFormGateway: init04/02 21:24:41 user CFInternalServlet: init04/02 21:24:41 user WSRPProducer: init04/02 21:24:44 user ServerCFCServlet: initServer coldfusion ready (startup time: 41 seconds)04/02 21:25:54 Error [jrpp-1] - Element ESAPIUTILS is undefined in a Java object of type class [Ljava.lang.String;. The specific /var/www/CFIDE/administrator/index.cfm, line: 5504/02 21:25:55 [jrpp-1] INFO Using "/tmp/vfs_cache" as temporary files store. Error [jrpp-2] - Element ESAPIUTILS is undefined in a Java object of type class [Ljava.lang.String;. The specific sequence of fil
I was reading an article on Clustering/LB/HA using CF8, but have not found any updates for CF10.Using VM VirtualBox to setup a few virtual servers, I am looking to setup a load balancing of ColdFusion 10 on 2 remote instances. The goal would be have ColdFusion Cluster Manager be able to point http request to one of the two servers based on load/availability. Not really having a hardware cluster/failover setup, just managing resources on two CF instances instead of a standalone. The servers are Windows Server 2008 R2 with IIS7.5 and ColdFusion 10 Enterprise on installed on 3 of these machines. Let's call them CF-LBManager, CF-Web1, and CF-Web 2. In the CF Docs, they show the Cluster Manager adding the local CF instance and "if you want" a remote instance. However, this scenario would require the main instance to be running and not fail for it to direct to the other instance. I am trying to set this up now with CF-LBManager as just a manager of the requests coming in. In the Enterprise M
CF10 Local Dev MAC machine. Built in server.Nothing has changed in my Application.cfc. Cleared cache via admin pages, Changed Application.cfc/Application.cfm lookup order to all three settings. Restarted Server and computer several times. Changed Name of Application.cfc to 1Application.cfc and back.My pages are not seeing THIS.Datasource and if just try to output This.Name on blank page I get "Element NAME is undefined in THIS". I'm having the same issue as this post. But the fix isn't working for me.coldfusion application.cfc not foundNot sure what/how do trouble shoot further.
I am using CF9 on a virtual server so I have control over the stopwords.txt file.I presumed it would be as simple as adding my own words to the file, but it didn't go that smoothly.I search the CF folder and it found 5 files named stopwords.txt.Here is where they were found:H:\ColdFusion9\solr\solr\confH:\ColdFusion9\solr\multicore\core0\confH:\ColdFusion9\solr\multicore\template\confH:\ColdFusion9\solr\example-DIH\solr\db\confH:\ColdFusion9\solr\example-DIH\solr\rss\confI tried editing the first 3 (since the bottom 2 said example, I didn't edit those). I restarted the ColdFusion 9 Search Server and ColdFusion 9 Solr Service then rebuilt the indexes.The search still found the word I added.Advice on how to exclude words would be appreciated. If it could be done through a database table that I could create and give supervisor staff access to that would be even better than having to edit a server file, restart services and rebuild indexes.Thank you
Doubt I've named this right...Ok, here's what I'm trying to do:I have a CFQuery set up:<cfquery name="myQuery" datasource="someSource"> SELECT DISTINCT item_num, item_name FROM table1</cfquery>I know this is working fine. A little farther down my page I have a dropdown that gives a list of "item_name" entries. What I want to do is set another variable to item_num based on whatever is chosen in that dropdown. The item_name field is irrelevant to the rest of my page, it's just there to help out the end users with readability.How do I do this? It's kind of driving me nuts trying to figure it out.
Our server keeps failing our PCI compliance test due to the Session ID's being non random. Description: Web Server Uses Non Random Session IDs Synopsis: The remote web server generates predictable session IDs. Impact: The remote web server generates a session ID for each connection. A session ID is typically used to keep track of the actions of a user while he visits a web site. The remote server generates non-random session IDs. An attacker might use this flaw to guess the session IDs of other users and therefore steal their session. See also : http://pdos.csail.mit.edu/cookies/seq_sessionid.html Data Received: Sending several requests gives us the following session IDs : CFID=896744 CFID=896745 CFID=896746 CFID=896747 CFID=896748 Resolution: Configure the remote site and CGIs so as to use random session IDs.  
Up until recently I only had Coldfusion 9 running on a 64-bit 2008 server. Today I installed the Coldfusion 10 trial. The installation went OK and the CF9 settings were migrated to the new CF10 installation as expected. The instalation did not remove the CF9, which is good as I have something to fall back to if I run into serious code compatibility problems. After sometime while I was happily testing I decided to stop the CF9 services as I didn't think they were necessary any more. But as soon as I did that everything became really slow and even the CF Administrator login page took around 2 minutes to load. Things got back to normal only when I restarted the CF9 from the services again...Why did this happen and what can I do about it? If there is no solution, is there a problem having both CF9 and CF10 running on the server even though CF10 is the version that controls all coldfusion pages?
Long story short. We have a PC called Thor running CF 10 on a physical server. We brought up a PC called vThor (which will be renamed to Thor when all is said and done) running the SAME LICENSE KEY AS THOR (cause it will be its replacement) running CF 10 on a VIRTUAL server.Well, the migration failed miserably so after reverting back, we're going with a different approach. Both servers are on our domain and are brought up at the same time, however, we have an additional IP address with our Host that I can use to route to vThor while Thor still functions as a live production server. In this setup, I can then use the IP to test the other server without having to worry about bringing the other down due to licensing restrictions.So what I'd like to do is temporarily downgrade vThor to 'DEVELOPER' (max 2 client connections, run with Enterprise functions), and I'd like to, if possible, withold from uninstalling the thing.Once I get that done, it's off to fight one of
I am going to start a new project and I am pretty new to the ColdFusion and would liek to start Application.cfc and want to know what's kind the information need specify for whole applications.Your help and information is great appreciated,Regards,Iccsi
CF7 works in windows server 2008 R2, can it connect with SQL 2008 R2?
Here's my mail header: <cfmail to="#session.user_email#" from="#application.siteName# <#application.siteEmail#>" subject="You Are Registered for #getEvent.event_title#" type="html">The variables all work and the format complies with the documentation on CF9. I have a cfcatch set up in case of failures and I'm getting notices of attribute failure. The mail still goes through though. I'd leave it alone except that this is on our community site and my mailbox is getting bombed. Besides, I'd like to know why it's failing!Michael
Hi All,I cannot use round function in Query of Query. I can cast the number as integer like:<cfquery dbtype="query"> select cast(myValue as integer) finalNumber from myQuery</cfquery>where myValue = 65.7, but the result is 65, it should be 66.It is a work around this issue?Thanks!
I just wanted to know when I need use CFLOCK.For example, do I need to CFLOCK when I assign my data source database in my Application.cfc.If I use CFLOCK then web server will lock the database for timeout seconds to connect the database server?Your information and help is great appreciated,Regards,Iccsi,
I have a site with hundreds of HTML pages that need to be converted to coldfusion in order to password protect my site. Is there an easy way to do this? Mass convert the files somehow?
I need the ColdFusion Update 8.0.1 (32 Bits)thanks
Hello,I am having troubles setting up the multiserver monitor in CF9. It seems after I get everything configured, I'll try to load it on a different workstation or browser and nothing will be configured. Is there a config file that I need to edit/change to set things permanently? Thank you in advance.
I'm a Information Security Analyst and currently I'm trying to strengthen our ColdFusion hardening standards and I have an issue that I need to understand.I'm referencing two separate Adobe documents, First document:ColdFusion 9 Lockdown Guide Recommends:Page 16 of 35. Do not enable RDS. Click next...Next document:Security Advisory for ColdFusionRelease date: January 4, 2013Last updated: January 16, 2013Vulnerability identifier: APSA13-01Recommends:Setting the password for Remote Development Services (even if RDS is disabled)Enabling password protection for RDSSetting the Admin password and enabling password protection for AdministratorSo, Adobe recommends, 1st, not to Enable RDS at all, but then recommends as a "mitigation", Enabling RDS (post installation) to setup a username and password, but the ColdFusion 9 Lockdown Guide "Do not enable RDS.". Maybe as a "Remediation", Adobe should just remove RDS since a) they recommend keeping it disabled and b) it's such a vulnerabi
I would like to use Tab controls on my page and realized that ColdFusion Server does not have tab controls.Please let me know if I am wrong,I would like to know any place I can get tab controls or any thing I can use from ColdFusion server.Your help and information is great appreciated,Regards,Iccsi
I'm trying to build a very basic web service that will sit on a remote server and query the live database<cfcomponent displayName="invoiceUtilities" output="false"> <cffunction name="getInvoiceDetailsFromWebService" returnType="Query" access="remote" output="false"> <cfargument name="invoiceDetailId" type="String" required="true"> <cfquery datasource="#dataSource#" name="invoiceQuery"> SELECT invoiceId,productType FROM InvoiceDetails WHERE InvoiceDetailId='#invoiceDetailId#' </cfquery> <cfreturn invoiceQuery/> </cffunction></cfcomponent>Current
I'm running CF 9,0,2,282541 ON Windows Server 2008 R2 and recently upgraded to Java Version 1.7.0_17I'm not sure that this is related to the Java upgrade but... My users have been complaining of not being able to log into my websites.Upon further investigation - I find that on login, something goofy is going on in OnSessionStart() of my Application.cfc My sessions are not properly starting as they have in the past. On talking to some of the users - I find that they can sometimes have success by using a different browser. Is anyone having a similar issue?Thanks,Jack
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.