Priority: Enhancement
Current State: Closed
Released In: 2.1.3
Target Release: patch
When configure guesses the path to {PubUrlPath} is will in some cases put a relative path with ..
For example something/bin/../pub instead of something/pub
It seems to be related to using long path names incl bin and not short path names. Ie there is bin in the URLs
The consequence is that %PUBURL% macro gets the .. in it and
INCLUDEs with .. fails with illegal character. That is how I found it
--
KennethLavrsen - 29 Jul 2015
Repo
--
JozefMojzis - 29 Jul 2015
I don't know that we have a good solution here other than maybe warning that the path is relative. Bootstrap is extremely complex due to the the wide variety where it tries to guess these parameters. Any bootstrap changes need testing on all supported OS and
WebServer and File System variants. Including soft-links to paths, nginx, lighttpd, apache, mod_perl, fcgi, And also configurations where the "bin" path might be cgi-bin.
There is an attempt at unit tests in the
TestBootstrapPlugin however it is out-of-date from the latest code and needs updating.
--
GeorgeClark - 29 Jul 2015
Maybe a simple regex that removes dirname/.. from the path it has guessed.
A dirname/.. will always cancel itself out.
--
KennethLavrsen - 29 Jul 2015
Fixed by pruning the last component (bin, cgi-bin, etc) and replacing it with pub. Not sure this covers all cases though. Committing to 2.1.3
--
GeorgeClark - 01 Nov 2016