Skip to content

Commit 2de855f

Browse files
authored
Merge pull request #50162 from nextcloud/fix/improve-ldap-avatar-handling
Improve ldap avatar handling
2 parents 388118a + a741c6c commit 2de855f

File tree

13 files changed

+44
-193
lines changed

13 files changed

+44
-193
lines changed

apps/user_ldap/composer/composer/autoload_classmap.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
'OCA\\User_LDAP\\Exceptions\\ConstraintViolationException' => $baseDir . '/../lib/Exceptions/ConstraintViolationException.php',
3939
'OCA\\User_LDAP\\Exceptions\\NoMoreResults' => $baseDir . '/../lib/Exceptions/NoMoreResults.php',
4040
'OCA\\User_LDAP\\Exceptions\\NotOnLDAP' => $baseDir . '/../lib/Exceptions/NotOnLDAP.php',
41-
'OCA\\User_LDAP\\FilesystemHelper' => $baseDir . '/../lib/FilesystemHelper.php',
4241
'OCA\\User_LDAP\\GroupPluginManager' => $baseDir . '/../lib/GroupPluginManager.php',
4342
'OCA\\User_LDAP\\Group_LDAP' => $baseDir . '/../lib/Group_LDAP.php',
4443
'OCA\\User_LDAP\\Group_Proxy' => $baseDir . '/../lib/Group_Proxy.php',

apps/user_ldap/composer/composer/autoload_static.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ class ComposerStaticInitUser_LDAP
5353
'OCA\\User_LDAP\\Exceptions\\ConstraintViolationException' => __DIR__ . '/..' . '/../lib/Exceptions/ConstraintViolationException.php',
5454
'OCA\\User_LDAP\\Exceptions\\NoMoreResults' => __DIR__ . '/..' . '/../lib/Exceptions/NoMoreResults.php',
5555
'OCA\\User_LDAP\\Exceptions\\NotOnLDAP' => __DIR__ . '/..' . '/../lib/Exceptions/NotOnLDAP.php',
56-
'OCA\\User_LDAP\\FilesystemHelper' => __DIR__ . '/..' . '/../lib/FilesystemHelper.php',
5756
'OCA\\User_LDAP\\GroupPluginManager' => __DIR__ . '/..' . '/../lib/GroupPluginManager.php',
5857
'OCA\\User_LDAP\\Group_LDAP' => __DIR__ . '/..' . '/../lib/Group_LDAP.php',
5958
'OCA\\User_LDAP\\Group_Proxy' => __DIR__ . '/..' . '/../lib/Group_Proxy.php',

apps/user_ldap/lib/AppInfo/Application.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use OCA\User_LDAP\Controller\RenewPasswordController;
1111
use OCA\User_LDAP\Events\GroupBackendRegistered;
1212
use OCA\User_LDAP\Events\UserBackendRegistered;
13-
use OCA\User_LDAP\FilesystemHelper;
1413
use OCA\User_LDAP\Group_Proxy;
1514
use OCA\User_LDAP\GroupPluginManager;
1615
use OCA\User_LDAP\Handler\ExtStorageConfigHandler;
@@ -85,7 +84,6 @@ public function register(IRegistrationContext $context): void {
8584
function (ContainerInterface $c) {
8685
return new Manager(
8786
$c->get(IConfig::class),
88-
$c->get(FilesystemHelper::class),
8987
$c->get(LoggerInterface::class),
9088
$c->get(IAvatarManager::class),
9189
$c->get(Image::class),

apps/user_ldap/lib/FilesystemHelper.php

Lines changed: 0 additions & 32 deletions
This file was deleted.

apps/user_ldap/lib/User/Manager.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
namespace OCA\User_LDAP\User;
99

1010
use OCA\User_LDAP\Access;
11-
use OCA\User_LDAP\FilesystemHelper;
1211
use OCP\Cache\CappedMemoryCache;
1312
use OCP\IAvatarManager;
1413
use OCP\IConfig;
@@ -35,7 +34,6 @@ class Manager {
3534

3635
public function __construct(
3736
protected IConfig $ocConfig,
38-
protected FilesystemHelper $ocFilesystem,
3937
protected LoggerInterface $logger,
4038
protected IAvatarManager $avatarManager,
4139
protected Image $image,
@@ -66,7 +64,7 @@ public function setLdapAccess(Access $access) {
6664
private function createAndCache($dn, $uid) {
6765
$this->checkAccess();
6866
$user = new User($uid, $dn, $this->access, $this->ocConfig,
69-
$this->ocFilesystem, clone $this->image, $this->logger,
67+
clone $this->image, $this->logger,
7068
$this->avatarManager, $this->userManager,
7169
$this->notificationManager);
7270
$this->usersByDN[$dn] = $user;

0 commit comments

Comments
 (0)