Issue Bug Closed

#57413Symlink check on /typo3 directory is not working correctly if target ends with a slash

Jana Golinowski 03/28/14, 14:57 updated 10/02/18, 11:58

Description

I just did a test installation of TYPO3 6.2 and noticed that the Install Tool doesn’t recognize my symlink for /typo3.

I created this symlink using tab-completion so the link target ends with a slash. But the Install Tool seems not to be able to read the target in that case.

Install Tool message:

/typo3 is a link, but link target is not as specified
Link target should be typo3_src/typo3 but is typo3_src/typo3/

Symlink commands causing that message:

$ ln -s typo3_src/typo3/
$ ln -s typo3_src/typo3/ .
$ ln -s typo3_src/typo3/ typo3

Symlink command NOT causing that message:

$ ln -s typo3_src/typo3
$ ln -s typo3_src/typo3 .
$ ln -s typo3_src/typo3 typo3

A simple cli test is working for both cases:

$ ln -s typo3_src/typo3
$ php -r "var_dump(readlink('typo3'));"
string(15) "typo3_src/typo3"
$ ln -s typo3_src/typo3/
$ php -r "var_dump(readlink('typo3'));"
string(16) "typo3_src/typo3/"

Reviews 2