coldfusion

Auto Format on Visual Studio Code for .cfm files

时光毁灭记忆、已成空白 提交于 2020-03-22 09:00:11
问题 Does anyone know if there's a way to auto format ColdFusion documents on VSCode the way it does for HTML files ? 回答1: In VS Code, click on Extensions on the left side. Or View >> Extensions (or CTRL-SHIFT-X on Windows). Enter "CFML" in the Search box, and choose KamasamaK's extension (kamasamak.vscode-cfml). It is an excellent extension. There are also others, if you're interested. Or https://marketplace.visualstudio.com/items?itemName=KamasamaK.vscode-cfml 回答2: Auto format HTML, JS & CSS

ColdFusion: SAML Service Provider ADFS

若如初见. 提交于 2020-03-21 03:00:09
问题 Our company is programming custom webshops for our customers. Now a customer has contacted us to implement the authentication under use of SAML. The customer is running an ADFS server already. My job is it to evaluate how difficult the work is for our company and what steps we need to take. I searched the web now for quite a long time now and I didn't find really useful stuff. I understand the basic dataflow, but a more ColdFusion specific example for a service provider would be great.

ColdFusion: SAML Service Provider ADFS

ⅰ亾dé卋堺 提交于 2020-03-21 03:00:06
问题 Our company is programming custom webshops for our customers. Now a customer has contacted us to implement the authentication under use of SAML. The customer is running an ADFS server already. My job is it to evaluate how difficult the work is for our company and what steps we need to take. I searched the web now for quite a long time now and I didn't find really useful stuff. I understand the basic dataflow, but a more ColdFusion specific example for a service provider would be great.

Is there a way to prevent cfchart from forcing js into response content?

白昼怎懂夜的黑 提交于 2020-03-03 06:28:20
问题 Update: reported bug, votes appreciated https://tracker.adobe.com/#/view/CF-4200017 We are migrating from ColdFusion 10 to 2016. It appears the only hurdle with compatibility is the change in charting system. For full page requests this is generally fine but in some spots we generate a chart in png format, capture the content generated and strip out some js that is generated simultaneously and return the result in json as part of a page update. A problem we are running into is that CF is

How to Read Multipart Response in ColdFusion

孤者浪人 提交于 2020-02-29 07:08:47
问题 I am doing a CFHTTP post to a web service that is returning two parts (multipart), a XML and PDF. I am looking to get only the PDF. My cfhttp.filecontent is a java.io.ByteArrayOutputStream type. When I do a toString() I get the following Part 1 Content-Type: application/xop+xml; type="text/xml"; charset=utf-8 Content-Transfer-Encoding: 8bit Part 2 Content-Type: application/pdf Content-Transfer-Encoding: binary I get the response in cfhttp.fileContent and the data looks like the following -

ColdFusion 10 REST API: How to parse JSON in body of payload

风格不统一 提交于 2020-02-28 06:56:23
问题 I'm using ColdFusion 10's new build-in RESTful web services feature. When posting data, I'd like to send the payload as JSON in the body of the request. For example: PUT https://mycompany.com/rest/v1.0/widget/261469 HTTP/1.1 Host: mycompany.com Connection: keep-alive Content-Length: 13 Content-Type: application/json {"foo":"bar"} Once this data is posted through the API, how should I parse and deserialize the JSON data on the server? Does ColdFusion REST service have a built-in way to do this

Coldfusion 11 REST Service works with HTTP but not HTTPS (404)

廉价感情. 提交于 2020-02-27 09:20:28
问题 I'm trying to take advantage of Coldfusion 11's REST Services, but I can only get it working with HTTP, not HTTPS. When I change the protocol to HTTPS, it returns a 404. The steps I have taken: 1) I made a folder in web root called "api-test" 2) Inside that folder, I created a file called "animals.cfc" containing: <cfcomponent rest="true" restpath="/animals"> <cffunction name="getAnimals" access="remote" httpmethod="GET" produces="application/json" returntype="struct"> <cfset value = { "cats"

Should I trim values in SQL or ColdFusion?

我们两清 提交于 2020-02-25 05:24:47
问题 I have done many inserts/updates and question that always was on the top of my mind is where I should trim the values that I'm inserting or updating. In this case I use ColdFusion as my server-side programming language and SQL Microsoft is my database language. So if I'm doing insert, should I trim the values in ColdFusion or SQL? Do I have to do in both? What is more efficient? I was wondering if this can improve efficiency if I follow some recommended steps. Here is example that I have in

Should I trim values in SQL or ColdFusion?

淺唱寂寞╮ 提交于 2020-02-25 05:24:16
问题 I have done many inserts/updates and question that always was on the top of my mind is where I should trim the values that I'm inserting or updating. In this case I use ColdFusion as my server-side programming language and SQL Microsoft is my database language. So if I'm doing insert, should I trim the values in ColdFusion or SQL? Do I have to do in both? What is more efficient? I was wondering if this can improve efficiency if I follow some recommended steps. Here is example that I have in

ColdFusion 2016: Can you have a folder in your web root named 'api' or 'rest'?

非 Y 不嫁゛ 提交于 2020-02-23 10:22:12
问题 I just installed ColdFusion 2016 (upgraded from CF10) and I noticed that whenever I try and access a folder in my webroot called 'api', I get an internal 500 error. For example: www.mysite.com/api/ I assume this has something to do with the new ColdFusion API REST service so I created another directory called 'rest', performed the same test (www.mysite.com/rest/), and received yet another 500 error. See the IIS error screenshot: The strange thing is that I don't use the ColdFusion REST