tracker issue : CF-4198267

select a category, or use search below
(searches all categories and all time range)
Title:

expandPath() is affected by htacces rules

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce

Reporter/Name(from Bugbase): Maxime de Visscher / Maxime de Visscher ()

Created: 01/17/2017

Components: File Management

Versions: 2016

Failure Type: Unspecified

Found In Build/Fixed In Build: 2016,0,03,300466 / NA

Priority/Frequency: Normal /

Locale/System: / Linux

Vote Count: 0

Problem Description:

On Linux/Ubuntu when you have a urlrewrite condition, it affect expandPath()






Steps to Reproduce:

add following line in your htaccess :

RewriteCond %{REQUEST_URI} !^.*/(ai-cache)
RewriteRule ^(.*\.(gif|jpg|png))$ ./miscellaneous/adaptive-images.cfm?img=$1&%{QUERY_STRING} [NC,L]

coldfusion testing code:

#expandPath('files/')#
<hr>
#expandPath('files/myimage.jpg')#

Actual Result:

/var/www/files/
--------------
/opt/coldfusion2016/cfusion/bin/redirect:/miscellaneous/adaptive-images.cfm

Expected Result:

/var/www/files/
--------------
/opt/coldfusion2016/myimage.jpg

Any Workarounds:

Attachments:

  1. July 25, 2017 00:00:00: .htaccess
  2. July 25, 2017 00:00:00: 4198267.cfm

Comments:

Unable to reproduce with the attached files. Please provide the .htaccess / test.cfm, or a ready setup on the docker image.
Comment by Immanuel N.
1327 | July 25, 2017 07:33:25 AM GMT
Withdrawing the bug as cannot reproduce. Please post back here if you continue to experience the issue, and we will reopen the bug.
Comment by Immanuel N.
1328 | September 11, 2017 04:36:05 AM GMT