| @@ 78-94 (lines=17) @@ | ||
| 75 | $query->execute(); |
|
| 76 | $empty = $query->fetch(); |
|
| 77 | ||
| 78 | if (empty($empty)) { |
|
| 79 | owncloud_reset_encrypted_flag($conn); |
|
| 80 | } else { |
|
| 81 | /** |
|
| 82 | * Sorry in case you are a false positive, but we are not 100% that |
|
| 83 | * you don't have any encrypted files anymore, so we can not reset |
|
| 84 | * the value safely |
|
| 85 | */ |
|
| 86 | \OC::$server->getLogger()->warning( |
|
| 87 | 'If you have a problem with files not being accessible and ' |
|
| 88 | . 'you are not using encryption, please have a look at the following' |
|
| 89 | . 'issue: {issue}', |
|
| 90 | [ |
|
| 91 | 'issue' => 'https://github.com/owncloud/core/issues/17846', |
|
| 92 | ] |
|
| 93 | ); |
|
| 94 | } |
|
| 95 | } |
|
| 96 | } |
|
| 97 | } |
|
| @@ 86-92 (lines=7) @@ | ||
| 83 | public static function initMountPointsHook($data) { |
|
| 84 | if ($data['user']) { |
|
| 85 | $user = \OC::$server->getUserManager()->get($data['user']); |
|
| 86 | if (!$user) { |
|
| 87 | \OC::$server->getLogger()->warning( |
|
| 88 | 'Cannot init external mount points for non-existant user "' . $data['user'] . '".', |
|
| 89 | ['app' => 'files_external'] |
|
| 90 | ); |
|
| 91 | return; |
|
| 92 | } |
|
| 93 | $userView = new \OC\Files\View('/' . $user->getUID() . '/files'); |
|
| 94 | $changePropagator = new \OC\Files\Cache\ChangePropagator($userView); |
|
| 95 | $etagPropagator = new \OCA\Files_External\EtagPropagator($user, $changePropagator, \OC::$server->getConfig()); |
|