Project

General

Profile

Actions

Bug #28003

closed

unit tests for filebackend fail with "The directory "vfs://Foo/Cache/Data/SomeCache/" is not writable."

Added by Philipp Gampe over 13 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Tests
Target version:
-
Start date:
2011-07-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I have those already since quite a while.

yum info php (fedora 15)

Name        : php
Arch        : x86_64
Version     : 5.3.6
Release     : 2.fc15

phpunit from svn r49620 (last change r48987)
typo3 master as of today: 5ee2ea6a237ca01872e0c19c5401edc33c29de26

If I change lines 62-63:

        \vfsStreamWrapper::register();
        \vfsStreamWrapper::setRoot(new \vfsStreamDirectory('Foo'));

to
        vfsStream::setup('Foo', 777);

I get the message:

The directory "vfs://Foo/Cache/Data/SomeCache/" can not be created.

Thats where I got stuck now :(


Files

phpinfo.html (65.3 KB) phpinfo.html My PHP settings Philipp Gampe, 2012-05-17 23:57
localconf.php (14.1 KB) localconf.php My localconf.php, normal test env Philipp Gampe, 2012-05-17 23:57
Actions #1

Updated by Philipp Gampe almost 13 years ago

  • Assignee set to Philipp Gampe

Ok, problem is somewhere else ... if skip the is_writable check in the file backend for streams, this just works. Seems to be a bug in vfsStream.

I will push a fix to gerrit.

Actions #2

Updated by Gerrit Code Review almost 13 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8974

Actions #3

Updated by Gerrit Code Review over 12 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8974

Updated by Philipp Gampe over 12 years ago

My setup:

Fedora 16 x86_64, Kernel 3.3.5-2.fc16.x86_64

$ php --version
PHP 5.3.11 (cli) (built: Apr 27 2012 15:09:58) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
    with Xdebug v2.1.4, Copyright (c) 2002-2012, by Derick Rethans

phpunit from svn r61685
TYPO3 master

Actions #5

Updated by Susanne Moog over 12 years ago

Philipp, do you have the PEAR package phpunit installed on your system or is the extension using it's own package? Can you try to find that out? I had some similar problems when phpunit was using the systems PEAR package and I had not updated that for quite some time.

Actions #6

Updated by Philipp Gampe over 12 years ago

I guess so, but AFAIK phpunit puts its shipped pear version first in include path. I will check that.

Actions #7

Updated by Oliver Klee over 12 years ago

BTW, the latest version of the phpunit extension does not bring its own complete PEAR, but just the parts needed for PHPUnit (PHPUnit, Mock etc.).

Actions #8

Updated by Philipp Gampe over 12 years ago

No change after removing the pear packages from my system.

Actions #9

Updated by Philipp Gampe over 12 years ago

Ok, by now I use Fedora 17 which ships with PHP 5.4.3.

This are the last remaining failing unit tests.

PhpUnit is from latest SVN as of today. I do not have pear phpunit installed.

The patch still works, only the commit message needs an update for the release line.

Actions #10

Updated by Philipp Gampe over 12 years ago

Here is the full guide to reproduce:
https://notes.typo3.org/p/bug-28003

Actions #11

Updated by Gerrit Code Review over 12 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8974

Actions #12

Updated by Philipp Gampe about 12 years ago

Can be closed: PHP on redhat systems need the php-process.

Actions #13

Updated by Stefan Galinski over 11 years ago

  • Status changed from Under Review to Closed
Actions #14

Updated by Ernesto Baschny over 10 years ago

  • Is Regression set to No

Additional information if you reach this report and are using MacOS X with MacPorts and PHP 5.3 (and maybe later).

You will need to install "php53-posix" if you hit this bug. After that, the tests work. :)

Actions

Also available in: Atom PDF