Bug #51761
closedPHP Warning for open_basedir in filelist for every file after updating 6.1.3 -> 6.1.4
100%
Description
I don't know in which change this was included ... but since the update to 6.1.4, I get a PHP Warning for every file listed there.
The warning is:
PHP Warning: is_dir(): open_basedir restriction in effect. File(/srv/http/domain.org/www/fileadmin/user_upload/someimage.jpg/) is not within the allowed path(s): (/srv/http/domain.org/:/srv/http/localhost/www/piwik/:/srv/http/typo3/:/srv/http/default/xhprof/:/srv/xhprof/:/usr/share/php/xhprof_lib/utils/) in /srv/http/typo3/typo3_src-6.1.4-patched/typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php line 399
I don't know whether this is a PHP bug or not, but it just appears after updating to 6.1.4. After downgrading to 6.1.3, it disappeared.
Updated by Simon Schick about 11 years ago
FYI: the version I have is called "patched", because I patched it with this bugfix: https://review.typo3.org/#/c/20981/
Unpatching doesn't help.
Updated by Markus Klein about 11 years ago
Thx for reporting.
Indeed these path checks were introduced in 6.1.4.
Obviously the tests with open_basedir were not sufficient.
/srv/http/domain.org/www/fileadmin/user_upload/someimage.jpg/
Updated by Marcus Krause about 11 years ago
Root cause is obviously an is_dir() call on a file resource with a trailing slash.
Updated by Ernesto Baschny about 11 years ago
- Category set to 1394
- Target version deleted (
2463)
Updated by Ernesto Baschny about 11 years ago
- Category changed from 1394 to File Abstraction Layer (FAL)
- Status changed from New to Accepted
- Target version set to next-patchlevel
Updated by Gerrit Code Review about 11 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23696
Updated by Helmut Hummel about 11 years ago
Can you check if the change in Gerrit fixes your problem?
Updated by Gerrit Code Review about 11 years ago
Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/23698
Updated by Gerrit Code Review about 11 years ago
Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/23699
Updated by Helmut Hummel about 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c4179a13842927912fea6e2b73a12928c8fd7d0c.