chris-schmitz
06/21/2022, 8:02 AMexpandPath()
?
<cfoutput>
expandPath( '/some-dir/' ): #expandPath( '/some-dir/' )#
</cfoutput>
If some-dir
contains an index.cfm
, the output is /var/www/some-dir/index.cfm/
This happens only on ACF on Linux (with on a native install and within a Docker container. It does NOT happen on CommandBox servers though. (So possibly it does not happen on WAR installs?)
I'd just like to find out if this is something in ACF or maybe related to your system setup.Adam Cameron
paths = [
"/existent-directory-with-index-cfm/",
"/existent-directory-without-index-cfm/",
"/non-existent-directory/"
]
paths.each((path) => writeOutput("expandPath('#path#'): #expandPath(path)# (index.cfm? #fileExists(expandPath('#path#index.cfm'))#)<br>"))
writeOutput("<br>#server.coldfusion.productVersion# / #server.os.name# / #server.os.additionalInformation# / #server.os.version# / #server.os.arch#<br>")
expandPath('/existent-directory-with-index-cfm/'): /app/existent-directory-with-index-cfm/ (index.cfm? YES)
expandPath('/existent-directory-without-index-cfm/'): /app/existent-directory-without-index-cfm/ (index.cfm? NO)
expandPath('/non-existent-directory/'): /app/non-existent-directory/ (index.cfm? NO)
2021,0,03,329779 / UNIX / Linux / 4.19.128-microsoft-standard / amd64
Might be something in your config I think.chris-schmitz
06/21/2022, 10:46 AMAdam Cameron
Dave Merrill
06/21/2022, 12:47 PMpaul
06/23/2022, 4:38 AMpaul
06/23/2022, 4:43 AMchris-schmitz
06/23/2022, 7:56 AMDirectoryIndex index.cfm
directive either in your mod_jk.conf
or in the host configuration, expandPath()
will behave as I described above. If you remove both, it works as expected.chris-schmitz
06/23/2022, 9:14 AM