[TASK] Follow up: File and folder permission check on Windows 79/28579/3
authorNicole Cordes <typo3@cordes.co>
Thu, 20 Mar 2014 19:28:55 +0000 (20:28 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 20 Mar 2014 20:47:18 +0000 (21:47 +0100)
Install tool shows errors for file and folder permissions on Windows
system. As those are writable by default the errors should be turned
into information.

Resolves: #57118
Releases: 6.2
Change-Id: Idc9f1126916e161bcde1e48c91ada2f9846a9ef9
Reviewed-on: https://review.typo3.org/28579
Reviewed-by: Wouter Wolters
Reviewed-by: Xavier Perseguers
Reviewed-by: Stefan Neufeind
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/install/Classes/FolderStructure/DefaultPermissionsCheck.php

index f45215f..00894bc 100644 (file)
@@ -83,8 +83,13 @@ class DefaultPermissionsCheck {
                        $permissionStatus = new \TYPO3\CMS\Install\Status\ErrorStatus();
                        $extraMessage = ' (not read or writable by the user)';
                } elseif ($perms['ow']) {
-                       $permissionStatus = new \TYPO3\CMS\Install\Status\ErrorStatus();
-                       $extraMessage = ' (writable by anyone on the server)';
+                       if (TYPO3_OS === 'WIN') {
+                               $permissionStatus = new \TYPO3\CMS\Install\Status\InfoStatus();
+                               $extraMessage = ' (writable by anyone on the server). This is the default behavior on a Windows system';
+                       } else {
+                               $permissionStatus = new \TYPO3\CMS\Install\Status\ErrorStatus();
+                               $extraMessage = ' (writable by anyone on the server)';
+                       }
                } elseif ($perms['or']) {
                        $permissionStatus = new \TYPO3\CMS\Install\Status\WarningStatus();
                        $extraMessage = ' (readable by anyone on the server)';