Skip to content

Conversation

@blizzz
Copy link
Member

@blizzz blizzz commented Sep 4, 2019

addendum to #17001 (see there for details)

  • stores the md5 hash of an avatar from LDAP to compare it later against. To reduce unnecessary updates.

* avoids useless FS operation
* avoids useless DB writes
* avoids useless addressbook updates
* addendum to #17001

Signed-off-by: Arthur Schiwon <[email protected]>
// use the checksum before modifications
$checksum = md5($this->image->data());

if($checksum === $this->config->getUserValue($this->uid, 'user_ldap', 'lastAvatarChecksum', '')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A const for lastAvatarChecksum would be nice 👍

@rullzer rullzer mentioned this pull request Sep 4, 2019
16 tasks
@rullzer rullzer modified the milestones: Nextcloud 17, Nextcloud 18 Sep 5, 2019
@rullzer
Copy link
Member

rullzer commented Sep 5, 2019

Master is no 18 development. If this needs to go into 17 please follow the normal backport procedures after merging.

@blizzz
Copy link
Member Author

blizzz commented Sep 5, 2019

/backport to stable17

@blizzz
Copy link
Member Author

blizzz commented Sep 5, 2019

/backport to stable16

@blizzz
Copy link
Member Author

blizzz commented Sep 20, 2019

still looking for another reviewer :)

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fine by me

Copy link
Member

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code make sense!

@blizzz blizzz merged commit e105d19 into master Oct 2, 2019
@blizzz blizzz deleted the fix/noid/ldap-dont-process-known-avas branch October 2, 2019 14:32
@backportbot-nextcloud
Copy link

backport to stable17 in #17372

@backportbot-nextcloud
Copy link

backport to stable16 in #17373

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants