pluginsGLPI / formcreator

GLPI Plugin Formcreator (DOWNLOAD : https://github.com/pluginsGLPI/formcreator/releases)
http://www.teclib-edition.com
GNU General Public License v3.0
174 stars 125 forks source link

LDAP Search broken in 2.12.7 #3161

Closed rafaelkuhl closed 1 year ago

rafaelkuhl commented 1 year ago

Describe the bug After upgrade to 2.12.7 LDAP Searches don't work anymore.

To Reproduce Steps to reproduce the behavior:

Go to any form with a LDAP search Field is show - the results could not be loaded

Expected behavior Dropdown with LDAP search result should be displayed

Screenshots

1 2 3 4

GLPI / Plugins (please complete the following information):

Desktop (please complete the following information):

Additional context

In the existing forms you can see the ldap connection, but in the new ones you can't select it, and it doesn't seem to be able to list the connections. With the superadmin role the form shows results.

btry commented 1 year ago

Hi

Do you have an error in glpi/files/_logs/php-errors.log or glpi/files/_logs/sql-errors.log ?

Show only the errors you think related to the error. Not the full files.

rafaelkuhl commented 1 year ago

Hi,

When I access the form and try to view the list:

2023-01-31 15:27:19] glpiphplog.WARNING: *** PHP Warning (2): Trying to access array offset on value of type null in /var/www/html/glpi/plugins/formcreator/inc/ldapdropdown.class.php at line 92 Backtrace : plugins/formcreator/ajax/getldapvalues.php:47 PluginFormcreatorLdapDropdown::getDropdownValue()

[2023-01-31 15:27:19] glpiphplog.WARNING: *** PHP Warning (2): Array to string conversion in /var/www/html/glpi/plugins/formcreator/ajax/getldapvalues.php at line 47

LOG: php-errors.log Best Regards,

On Tue, 31 Jan 2023 at 12:55, btry @.***> wrote:

Hi

Do you have an error in glpi/files/_logs/php-errors.log or glpi/files/_logs/sql-errors.log ?

Show only the errors you think related to the error. Not the full files.

— Reply to this email directly, view it on GitHub https://github.com/pluginsGLPI/formcreator/issues/3161#issuecomment-1410294493, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGNMZMU3MSNMVPVL5HY2ZDTWVEDULANCNFSM6AAAAAAUMMVIKY . You are receiving this because you authored the thread.Message ID: @.***>

btry commented 1 year ago

Hi

Can you try GLPI 10 and Formcrreator 2.13.4 ? Do the problem persist ?

verdanatech-dev commented 1 year ago

I had a similar problem,

The problem is that when saving the configuration it is handling the & of the condition, in the database it is saving &

this is causing problem in user query

image

btry commented 1 year ago

Hi

@verdanatech-dev according to your screenshot, I guess that your version of Formcreator is 2.13.0 or above. If I'm right, could you open a distinct issue ?

This issue is for version 2.12.x, which reached end of life.

By the way, @rafaelkuhl do you have feedback with version 2.13 ? I recommend you to upgrade to GLPI 10, as version 9.5 is very close to its end of support.

btry commented 1 year ago

Hi

This issue is obsolete, then I close.