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 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
Add routing to files_encryption
Add routing to files_trashbin
Add routing to files_versions
Add routing to user_ldap
Remove loadAppScriptFile from the default routes
Add update route to core
fix typo
Add doc for \OCP\Files\FileInfo space constants
Add note about the term "Cheers" at end of mail

* for translators
* fixes #8689
Merge pull request #10423 from owncloud/urlencode_s3_copyobject_copysource

urlencode s3 copyObject() copysource
Merge pull request #10546 from owncloud/add-note-about-cheers

Add note about the term "Cheers" at end of mail