[BUGFIX] Install tool error message if session file not writeable 25/37025/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 19 Feb 2015 16:32:21 +0000 (17:32 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 19 Feb 2015 21:11:17 +0000 (22:11 +0100)
commitba5bb619e64d37d347a2c4357acc3b51955e5fa2
treebc61610d00b85af84a478fee099ce657237aab45
parent38aad9b69f20b710631ac05cfa960ce4f55ce349
[BUGFIX] Install tool error message if session file not writeable

In a rare case it may happen that the install tool created a session
file in typo3temp/InstallToolSessions and later those files can not
be written or updated due to permission problems.
The install tool then fails silently without error message.
Since write out of session data happens in __destruct() a proper
error message can not be created at this point anymore. Solution
is to "test write" the session file after opening it and throw
an exception if that fails.

Resolves: #65014
Releases: master, 6.2
Change-Id: I9478f0cfb58a047842d48350b7005e64f50f52ff
Reviewed-on: http://review.typo3.org/37025
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Frank N├Ągler <typo3@naegler.net>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/install/Classes/Service/SessionService.php