nextcloud/lib
Lukas Reschke 13e817e901 Throw exception on `getPath` if file does not exist
Currently the `getPath` methods returned `NULL` in case when a file with the specified ID does not exist. This however mandates that developers are checking for the `NULL` case and if they do not the door for bugs with all kind of impact is widely opened.

This is especially harmful if used in context with Views where the final result is limited based on the result of `getPath`, if `getPath` returns `NULL` PHP type juggles this to an empty string resulting in all possible kind of bugs.

While one could argue that this is a misusage of the API the fact is that it is very often misused and an exception will trigger an immediate stop of execution as well as log this behaviour and show a pretty error page.

I also adjusted some usages where I believe that we need to catch these errors, in most cases this is though simply an error that should hard-fail.
2015-10-25 17:58:21 +01:00
..
l10n [tx-robot] updated from transifex 2015-10-25 01:55:04 -04:00
private Throw exception on `getPath` if file does not exist 2015-10-25 17:58:21 +01:00
public fix IE8 user agent detection 2015-10-09 11:19:06 +02:00
repair Do not update mime types for folders with extension 2015-10-09 18:16:36 +02:00
autoloader.php deduplicate @xenopathic 2015-10-06 09:52:19 +02:00
base.php Use IRequest's `getScriptName` functionality instead of $_SERVER['SCRIPT_NAME'] 2015-10-21 17:33:49 +02:00