cfml

Coldfusion 2018 vs 11, Centos 6 vs 7, handling of symlinks

三世轮回 提交于 2021-01-27 12:30:52
问题 I'm getting different outputs from getCurrentTemplatePath in CF2018 on Centos7 vs CF11 on Centos6 /path/to/folder contains a symlink v1 which points to /path/to/v1 With an apache website using DocumentRoot /path/to/folder , then visiting /v1 in a browser, the index.cfm dumps out expandPath('.') and getCurrentTemplatePath() in CF11 on Centos6, I get: expandPath: /path/to/v1 getCurrentTemplatePath: /path/to/v1/index.cfm in CF2018 on Centos7, I get: expandPath: /path/to/v1 getCurrentTemplatePath

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.

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

Consuming a SAML 2.0 assertion with ColdFusion - What do I do with a public key (.pem) file?

别等时光非礼了梦想. 提交于 2020-02-03 09:27:26
问题 I am tasked with getting our ColdFusion 9 app to receive a SAML assertion for single sign-on. We are the service provider. Thus far, I have used the only real source of information about ColdFusion and SAML at the following URL for guidance: http://blog.tagworldwide.com/?p=19 I have a sample SAML XML assertion from the identity provider and it looks very similar to the following example from Salesforce.com. <samlp:Response ID="_257f9d9e9fa14962c0803903a6ccad931245264310738" IssueInstant="2009

White Space / Coldfusion

孤街醉人 提交于 2020-02-01 10:58:11
问题 What would be the correct way to stop the white space that ColdFusion outputs? I know there is cfcontent and cfsetting enableCFoutputOnly . What is the correct way to do that? 回答1: In addition to <cfsilent> , <cfsetting enablecfoutputonly="yes"> and <cfprocessingdirective suppressWhiteSpace = "true"> is <cfcontent reset="true" /> . You can delete whitespaces at the beginning of your document with it. HTML5 document would then start like this: <cfcontent type="text/html; charset=utf-8" reset=

Scope of var and variables

余生长醉 提交于 2020-01-24 06:16:52
问题 If I have a function like <cfscript> function say(what) { var a = what; variables.b = what; return what; } </cfscript> I thought the scope of a was variables , but dumping variables returns just b . What is the scope of a? 回答1: Declaring a variable using the var keyword puts it into the local scope, not the variables scope. 回答2: This really is a comment, but it is way too long. Consider the following code <cfscript> function doMath() { var a = 1; local.b = 2; return a + local.b; } </cfscript>