nextcloud/tests
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
..
acceptance correct delete-icon to icon-delete, fix #11128 2014-09-22 18:17:33 +02:00
apps [App Code Check] add check for version and mandatory fields 2015-09-24 11:58:12 +02:00
core Do not print exception message 2015-10-13 14:12:10 +02:00
data The constant is now deprecated 2015-10-14 15:29:38 +02:00
lib Throw exception on `getPath` if file does not exist 2015-10-25 17:58:21 +01:00
objectstore Merge pull request #17641 from owncloud/fix_objectstore_rename 2015-10-19 17:18:57 +02:00
ocs Following the spec: 2015-08-05 17:49:44 +02:00
ocs-provider Reference v2 in the provider list 2015-10-13 16:45:16 +02:00
settings Fix unit test 2015-10-21 11:41:25 +02:00
apps.php do not execute integration tests when executing autotest.sh 2015-05-15 16:38:21 +02:00
bootstrap.php Load all enabled apps in test bootstrap 2015-09-07 16:06:53 +01:00
enable_all.php Further cleanup of files_encryption 2015-04-07 13:30:28 +02:00
karma.config.js Update JS unit tests for share dialog (WIP) 2015-09-16 07:23:29 +02:00
phpunit-autotest-external.xml Setup a docker container that holds a webdav instance to test files_external 2014-12-17 21:50:35 +01:00
phpunit-autotest.xml Add endpoint with list of OCS providers 2015-06-27 18:23:49 +02:00
phpunit.xml.dist Add endpoint with list of OCS providers 2015-06-27 18:23:49 +02:00
preseed-config.php Do not add apps2/ directory if it does not exist 2015-03-19 09:07:29 +01:00
startsessionlistener.php kill OC::$session 2014-08-29 10:22:21 +02:00