The check if certificates exists currently involves file_exists which can throw an WSOD making it impossible to change the values in the ui. It might be a good idea to catch exception like this and deal with them gracefully without causing WSOD.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | samlauth-wsod_obenbasedir_restriction-3300383-2.patch | 2.84 KB | rudi teschner |
| #2 | samlauth-wsod_obenbasedir_restriction-3300383.patch | 2.84 KB | rudi teschner |
Comments
Comment #2
rudi teschner commentedSuggestion would be to suppress potential errors/exceptions caused by file_exists and improve the notice - way better then wsod.
Comment #3
rudi teschner commentedSmall autoreplace mistake
Comment #5
japerryLooking at the file_exists docs I think this is an acceptable solution. Fixed!
Comment #7
roderikI'm not going to revert this (because 'me finding additions of @ without clear reasoning' is not enough reason for that / the addition does nothing bad)... but still this has me wondering...
set_error_handler('_drupal_error_handler'). This does not generally cause a WSOD. (I tested; it just logs to watchdog and adds an ugly-long error message to the screen output.)In other words: this is fixing a symptom of a deeper problem on your system. The symptoms just don't occur that often (because Drupal code is quite good about not emitting E_WARNNGs / maybe the samlauth admin screen is the only place your system can get away with having a non-reachable file without being fatally impaired) - so you only see it on the samlauth admin screen. But still it feels like you shouldn't be trying to fix the symptom to suppress the deeper problem (as was done here).