nextcloud/apps/files
Joas Schilling 20cf8ec205 Add an update script to reset the value
In case encryption was not enabled, we accidently set encrypted = 1 for
files inside mount points, since 8.1.0. This breaks opening the files in
8.1.1 because we fixed the code that checks if a file is encrypted.
In order to fix the file, we need to reset the flag of the file. However,
the flag might be set because the file is in fact encrypted because it was
uploaded at a time where encryption was enabled.

So we can only do this when:
- Current version of ownCloud before the update is 8.1.0 or 8.2.0.(0-2)
- Encryption is disabled
- files_encryption is not known in the app config

If the first two are not the case, we are save. However, if files_encryption
values exist in the config, we might have a false negative here.
Now if there is no file with unencrypted size greater 0, that means there are
no files that are still encrypted with "files_encryption" encryption. So we
can also safely reset the flag here.

If this is not the case, we go with "better save then sorry" and don't change
the flag but write a message to the ownCloud log file.
2015-07-24 10:37:39 +02:00
..
ajax Remove ajax/mimeicon.php and its route 2015-07-09 13:40:13 +02:00
appinfo Add an update script to reset the value 2015-07-24 10:37:39 +02:00
command Lock scanner to the given user 2015-07-15 14:08:06 +02:00
controller disallow cookie auth for cors requests 2015-05-22 14:06:26 +02:00
css Show hint if there is no delete permission 2015-04-23 21:49:59 +02:00
img add icons to files sidebar, fix shade, fix position of settings icon and text 2015-04-08 19:25:28 +02:00
js The external directories should get the correct icon 2015-07-17 14:30:12 +02:00
l10n [tx-robot] updated from transifex 2015-07-23 01:55:22 -04:00
lib Add owner to the storage stats to enable better notifications 2015-06-05 18:21:41 +02:00
service Update license headers 2015-03-26 11:44:36 +01:00
templates Merge pull request #16893 from owncloud/fixSlideToggle 2015-06-17 16:06:47 +02:00
tests Fix unit tests 2015-07-09 18:42:46 +02:00
admin.php Update license headers 2015-03-26 11:44:36 +01:00
download.php update license headers and authors 2015-06-25 14:13:49 +02:00
index.php update license headers and authors 2015-06-25 14:13:49 +02:00
list.php Update license headers 2015-03-26 11:44:36 +01:00
simplelist.php Update license headers 2015-03-26 11:44:36 +01:00