coldfusion

Periods in URL causes ColdFusion error

时光总嘲笑我的痴心妄想 提交于 2019-12-22 07:04:19
问题 I am currently having issues with users (or bots, not sure) visiting non-existent links that have three periods in a sub-directory. For example, if someone goes to: http://www.example.com/.../test/index.cfm? Then I receive the following error: String index out of range: -1 null The error occurred on line -1. I have tested it with just 1 period and just 2 periods and it goes straight to a 404 error. Any link though that has 3 or more periods will cause this error. My question is what can I do

Web service is expecting a DataSet object, how can I provide that via ColdFusion or in raw XML?

落爺英雄遲暮 提交于 2019-12-22 06:36:52
问题 I need to make a call to a web service written in .NET. The application making the call is written in ColdFusion. One of the parameters the web service expects is a DataSet object. I can't instantiate a .NET DataSet object in ColdFusion, how can I pass the web service something it will accept? I have no problem writing the SOAP request in raw XML, I just don't know what the XML for a DataSet object would look like. 回答1: All objects that .NET expects are serialized by Axis and are available to

ColdFusion XmlSearch(): XPath with namespaces

跟風遠走 提交于 2019-12-22 06:26:20
问题 <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><env:Header xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><soapenv:Body><v9:ProcessShipmentReply xmlns:v9="http://fedex.com/ws/ship/v9"><v9:HighestSeverity xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">SUCCESS</v9:HighestSeverity><v9:Notifications xmlns:env

ColdFusion Session issue - multiple users behind one proxy IP — cftoken and cfid seems to be shared

拟墨画扇 提交于 2019-12-22 05:04:56
问题 I have an application that uses coldfusion's session management (instead of the J2EE) session management. We have one client, who has recently switched their company's traffic to us to come viaa proxy server in their network. So, to our Coldfusion server, it appears that all traffic is coming from this one IP Address, for all of the accounts of this one company.. Of the session variables, Part 1 is kept in a cflock, and Part 2 is kept in editable session variables. I may be misundestanding,

CFHTTP: first request fast, following slow

妖精的绣舞 提交于 2019-12-22 04:56:07
问题 I'm having a lot of trouble with CF10's CFHTTP at the moment. First, my test script: <CFSET results = arraynew(1) /> <CFLOOP from="1" to="10" index="idx"> <CFSET timer_start = getTickCount() /> <CFHTTP url="https://www.google.de" method="get" result="test" /> <CFSET arrayappend(results, (getTickCount()-timer_start)/1000 & " s") /> </CFLOOP> <CFDUMP var="#results#" /> 10 CFHTTP calls in a row, the time they take gets pushed to an array; that's all. Results of our CF9 server: Results of our

How to dynamically call a method from a different component by using cfscript?

心已入冬 提交于 2019-12-22 04:38:24
问题 I'm looking for the best way to dynamically call a method from a different component in cfscript. Notice that it's concerning a method in a different component. So far I've tried 3 different methods, but none of them seem be exactly what I'm looking for: All cases are written in cfscript inside a component method. Let's say I'm trying to dynamically call the setName(required string name) method in the MyComponent component. All cases have following variables defined: var myComp = new

Which computer assisted translation format should I use for a ColdFusion site?

淺唱寂寞╮ 提交于 2019-12-22 04:00:16
问题 I am creating a multilingual site that will need to support at minimum five different languages, including Korean and Chinese. The site language is ColdFusion, so Java is the native language. I want to make the site as easy as possible for the next programmer to update, and for third-party translators to use tools that will work easier for them than digging through a SQL database. So far I have come across Resource Bundles, GNU's GetText, and TMX. Which do you recommend and why? 回答1: Resource

ColdFusion: Application Options Based on Role?

青春壹個敷衍的年華 提交于 2019-12-22 00:13:09
问题 I understand how to restrict entire pages, or even components by implementing <cflogin> and roles. For example: <cfif IsUserInRole("Admin") OR IsUserInRole("Accounting")> ...You can view this page... <cfelse> ...You can not view this page... </cfif> But how is it recommended to restrict certain facets of a page? Say for example an "Admin" is allowed to send Global Messages to all users, but that option is not available for a regular "User" I suppose I could use the Session to manipulate my

ColdFusion 10: Handling and Logging Errors With New REST API

故事扮演 提交于 2019-12-21 22:32:55
问题 I'm using ColdFusion 10's new REST API: http://www.adobe.com/devnet/coldfusion/articles/restful-web-services.html Whenever there's an exception, the API handles it nicely and automatically returns something like this: HTTP/1.1 500 Internal Server Error Content-Length: 52 Content-Type: application/json Date: Fri, 22 Feb 2013 01:07:49 GMT {"Message":"Element FOO is undefined in ARGUMENTS."} The problem is that neither of the following gets called: Site-wide Error Handler Application.cfc's

ColdFusion 8 to ColdFusion 10 Migration: CFloginUser Not Working As Expected

▼魔方 西西 提交于 2019-12-21 21:29:38
问题 After upgrading from CF8 to CF10, moving all files and databases and jumping through all the configuration hoops, the new version of the site is up and running, but the authentication/login is not working. Here are the environments: Old server: ColdFusion Enterprise 8,0,1,195765 Operating System: Windows Vista* OS Version: 6.0 Update Level: .... hf801-00007.jar IIS Version: 7 (*not sure where that "Vista" comes from? The System Information says "Windows Server 2008 Datacenter without Hyper-V"