recreate an etag within the scanner if the cache contains an empty etag
Merge branch 'master' into fixing-4866-master
etag changes are now propagated up the file tree
check only permission from link-share to decide if public upload is enabled or disabled
we can leave the loop if the permission of the link share was checked
add initial search in shared files
divide ids into chunks of 1k
return fixed path, skip shared files outside of 'files'
fix getAll(), refactor search by mime & search
add all results, sharing cache also returns entries for shared files in external storages
same for search by mime
Fix the apps enabling/disabling in settings
when storing back the data field 'encrypted' it is necessary to cast the boolean to an integer to make pg happy
Use update() instead of put().
Only update the etag. Do not re-submit any other unchanged data.
Do not convert boolean to integer in tests. put() already does this.
Move bool to int conversion to buildParts(), so it also happens for update().
fix previews in shared folders
implement previews for public upload
Merge remote-tracking branch 'owncloud/master' into fixing-4866-master

* owncloud/master: (98 commits)
  [tx-robot] updated from transifex
  files: when filtering search results, ensure results are children of the fakeroot not just path starting the same
  setting a default on filecache column unencrypted_size
  [tx-robot] updated from transifex
  remove unneccessary lib in namespace
  namespaces use upcasefirst parts when _ is left in namespace and files are named after their classes the autoloader will also find classes in the lib folder of an app its magic!
  initialize variable
  calculate correct permissions while toggle the password protection
  make sure that both $permissions and $oldPermissions have the same type
  Add copyright, remove starting blank line
  update inherit docs comment
  Fix insert/update/delete helper functions for oracle
  Add missing return true statements to legacy preferences functions
  Add missing static
  Convert OC_Preference to object interface
  fix race condition in lazy preview loading
  use {count} instead of 'One' for more versatile translation
  fix double translation of error message
  use n to translate title
  fixing typos and l10n
  ...

Conflicts:
	tests/lib/files/cache/scanner.php