You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sharing with LDAP Users not working on subsequent attempts when cache is enabled #21896
I suspect that there is a problem with the caching mechanism in LDAP.
I noticed that it always fails if I enter the same search term the second time:
User: "Heather,..."
search term: "he" -> found
search term: "hea" -> found
remove "a" - search term: "he" -> not found
add "a" again - search term: "hea" -> not found
I debugged this a bit, but can't find anything suspicious. The cache key looks good - maybe APCu returns something wrong? @blizzz Can you have a look? You know better what you cached how.
@MorrisJobke I can confirm on master. Did you verify it on 8.2?
The problem is, when reading the after reading the value from the cache and unserializing it, it is turned into a stdClass instance instead of an associative array.
Activity
MorrisJobke commentedon Jan 27, 2016
Tested on master with APCu 4.0.8 - can't reproduce. I will retry with 8.2.2
MorrisJobke commentedon Jan 27, 2016
Same on v8.2.2 - it works just fine.
I use PHP 5.6.17.
MorrisJobke commentedon Jan 27, 2016
Oh ... I just noticed that it breaks now. I will debug it.
MorrisJobke commentedon Jan 27, 2016
I suspect that there is a problem with the caching mechanism in LDAP.
I noticed that it always fails if I enter the same search term the second time:
User: "Heather,..."
I debugged this a bit, but can't find anything suspicious. The cache key looks good - maybe APCu returns something wrong? @blizzz Can you have a look? You know better what you cached how.
blizzz commentedon Jan 29, 2016
@MorrisJobke I can confirm on master. Did you verify it on 8.2?
The problem is, when reading the after reading the value from the cache and unserializing it, it is turned into a stdClass instance instead of an associative array.
json_decode transforms this into an stdClass:
{"zombie_1102":"Neugebauer, Hassan","zombie_946670":"Neugebauer, Bekir"}Please test the fix: #21998
[user_ldap] properly decode cached objects
MorrisJobke commentedon Jan 29, 2016
Just to update everybody: #21999 contains the fix.
[user_ldap] properly decode cached objects
blizzz commentedon Feb 1, 2016
@nickvergessen you reopened because 8.2?
nickvergessen commentedon Feb 1, 2016
yes
MorrisJobke commentedon Feb 1, 2016
Not really needed. I track the backport PR usually. ;)
[user_ldap] properly decode cached objects
lock commentedon Aug 6, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.