Bug #33297

flow3 package:list throws an error

Added by Christopher Seidel almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Won't have this time
Category:
-
Target version:
-
Start date:
2012-01-18
Due date:
% Done:

0%

PHP Version:
Has patch:
No
Complexity:

Description

Hi together,

thanks for FLOW3. I'm developing for about one year with it and now i discovered a bug which is not an open task, or maybe i just didn't find it. If you use the ./flow3 package:list to list the packages on the system it throws an error if there is somewhere a file with "#". Of course this is not normal but it throws the following:

Uncaught Exception
opendir(/var/www/Packages/Application/Seidel.Buecherliste/Resources/Public/Images):
failed to open dir: Too many open files

More Information
Exception code #0
File /var/www/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_Resource_Streams_ResourceStreamWrapper_Original.php line 87

Thanks so far for your work!

History

#1 Updated by Karsten Dambekalns almost 8 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Karsten Dambekalns

Could you give me some more details to reproduce this? Like an offending filename? Thanks!

#2 Updated by Christopher Seidel almost 8 years ago

Yes just like:

#test.html

or something similar

#3 Updated by Karsten Dambekalns almost 8 years ago

  • Status changed from Needs Feedback to Accepted

#4 Updated by Karsten Dambekalns almost 8 years ago

  • Status changed from Accepted to Needs Feedback

I created a file named #test.html in the public resources folder and called package:list - worked fine. I suspect a different problem, as failed to open dir: Too many open files also hints at something different.

Does this only happen with package:list or also other commands?

#5 Updated by Christian Müller almost 8 years ago

Maybe a bug in a specific PHP version causing some overflow (Too many open files) when there is a file with #?

Karsten Dambekalns wrote:

I created a file named #test.html in the public resources folder and called package:list - worked fine. I suspect a different problem, as failed to open dir: Too many open files also hints at something different.

Does this only happen with package:list or also other commands?

#6 Updated by Christian Müller almost 8 years ago

Could you tell us the used PHP version and the amount of files and directories in this folder? And additionally try a simple test script directly in this folder, something like:

<?php

$handle = opendir(__DIR__);
if ($handle !== FALSE) {
    while (($file = readdir($handle)) !== false) {
        echo "filename: $file ". "\n";
    }
}
?>

#7 Updated by Christopher Seidel almost 8 years ago

Well, i updated apache2, PHP and FLOW3 Versions last weeks and now the error doesnt occur anymore :/

I will try to produce this error again

#8 Updated by Karsten Dambekalns almost 8 years ago

  • Status changed from Needs Feedback to Closed
  • Priority changed from Should have to Won't have this time

That matches my expectations to a large degree - sounded like something not really related to our code.

Have fun without the bug! ;)

Also available in: Atom PDF