The official community for ColdFusion.
Als letztes aktiv
Hello, all,Is anyone else, here, using the Portcullis CFC??I've got a form that is submitting via AJaX, and as long as I have JavaScript stripping out malicious code, it works great. But if I disable the client-side validation/sanitization and allow Portcullis to detect malicious code, Portcullis is set to redirect to the root index page if it detects anything. (I have further server-side validation/sanitization, in case JS is disabled.)Since my form is submitted via AJaX and uses output to display error/success messages to the DOM, Portcullis is loading the main page as the content to display within the DOM of the form page!!I do NOT have the option of disabling or otherwise skirting using Portcullis. I've tried modifying the Application.cfc to check the cgi.http_referer - if a particular page is the referrer, don't redirect. It's redirecting, anyway.Any solutions to this without disabling Portcullis?V/r,^_^
The task is created when a page is manually loaded via a ColdFusion page. We've used the same process for about a year now without incident (and I can't repeat the error now...). The code also checks a database field to make sure the email hasn't already been sent - it got through that as well somehow.Here are the logs (I assume the ordering here is off since it all happened at the exact same time). It looks like it fired off 3x before it got the "Unable to store Job" error:Jul 23, 2015 12:03:58 PM Information [DefaultQuartzScheduler_Worker-1] - Task DEFAULT.Blaster triggered.Jul 23, 2015 12:03:58 PM Error [ajp-bio-8012-exec-1] - Unable to store Job : 'SERVERSCHEDULETASK#$%^DEFAULT.BLASTER', because one already exists with this identification.Jul 23, 2015 12:03:58 PM Information [DefaultQuartzScheduler_Worker-1] - Starting HTTP request {URL='http://localhost:80/emailcampaigns/email.cfm?sendemails=true&RequestTimeout=90', method='get'}Jul 23, 2015 12:03:58 PM Error [ajp-bio-8012-exe
Hi. I am trying to encrypt an ItemID so the user doesn't see the actual ItemID in the address bar. I have 2 encryptions. One is being used on an Edit page. This one works just fine. But when I try to use it on an Add page, it doesn't work. I get the error: Input length (with padding) not multiple of 16 bytes Below is the code I have on an ItemDisplay page and the link goes to my add or edit pages. I've also included what's on the Application.cfm page. We're not generating a new encryption code each time so the user will always be able to get to the link we send them in case our server needs to be restarted. I will also include the decryption code on the Add and edit pages. It's the same thing on both. Can someone tell me why it works on the Edit page, but not the Add page? Thanks.item_display.cfm<cfif Socket_App_ID Is Not ""><cfset encrypted_string = urlencodedformat(encrypt(Socket_App_ID, application.key, "AES", "base64")) /></cfif><cfif ItemID Is Not ""><cf
I have set up a site with custom authentication and form that uploads multiple files using <cffileupload>-tag. Everything works fine with Chrome and IE. But when I switch to FF, the upload fails.Both pages, the form containing <cffileupload>-tag and the page handling the actual upload, resides on the area which is authenticated. Authentication uses cookie data as part of the authentication method. As said, this doesn't cause any problem with Chrome or IE, but when I try with FF, the authentication method won't be able to read cookie data. The CFID and CFTOKEN are passed correctly though.I have tried reading documentation, to search Google and this forum, but I'm not quite sure where exactly problem resides. Is it that for some reason the FF's flash player can't access the cookie data and pass it along to the server, but in Chrome&IE flash is able to do that? I figured that as a workaround I could check if request is coming from my upload widget, and pass the cookie data
Au lancement de LR4 mes dossiers de photos sont marqués d'un point d'interogation bien que le disque externe (Drobo) soit bien raccordé à l'ordinateur.Que puis je faire ?Merci de votre aide
I attempted to upgrade my server to version 9.0.1 this weekend with less than spectacular results. The server is running Windows Server 2008, MySql 5 and ColdFusion9. I followed the instructions in the installation guide and stopped all ColdFusion, IIS and Anti-Virus services before starting the install. The install seemed to be going well but then decided to hang at a part where it mentioned copying the web-inf folder. After a 40 minute wait and no activity in taskmanger, I decided to try and cancel the installation. This of course also hanged up and left me stranded with my server down. After a reboot and several other attempts to get the upgrade to run through clean I decided to try to remove the upgrade by following the removal process. This eliminated the "datasource unable to be found" errors that plagued what was left of my ColdFusion installation but left me unable to get into my ColdFusion Administrator. I had to change the following line in the neo-runtime.xml file so that th
I am using CFHTTP to make calls to a REST API. Occasionally, the server that hosts this API crashes due to the calls we are making (this is a server inside our company's enterprise). When that happens, the CFHTTP calls cause the entire ColdFusion request to hang indefinitely, even when defining a timeout on the tag. This hanging continues to use up resources until eventually our server crashes. I need to find a way to protect our server from a failing CFHTTP call. I am at a loss as to what would cause CFHTTP to ignore a timeout attribute and am hoping for some insight here.Thanks,Tim.
Greetings,I want to populate a row in a spreadsheet using the SpreadsheetAddrows(spreadsheetObj, data[, row, column, insert]) function.CF9 documentation says for the data parameter can be "A query object with the row data or an array."My code SpreadsheetAddRow (exportSheet, #attributes.columnHeader#);throws the error, Complex object types cannot be converted to simple values.What am I missing here?Regards,Greg
Hi. I have a form for a user to type in a number into a text box. I want to allow them to enter whole numbers and numbers with 1 decimal place. If they enter a number with more than 1 decimal place, I want the form to stop from submitting, or pop up a window that says they have to enter a number with only 1 decimal place. Can this be done with Cold Fusion's validation code in the form, or does it have to be written in Javascript in order for this to work? I do have some javascript code below that I used on another page that allows 2 decimal places, but I cannot get this javascript to work. It pops up a window that says I need to enter 2 decimal places, but the form still gets submitted. How do I stop the form from being submitted until it is entered correctly? I don't understand Javascript very well. This is why I was wondering if there was an easier way with Cold Fusion's validation code instead? Here's the code that works, but doesn't stop the form from submitting:<script type="te
Two URLs:http://DOMAIN/zshowsession.cfmhttp://DOMAIN/institutes/office/zshowsession.cfmThe DOMAIN portion is identical. Same site. Same CF server.Both files contain this code:<cfdump var="#session#">One outputs this:The other outputs this:You can see it's the same cfid and cftoken, but the contents of session are different. This is causing me problems.Is anyone aware of any legitimate reason why this would be happening? Maybe some weird CF configuration in the CFIDE or something? I already checked the two relevant Application.cfc files (one in /, one in /institutes) and there is nothing that modifies the session.
Hi-I am trying to retrieve data into jqGrid but it seems that my data is not converted to json or maybe the case is something else. In short can't populate the jqGrid. My files are as followsUsers.cfm<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled Document</title><link rel="stylesheet" type="text/css" media="screen" href="steel/grid.css" /><link rel="stylesheet" type="text/css" media="screen" href="steel/jqModal.css" /><script src="js/jquery-1.11.0.min.js"></script><script src="js/jquery.jqGrid.min.js" type="text/javascript"></script><script src="src/jqModal.js" type="text/javascript"></script><script src="src/jqDnR.js" type="text/javascript"></script><script src="src/jquery.fmatter.js
Hi. I have 2 text boxes in a form the user can type numbers into. I just want to add the numbers they type in together and output the answer. I'm starting off simple and will get more complicated with my calculations later. I actually have the calculations working if they are entered into a database, but we need this to work on the fly depending on what the user typed into the text boxes.I am only able to set the text box values and output them, but I cannot get them to add together. I have some javascript that outputs what was typed into the boxes by using CFSet. Is this the way I should write this? Is there a way to condense the javascript, or do I need to separate each set of text box code out? Is there a different way to do this simple calculation with just Cold Fusion, or do I need the javascript to grab the numbers that are entered into the text boxes? Here's the code I have below. If you remove the CFset price and the output of Price, you'll see that this code outputs the X and
My form has input fields for first and last names and for an email address. Form validation for email is not working people are entering First Name" 1, Last Name: 1, and email: 1 and the action for the form is completing without catching the error.The action invokes a <CFMail> to send the information to the office manager.Any thoughts?.
I'm having issues connecting to my database via the CFIDE/admin area...anyone experiencing the same?I set up my CF11 on yosemite and configured it my MAMP Pro and set up my DB wia MAMP's phpMyAdmin section...I created DB/tables all that I can get to my CF pages but I cannot get my DB connected...I have tried everything but have not find anything online about itI know I have all of that set up correctly because when I go to verify mySQL DB under tools menue option in MAMP Pro it verifies that it can connect so the user name is root...the port is 3306, and server is localhost and when I go to CFIDE admin I chose MYSQL (DataDirect) as my driver is that right or should I chose another driver?One thing I noticed, when I put in a wrong password I get the following errorjava.sql.SQLInvalidAuthorizationSpecException: [Macromedia][MySQL JDBC Driver][MySQL]Access denied for user 'root'@'localhost' (using password: YES)but when I put in the right password I get the follwoing errorjava.sql.SQLExce
Hi there, we have installed CF 11 enterprise on Linux server. We want both dev and test env/instances on same server. cfusion instance serves for dev. We added a new CF instance 'test'.Now what should we do in terms of connectors so that it can recognize appropriately. e.g. for vurl with 'dev.com' it should hit cfusion and for 'test.com' it should hit 'test' instance. In mod_jk, there are properties file which has cfusion mentioned. What should we do for test instance?Thanks
Nachdem ich auf einer anderen File den Submit button betätige und zurück komme, gibt er mir nur einen error aus, da er es nicht schafft, es auf die Datenbank zu updaten.Bitte um Hilfe danke im Voraus !<cfif isdefined('form.titel')> <cfif isdefined('form.filename')> <cffile action="upload" filefield="form.filename" destination="C:\inetpub\wwwroot\support\upload\presentation\vorlagen\" result="resultUpload" nameconflict="makeunique" /> </cfif> <cfquery name="updPPtFile" datasource="#application.global.dsn#" result="resultUpdPpt"> UPDATE ppt_files SET bezeichnung = <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.titel#" />, gruppenID = <cfqueryparam cfsqltype="cf_sql_integer" value="#form.gruppeID#" /> <cfif isdefined('form.filename')>
I have a form that is passing values like this.GETL639NAVY 1649GETL639ORANGE 1653GETL639PURPLE 0GETL794BLACK 0GETL794NAVY 0GETL794SAHARA 0GETL794WHITE 0GETLST660BLUEWAKE 0 When its not 0 I would like to get that specific record from a queryselect * from tablewhere ID = '#number#'
I am trying to reference a query from a struct and use it in other cfm files but I get this error message from CF11 Linux:"Attribute validation error for tag cfoutput. The value of the attribute query, which is currently Application.SRS.RequestTypes, is invalid.'It works on CF9 window server.Here are the code:<!--- entry-sr.cfm <script type="text/javascript"> function setTypeDesc( request_type ) { <CFOutput Query="Application.SRS.RequestTypes"> if ( request_type == "#request_type_code#" ) { document.getElementById( "TypeDesc" ).innerHTML = "#JSStringFormat( request_type_desc )#"; } </CFOutput>&
i am using coldfusion 6.1 with oracle 9i. i want to upgrade oracle to 10g or 11c. will coldfusion 6.1 have problem
I am having trouble uninstalling CF Builder 2 Update 1 on a box upgraded to Windows 10. The uninstaller commands me to Stop Coldfusion servers (which as far as I can tell aren't running). I've checked running services and can't fathom what might be causing the problem. Is there a trick to this? Thanks in advance for any help or advice!The full error message:
After upgrading our shared hosting server from CF9 to CF11 all of our grids broke. I've managed to get the toolbars back with several form elements but those elements' values are not getting passed to the CFC to filter the grid data. This worked perfectly in CF9. Does any know what may have changed?javascript Data: tbar.add( { xtype: 'textfield', name: 'searchfield', fieldLabel: 'Search' }, { xtype: 'comboAge', handler: test }, { xtype:'button', text:"Filter Grid", tooltip:"Filter Grid", handler:function(){ColdFusion.Grid.refresh('empGrid')} },'-->', { xtype:'button', text:"Add User Account", tooltip:"Add a user account", handler:addUserAccount} );var getSearch = function() { &nb
We have a development copy of CF11 that we installed as a RTM build that has since gone through CU1 through CU5. We just recently installed CF11 on our production server which was done from the latest deployment package and was then upgraded to CU4 then CU5. We've noticed instabilities with the production copy that we haven't seen once on the development copy the years it has been running.The most common are "Error Executing Database Query. Timed out trying to establish connection" errors at random while other applications using the same DB server have no issues at all. If you reload the page the DB call goes through the 2nd time. Only CF applications on this web server have these issues and not .NET or Java based ones.So wondering if I had configuration wrong I merge compared our development versus production server and found a number of core parts of the CF11 that started as RTM to be much older. Various jar files, the Jetty runtime is v6 instead of v9,
[3 Duplicate messages deleted... posting the same question more than once is confusing... Mod][This is an open forum, not a direct line to Adobe support... you need to wait for a reply]After installing Coldfusion 11 Update 6, our server would no longer output error messages. All we go was a blank screen. Uninstalling the update has cleared up the issue for now. The following entry was in the log:Exception thrown by error-handling template:java.lang.NullPointerException at coldfusion.monitor.error.RequestErrorMonitorEventHandler.onRequestEnd(RequestErrorMonitorEventHandler.java:31) at coldfusion.monitor.event.RequestMonitorEventProcessor.onError(RequestMonitorEventProcessor.java:558) at coldfusion.filter.ExceptionFilter.handleException(ExceptionFilter.java:179) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:108) at coldfusion.filter.BrowserDebugFilter.invoke(Brow
For security reasons, we I have been asked to update a ColdFusion 9 Enterprise (9,0,2,282541) application's Java 8. Is it possible to configure ColdFusion 9 to run on Java 8? I have successfully configured it to work with the last version of Java 7 (1.7.0_80).When I attempt to use the Java 8 JRE, the site throws an Error 500, with the message ""Error","jrpp-0","08/31/15","16:48:21","cfadmin","javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)" in the exception log.Thanks!
We've been using Flash Remoting for years and now, while testing CF 10 on a development server, find that it no longer works. In particular, I get a 404 error when trying to access https://{ip address}/flashservices/gateway.I've already confirmed that remoting is enabled in the Administrator and followed the steps given in the documentation (http://help.adobe.com/en_US/ColdFusion/10.0/Installing/WSc3ff6d0ea77859461172e0811cdec18969-7ffa.html).Any advice?
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Sie haben bereits einen Account? Anmelden
Noch kein Konto? Konto erstellen
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.