Item12004: Infinite loop with non paged requests

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: LdapContrib
Branches: trunk
Reported By: MatthiasEble
Waiting For:
Last Change By: MichaelDaum
-- MatthiasEble - 19 Jul 2012 Hi all, there's an infinite loop in LdapContrib.pm when using non-paged Requests. following patch fixes the problem for me:

# diff -u LdapContrib.orig  LdapContrib.pm
--- LdapContrib.orig 2012-07-19 16:12:46.000000000 +0200
+++ LdapContrib.pm 2012-07-19 16:13:10.000000000 +0200
@@ -830,7 +830,9 @@
         #writeDebug("ok, no more cookie");
         last;
       }
-    }
+    } else {
+    last;
+ }
   } # end reading pages
   #writeDebug("done reading pages");

beside that, disabling page requests using $Foswiki::cfg{Ldap}{PageSize} = 0; didn't work. I had to use -1 to get everything in a bunch.

 
Topic revision: r3 - 19 Nov 2012, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy