Extend OC_Util::needUpgrade to also catch app upgrades
Throw an exception when we try to load an app that needs to be upgraded
handle service not available exceptions in index, remote and public.php
extract upgrade parts to their own methods
Allow loading app without checking the upgrade
Send feedback from upgrading apps to the upgrade ui
Also set the app version when updating from app store
Set maintaince mode when updating an app from the app store
only set core version at the end
Return whole file if range request cannot be granted due to encryption

Whenenver range headers are set and encryption is enabled, it is not
possible to automatically fseek() to the proper position.

To avoid returning corrupt/invalid data or causing a decryption error,
the range headers are stripped so that the SabreDAV code in httpGet()
returns the whole file.
add unit test for #8325
use S3Client::encodeKey(), fixes #8325
fix undefined variable
Merge pull request #9866 from owncloud/app-upgrade

Don't do app upgrades in the background
Fix STORAGE_* constants usage by moving those constants into \OC\Files\Filesystem.

As constants not defined within a class cannot be automatically found by the
autoloader moving those constants into a class makes them accessible to
code which uses them.

Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com>
Use tabs for indentation.

Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com>
move to public namespace
Remove loadAppScriptFile
Use proper routes for files
Add routing to files_sharing