filtering and "Unknown element type specified: !"
Description
Fatal Error is thrown within a scenario where the search area is used
Distribution Name and Version
Debian Strech
FusionDirectory Version
1.2.1-1
PHP version used
Stock, untouched PHP7 config
Origin of php packages
FD's own repositories
Steps to Reproduce
Unfortunately, I can only reproduce the following with my specific LDAP content. It doesn't occur on demo.fusiondirectory.org
- Navigate to 'users'
- Use the text area on the right and type a (known) username and click 'apply filter'.
- Now change to 'systems' section.
- Navigate back to 'users'
Expected behavior:
on step 4, I should get the filtered list of users
Actual behavior:
Fatal error: Uncaught Exception: Unknown element type specified: ! in /usr/share/fusiondirectory/include/class_filter.inc:389 Stack trace: #0 /usr/share/fusiondirectory/include/class_listing.inc(484): filter->render() #1 /usr/share/fusiondirectory/include/simpleplugin/class_simpleManagement.inc(523): listing->render() #2 /usr/share/fusiondirectory/plugins/admin/users/class_userManagement.inc(119): simpleManagement->renderList() #3 /usr/share/fusiondirectory/include/simpleplugin/class_simpleManagement.inc(595): userManagement->renderList() #4 /usr/share/fusiondirectory/include/simpleplugin/class_simpleManagement.inc(1337): simpleManagement->execute() #5 /usr/share/fusiondirectory/plugins/admin/users/main.inc(22): simpleManagement::mainInc('userManagement') #6 /usr/share/fusiondirectory/html/main.php(280): require('/usr/share/fusi...') #7 {main} thrown in /usr/share/fusiondirectory/include/class_filter.inc on line 389
At this point, if I point the browser to root's FD at /fusiondirectory, I got the red message:
Error Fatal error
FATAL: Error when connecting the LDAP. Server said 'Could not bind to (while operating on LDAP server )'.
Please fix the above error and reload the page.
If I reload that page, I got the login screen back again where I can login again BUT when I navigate to 'users' section I got the same Fatal Error as before again.
The only way to workaround the problem is to clear the cookie attached to fusiondirectory, and login again.
Reproduces how often: 100% but on the said system
Additional Information
I can provide access to a test instance loaded with this data.