Merge pull request #9771 from jen13501/ldap-page-pause

Fix pagePause=true bug
This commit is contained in:
Fredrik Adelöw
2022-02-25 12:21:26 +01:00
committed by GitHub
2 changed files with 11 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend-module-ldap': patch
---
Fixed bug in Catalog LDAP module to acknowledge page events to continue receiving entries if pagePause=true
@@ -106,6 +106,12 @@ export class LdapClient {
reject(new Error(errorString(e)));
});
res.on('page', (_result, cb) => {
if (cb) {
cb();
}
});
res.on('end', r => {
if (!r) {
reject(new Error('Null response'));