Listing objects with API returns empty list in demo-dev & demo-fixes
Description
Objects in the directory can no longer be listed using the ls method in the API in demo-fixes.fusiondirectory.org and demo-dev.fusiondirectory.org.
Distribution Name and Version
Whatever is in the demo-dev & demo-fixes sites.
FusionDirectory Version
Whatever is in the demo-dev & demo-fixes sites.
PHP version used
Whatever is in the demo-dev & demo-fixes sites.
Origin of php packages
Whatever is in the demo-dev & demo-fixes sites.
Steps to Reproduce
Getting a list of users on demo.fusiondirectory.org this way works:
DEBUG:root:Posting this JSON: {'params': ['lb4ti6mnmnkeno1b9uf9rr2to7', 'USER', {}, None, None], 'method': 'ls', 'id': '123'}
DEBUG:root:Got this JSON from FD: {'result': {'uid=manager,ou=people,dc=fusiondirectory,dc=org': [], 'uid=user,ou=people,dc=fusiondirectory,dc=org': [], 'uid=admin,ou=people,dc=fusiondirectory,dc=org': [], 'uid=fd-admin,ou=people,dc=fusiondirectory,dc=org': []}, 'error': None, 'id': '123'}
In demo-dev & demo-fixes the JSON above returns an empty list.
This call works on all demos:
Posting this JSON: {'id': '123', 'params': ['vngbhj7s1cok7p2mq8jd9dcms4', 'USER', {'dn': 'raw'}, None, None], 'method': 'ls'}
Additional Information
Maybe we need some more checking on inputs to the API?