Repository navigation
Conversation
|
Please review and test @jnfrmarks @Xenopathic @frankuit @razyr @digital-wonderland or others This is necessary for #11161 and in order to fix #10513 for LDAP users. cc @craigpg |
|
Marking as gold since #10513 is gold. |
|
Looks like Samba4 doesn't suffer from this bug. Unfortunately this means I cannot test the fix, but at least it didn't break when applied. Code looks good though, so it's 👍 from me. |
|
Very good @Xenopathic, thank you for testing & reviewing! |
|
The inspection completed: 4 new issues, 4 updated code elements |
|
🚀 Test PASSed. 🚀 |
|
💣 Test FAILed. 💣 |
|
I tried with both master and this branch, and the test script gives the success message for both. |
|
When testing with OpenLDAP |
|
Too bad we don't have unit tests that run directly against a LDAP server, like we have for different external storage backends. Will raise a ticket for that. |
|
Raised here: #11488 |
No, you need at least 20, but there is no upper bound. You are on PHP > 5.3? |
|
Yes, PHP 5.4.20 |
|
Never mind, I managed to make it work. Before this fix: cancelling failed 👍 |
|
Splendid |
|
@owncloud-bot retest this please |
|
🚀 Test PASSed. 🚀 |
properly cancel a Paginated Results operation in order to avoid protocol...
|
Needs a backport to stable7 and 6. @karlitschek confirm? |
|
Yes. please backport |
properly cancel a Paginated Results operation in order to avoid protocol errors, fixes #10526 abandon ongoing paged search before starting a new one abandond paged search only if PHP supports them init a new paged search on read operations to satisfy OpenLDAP make scrutinizer happy, very minor changes
|
backport to stable7 f0c4347 |
properly cancel a Paginated Results operation in order to avoid protocol errors, fixes #10526 abandon ongoing paged search before starting a new one abandond paged search only if PHP supports them init a new paged search on read operations to satisfy OpenLDAP make scrutinizer happy, very minor changes Conflicts: apps/user_ldap/lib/access.php apps/user_ldap/lib/ildapwrapper.php
|
backport to stable6 94d5f9e |
... errors, fixes #10526
This is mostly an issue with OpenLDAP, AD worked with the old approach. But now we are also following the RFC more nicely.
How to test?
php -f testCancel.php 2> data/owncloud.logOn master with OpenLDAP it will fail with this output:
With AD, or with OpenLDAP and this fix, it will succeed, output like this:
If possible, please also test with 389 Directory Server, OpenDJ, Oracle Internet Directory, Apache DS.