Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fehler beim Editieren von Domaineinstellungen #1044

Closed
stdaube opened this issue Jul 6, 2022 · 5 comments
Closed

Fehler beim Editieren von Domaineinstellungen #1044

stdaube opened this issue Jul 6, 2022 · 5 comments
Assignees
Milestone

Comments

@stdaube
Copy link

stdaube commented Jul 6, 2022

Beim Aufruf der Domaineinstellungen bekomme ich eine weiße Seite

Im PHP-Fehlerlog stehen folgende Informationen:

mod_fcgid: stderr: PHP Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/home/web1/abcd/efgh): failed to open dir: Permission denied in /var/www/froxlor/lib/Froxlor/FileDir.php:505, referer: froxlor/customer_domains.php?page=domains&s=3d2bd7ceec6d8b1b99fe02d456aa19a9
mod_fcgid: stderr: Stack trace:, referer: froxlor/customer_domains.php?page=domains&s=3d2bd7ceec6d8b1b99fe02d456aa19a9
mod_fcgid: stderr: #0 [internal function]: RecursiveDirectoryIterator->__construct('/home/web1/abcd/efgh', 4096), referer: froxlor/customer_domains.php?page=domains&s=3d2bd7ceec6d8b1b99fe02d456aa19a9
mod_fcgid: stderr: #1 [internal function]: RecursiveDirectoryIterator->getChildren(), referer: froxlor/customer_domains.php?page=domains&s=3d2bd7ceec6d8b1b99fe02d456aa19a9
mod_fcgid: stderr: #2 /var/www/froxlor/lib/Froxlor/FileDir.php(505): RecursiveCallbackFilterIterator->getChildren(), referer: froxlor/customer_domains.php?page=domains&s=3d2bd7ceec6d8b1b99fe02d456aa19a9
mod_fcgid: stderr: #3 /var/www/froxlor/lib/Froxlor/FileDir.php(407): Froxlor\FileDir::findDirs('/home/web1/abcd/efgh', '1187', '1187'), referer: froxlor/customer_domains.php?page=domains&s=3d2bd7ceec6d8b1b99fe02d456aa19a9
mod_fcgid: stderr: #4 /var/www/froxlor/customer_domains.php(301): Froxlor\FileDir::makePathfield('/home/web1/abcd/efgh', '1187', '1187', '/html/c49/web/'), referer: froxlor/customer_domains.php?page=domains&s=3d2bd7ceec6d8b1b99fe02d456aa19a9
mod_fcgid: stderr: #5 {main}, referer: froxlor/customer_domains.php?page=domains&s=3d2bd7ceec6d8b1b99fe02d456aa19a9
mod_fcgid: stderr: thrown in /var/www/froxlor/lib/Froxlor/FileDir.php on line 505, referer: froxlor/customer_domains.php?page=domains&s=3d2bd7ceec6d8b1b99fe02d456aa19a9

/home/web1/abcd/efgh hat chmod 700 und web1:web1 als Benutzer

@d00p
Copy link
Member

d00p commented Jul 6, 2022

Ja wenn die Gruppe nicht lesen darf kann der froxlor User / Webserver User die Ordner im "Dropdown" Modus nunmal nicht anzeigen

@stdaube
Copy link
Author

stdaube commented Jul 6, 2022

Ist im Prinzip richtig, trotzdem sollte der Fehler abgefangen und das Verzeichnis ignoriert werden.
Leider habe ich keine Einfluß darauf welche chmods der Benutzer setzt.

@d00p d00p self-assigned this Jul 6, 2022
@d00p d00p added this to the 0.10.37 milestone Jul 6, 2022
@d00p d00p closed this as completed in e6a6f6f Jul 7, 2022
d00p added a commit that referenced this issue Jul 7, 2022
…ectories correctly (depth limited); fixes #1044

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
@stdaube
Copy link
Author

stdaube commented Aug 15, 2022

Bekomme mit dem Update jetzt nur / angeboten.

@d00p
Copy link
Member

d00p commented Aug 16, 2022

Can you verify that the following patch resolves the issue?

diff --git a/lib/Froxlor/FileDir.php b/lib/Froxlor/FileDir.php
index 8291d59a..d258835d 100644
--- a/lib/Froxlor/FileDir.php
+++ b/lib/Froxlor/FileDir.php
@@ -491,7 +491,7 @@ class FileDir
                                        new \RecursiveDirectoryIterator($path, \RecursiveDirectoryIterator::SKIP_DOTS),
                                        $filter
                                ),
-                               \RecursiveIteratorIterator::LEAVES_ONLY,
+                               \RecursiveIteratorIterator::SELF_FIRST,
                                \RecursiveIteratorIterator::CATCH_GET_CHILD
                        );
                        // we can limit the recursion-depth, but will it be helpful or

@stdaube
Copy link
Author

stdaube commented Aug 16, 2022

Ja, nun funktioniert es.

d00p added a commit that referenced this issue Aug 16, 2022
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
d00p added a commit that referenced this issue Aug 20, 2022
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants