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: /path/to/folder/v1/index.cfm

Can anyone explain why the getCurrentTemplatePath is different between the 2?

My issue is there is no Applicaiton.cfc in /path/to/folder but there is in path/to/v1

The index.cfm in CF11 will see the Application.cfc but CF2018 wont

来源:https://stackoverflow.com/questions/65561344/coldfusion-2018-vs-11-centos-6-vs-7-handling-of-symlinks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!