Questions tagged [coldfusion-2016]

ColdFusion is a server-side rapid application development platform, from Adobe. ColdFusion 2016 is the current release of CF released on February 15, 2016.

0
votes
0answers
3 views

Passing an input from form into Coldfusion Query

Hello I am trying to pass a variable who's value would come from a form input to a Query to retrieve a value and pass back to the form as a hidden value.Very confusing, and I hope I am overthinking ...
0
votes
2answers
33 views

Passing form input using Coldfusion to external URL

I am trying to pass a form input to an external URL to be used somewhere else and perform a certain task. The issue I am having is actually getting the value and passing it. I either get a LotNumber ...
2
votes
1answer
52 views

<cfhttp> to download a remote .csv file in ColdFusion

I'm trying to download a .csv file on a remote server location using ColdFusion (version 2016). I used the cfhttp tag to perform this operation but I keep getting the following error: 401 ...
1
vote
1answer
58 views

Not able to a https web service in ColdFusion 8

We are trying to add a https web service via CFadmin in ColdFusion 8. We have two ColdFusion applications. One on ColdFusion 2016 and other in ColdFusion 8. The CF8 application consumes few of the ...
0
votes
1answer
70 views

Access the page if user is not loggedin?

I have login in my new application that checks on each request if user is logged in. If user is not logged in automatically will be redirected to the login page. I have situation where user clicks on ...
1
vote
0answers
38 views

Adding onto an existing ColdFusion 2016 ORM application

I am working on adding to a ColdFusion 2016 application with ORM. The application pulls up and doesn't give any type of errors prior to adding the second table code (TableTwo). As soon as the second ...
2
votes
1answer
109 views

How to return NULL instead of 0 from MySQL TinyInt(1)

I've moved a site from ColdFusion 10 to ColdFusion 2016, and I've noticed when querying a MySql database, tinyint(1) fields that are null would previously come back to ColdFusion as empty values but ...
0
votes
1answer
48 views

How to check native code error in cfcatch block?

I have cfcatch block that should catch any exception. Once error detected I build custom function that takes NativeErrorCode as an argument. If error code is one that I'm looking for that indicates ...
1
vote
3answers
85 views

Ajax call to ColdFusion component not returning data

I am trying to make an Ajax call with jQuery to my ColdFusion component within QueryData.cfc Here is the QueryData.cfc code: <cfcomponent name="querydata" access="remote" hint="getting data from ...
4
votes
1answer
65 views

How to run query on session end?

I have query that should run on session end. If there is record that is tied to user account then I would like to remove that record. I use session scope to store users ID's. Once user manually logs ...
0
votes
1answer
64 views

How to handle errors in ColdFusion stored procedure results?

I use ColdFusion to call stored procedure to either insert or update users data. These two transactions are separated in two procedures. My SQL code should return row-count 1 or 0 depends if ...
1
vote
1answer
55 views

Creating an internal clock within Coldfusion .cfc file to execute scheduled tasks

I am needing to do scheduled tasks based off an ever going internal clock. I know this is possible with Javascript, but this solution will need to be hosted within a Application.cfc file. I tried to ...
3
votes
2answers
82 views

Counting the number of hits in a life cycle method using ColdFusion

I am needing to display some analytics regarding how many times a "OnRequestStart" function is called, or rather the number of hits per hour on our internal API that’s contained in a .cfc file. ...
2
votes
0answers
61 views

Single downloads logged multiple times for iOS devices on ColdFusion 2016 / IIS 10 / HTTP/2

I have multiple file downloads working using this code: <cfoutput query="RetrieveFiles"> <a href="downloads/?id=#FileID#">Download #FileName#</a><br> </cfoutput> ...
1
vote
0answers
54 views

CFML / Fusebox: Several problems and errors with /parsed files

There is a live and a development environment of a Fusebox 5.5.1 application. Everything works fine in the last one. And also the live version worked normal until a week ago. There were no changes to ...
5
votes
1answer
66 views

How to use IIS URL rewrite for ColdFusion to remove Server header and other varibles from Header Response? For IIS (8 and above versions)

As a part of security configuration, we should not be revealing the "Server" variable and other variables in the Header Response. How can I remove these variables for a ColdFusion server hosted on IIS?...
0
votes
1answer
89 views

Filter SQL query Where clause using OR vs ColdFusion?

I have search form where user selects some criteria before they submit request to the server. This involves search criteria that can be search by Name, Number or Show All. In our existing (old system) ...
0
votes
2answers
85 views

coldfusion 8 and 2016: CFEXECUTE not returning result/error

All I get in my browser is a blank screen. If I don't use IsDefined, I would get an error in the page stating the variable doesn't exists. If I misspell a command (example: using /bin/bsh instead of /...
2
votes
1answer
74 views

Error converting Data to JSON in ColdFusion

I have an application that has MS SQL Server as the backend database, ColdFusion server and front end is Angular. I am getting the following error when trying to retrieve data from a few tables in the ...
1
vote
1answer
59 views

What validations should be done post canonicalize function in ColdFusion to avoid XSS attack?

We are working to avoid XSS attacks in a ColdFusion application. After adding <cfset this.scriptprotect=”all”> in our cfapplication tag, it worked only for the form input values which are now ...
2
votes
2answers
57 views

How can I get the Monday's date of the previous week and Friday's date of the previous week?

I am using ColdFusion 2016. What code is needed to get the previous Monday in the previous week and the previous Friday in the previous week? This code below gets the previous Monday, but I want ...
1
vote
0answers
57 views

Where the is “InvalidTag” coming from in ColdFusion?

Whenever Script tag is added in the input controls on a form after reloading these pages, I see it has become "InvalidTag". Where did it come from?
0
votes
1answer
83 views

How to build JAR files from

I am using ColdFusion 2016 and want to use this java library from within ColdFusion. https://github.com/getstream/stream-java It is not clear what folders are needed to make this work. I'm very new ...
0
votes
0answers
65 views

Java to use ColdFusion classes through CFCProxy is throwing ClassNotFoundException

Scenario: I am doing a spike to see the feasibility of Java application communicating to another ColdFusion application which resides on the same JVM. The intention is to create micro services using ...
0
votes
0answers
43 views

Coldfusion - Charts for Email Saving Blank Files

SO. I'm at a dead-end hoping someone can help with this one. And thank you in advance. Working on an automated email on ColdFusion 2016 server. (I have also tested on CF11 and having the same issues, ...
1
vote
1answer
75 views

QueryExecute(): How to use SQL wildcard % search with a LIKE clause?

I am new to ColdFusion and am trying to query something and use it in the cfscript. I cannot use actual code here, but here is a general SQL query I hope will help. It's a old script and I am trying ...
2
votes
2answers
80 views

CFIF statement checking if database (MSSQL) is connecting or exists

I am trying to write an if statement in Coldfusion 16 to check to see if it can connect to the database or that it exists. If it can connect to the database then show the page otherwise show down for ...
2
votes
1answer
54 views

Creating highlighted results in Coldfusion

I have output from a table that I want highlighted should a certain requirement not be met. I have it working fine for one section, but then when I use the code on a QofQ after an inner join of two ...
0
votes
2answers
84 views

Is there an easily accessible unique ID that relates to a single ColdFusion request?

I'm implementing a logging solution and would like an easy way to track which events occurred within the same request. The logging function will reside in a cfc and could be fired off from the ...
0
votes
2answers
59 views

Stripping non html tags/text from a string

I have a string which I need to send in an xml node to a third party application. That string is then parsed through a html parser over there. The string can have html, but problem occurs with non ...
1
vote
2answers
145 views

Defining variables in cfscript ColdFusion?

I tried to rewrite my Application.cfc and other .cfc files in my system with cfscript. There is few things that I'm not sure how they work in cfscript. I'm wondering about defining variables inside of ...
1
vote
0answers
97 views

How to verify valid session and session data in ColdFusion .cfc page?

I have been developing single page application that runs on ColdFusion 2016. I already developed login page and now I would like to develop security for each Ajax call that is sent to .cfc page. There ...
0
votes
2answers
57 views

how to know what ran from upsert query

I have a query <cfquery name="qryTemp" datasource="someDSN"> if not exists (select someID from tempTable where someID = 20) insert into tempTable (someID, colA, colB) values (1,2,3) else update ...
2
votes
0answers
47 views

ColdFusion floor Function After Division [duplicate]

Having a bit of an issue with the behaviour of ColdFusions floor. I would expect flooring the value 3316 would result in 3316. However, it is resulting in 3315 which is odd. Can anyone explain this ...
0
votes
1answer
64 views

For posting back on itself with query string

I have <form action="?#cgi.query_string#" method="post" ... The cgi.query_string comes in with an indefinite number of variables. I tried using <form action="?#EncodeForURL(cgi.query_string)#"...
3
votes
1answer
74 views

CFMail attachment filename broken in ColdFusion 2016 on Windows server

I'm moving a site from CF10 on Linux to CF2016 on Windows, and have run into an issue with file attachments with cfmail. I'm attaching the file in cfmail with; <cfmailparam file="#FileName#"> ...
1
vote
1answer
49 views

Coldfusion 2016 how to include template when using cfscript mail()?

A simple example of what I'm trying to accomplish using tag based code: <cfmail to="[email protected]" from="[email protected]" subject="howdy" type="html"> <cfinclude template="...
1
vote
1answer
54 views

Getting accurate request count

I have this code for counting Requests: <cfobject type="JAVA" action="Create" name="thread" class="java.lang.Thread"> <!--- Get all stack traces from the thread object ---> <cfset ...
0
votes
0answers
113 views

How to make ColdFusion wait?

Let's say I have a function called takesFiveSeconds(). I want to see the outcome after it's finished. takesFiveSeconds() writeDump(outcome); // don't execute until takesFiveSeconds is finished abort;...
0
votes
0answers
57 views

Convert PHP array to Coldfusion

I'm trying to convert a PHP array to coldfusion I'm stumped and was hoping you all could help. Below is the line of code I'm trying to convert: $round[$i][$j]["Home"]=$home[$j]; Any help would be ...
1
vote
1answer
49 views

Rendering XML with bigger content

The CF application returns an XML response to a desktop application. XML response is alright within .5 to 3 seconds. XML contain attachments which are zipped and then base64 encoded. As soon as we ...
1
vote
1answer
105 views

Trouble trying to use Amazon Transcribe with ColdFusion using Java SDK

I'm trying to use the AWS Java SDK to develop a ColdFusion application that uses the Amazon Transcribe service. Unfortunately my knowledge of Java is pitiful (to say nothing of the SDK itself) and I'm ...
3
votes
3answers
124 views

How to set a dynamic key name in a struct with cfquery column?

I have structure where I want to replace currentRow key with cfquery column recID. This column is integer that is auto incremented in sql table. For some reason my code is failing to create structure ...
2
votes
0answers
115 views

ColdFusion 2016 CFChart issue

I have an application that we are migrating from ColdFusion 9 to ColdFusion 2016. I am having an issue on a page that creates 6 charts and saves them as images on the server. The system will generate ...
2
votes
1answer
92 views

Pass JSON String From ColdFusion To Javascript

I am trying to pass a ColdFusion-generated JSON string as a parameter into a Javascript function. I'm getting an "Uncaught SyntaxError: Invalid or unexpected token" error I think because of some ...
0
votes
1answer
29 views

ColdFusion 2016 upgrade giving stored procedure error

We are in the process of upgrading to ColdFusion 2016 to work with SqlServer 2017. Our current version (ColdFusion 10/SqlServer 2008) is working fine. We are testing our code in a development ...
1
vote
1answer
56 views

Use of IS outside of <cfif>

I am not quite sure what this does. <cfset User.ZeroBDK = FORM.ZeroBDK is "YES"> Is this short hand for <cfset User.ZeroBDK = false> <cfif FORM.ZeroBDK EQ "Yes"> <cfset ...
0
votes
1answer
29 views

URL Parameters are not processed when opening in MS Edge

Okay, here's a weird issue for you guy sand gals. I'm using a window.open tag in JS to open a .cfm file that will open in Excel (Report), however, the appended URL variable appears to change. It ...
0
votes
0answers
15 views

Postgresql Update and Delete

I am using postgresql as database and coldfusion for application logic. I have a column name as "ID" in a table and it is integer. Now I am deleting(first operation) a row which is having max ID and ...
5
votes
2answers
864 views

Could not create connection to database (ColdFusion)

I'm creating a simple CRUD application via ColdFusion. I'm going to ColdFusion Administrator Panel at http://localhost:8600/CFIDE/administrator/index.cfm, and adding a "New Data Source". But I get the ...