PHP error on template after I remove the userPassword
PHP error on template after I remove the userPassword
Hello,
I created template with default userPassword. I edit my template and remove the userPassword and save.
When I edit my template again I see the PHP error.
See below the trace and ldap dump.
Oups. Seems like you've catched some kind of bug inside FusionDirectory/PHP. You may want to help us to improve the software stability. If so, please provide some more information below.
*** FusionDirectory bug report *** FusionDirectory Version: 1.0.9
Please describe what you did to produce this error as detailed as possible. Can you reproduce this bug using the demo on http://demo.FusionDirectory.org ?
*** PHP error information ***
=== Error === PHP error: Undefined offset: 1 (/usr/share/fusiondirectory/plugins/personal/generic/class_user.inc, line 162) === /Error ===
=== Trace === Trace[0]:function html_trace File : /usr/share/fusiondirectory/include/php_setup.inc Line : 226 Type : - "Undefined offset: 1"
Trace[1]:function gosaRaiseError File : /usr/share/fusiondirectory/plugins/personal/generic/class_user.inc Line : 162 Type : - "8","Undefined offset: 1","/usr/share/fusiondirectory/plugins/personal/generic/class_user.inc","162",array("{SSHA}UzlNiF0PShhEOhQRti7bH5nH+egG7UCT","ssha","","")
Trace[2]:class UserPasswordAttribute / function readValues File : /usr/share/fusiondirectory/include/simpleplugin/class_attribute.inc Line : 2307 Type : method "{SSHA}UzlNiF0PShhEOhQRti7bH5nH+egG7UCT"
Trace[3]:class CompositeAttribute / function inputValue File : /usr/share/fusiondirectory/plugins/personal/generic/class_user.inc Line : 111 Type : method "{SSHA}UzlNiF0PShhEOhQRti7bH5nH+egG7UCT"
Trace[4]:class UserPasswordAttribute / function loadAttrValue File : /usr/share/fusiondirectory/include/simpleplugin/class_attribute.inc Line : 269 Type : method array(array("inetOrgPerson","3","organizationalPerson","person"),array("{SSHA}UzlNiF0PShhEOhQRti7bH5nH+egG7UCT","1"))
Trace[5]:class Attribute / function loadValue File : /usr/share/fusiondirectory/include/simpleplugin/class_simplePlugin.inc Line : 201 Type : method array(array("inetOrgPerson","3","organizationalPerson","person"),array("{SSHA}UzlNiF0PShhEOhQRti7bH5nH+egG7UCT","1"))
Trace[6]:class simplePlugin / function loadAttributes File : /usr/share/fusiondirectory/include/class_plugin.inc Line : 199 Type : method
Trace[7]:class plugin / function __construct File : /usr/share/fusiondirectory/include/simpleplugin/class_simplePlugin.inc Line : 118 Type : method CLASS: config,"cn=template_cn,ou=templates,ou=people,dc=labo,dc=opensides,dc=be",""
Trace[8]:class simplePlugin / function __construct File : /usr/share/fusiondirectory/plugins/personal/generic/class_user.inc Line : 412 Type : method CLASS: config,"cn=template_cn,ou=templates,ou=people,dc=labo,dc=opensides,dc=be",""
Trace[9]:class user / function __construct File : /usr/share/fusiondirectory/include/simpleplugin/class_simpleTabs.inc Line : 106 Type : method CLASS: config,"cn=template_cn,ou=templates,ou=people,dc=labo,dc=opensides,dc=be",""
Trace[10]:class simpleTabs / function __construct File : /usr/share/fusiondirectory/include/class_objects.inc Line : 154 Type : method "USER","cn=template_cn,ou=templates,ou=people,dc=labo,dc=opensides,dc=be"
Trace[11]:class objects / function open File : /usr/share/fusiondirectory/include/simpleplugin/class_simpleManagement.inc Line : 600 Type : static "cn=template_cn,ou=templates,ou=people,dc=labo,dc=opensides,dc=be","USER"
Trace[12]:class simpleManagement / function editEntry File : /usr/share/fusiondirectory/include/class_management.inc Line : 473 Type : method "edit",array("cn=template_cn,ou=templates,ou=people,dc=labo,dc=opensides,dc=be"),array(array("cn=template_cn,ou=templates,ou=people,dc=labo,dc=opensides,dc=be"),"edit")
Trace[13]:class management / function handleActions File : /usr/share/fusiondirectory/include/class_management.inc Line : 179 Type : method array(array("cn=template_cn,ou=templates,ou=people,dc=labo,dc=opensides,dc=be"),"edit")
Trace[14]:class management / function execute File : /usr/share/fusiondirectory/plugins/admin/users/main.inc Line : 47 Type : method
Trace[15]:function require File : /usr/share/fusiondirectory/html/main.php Line : 286 Type : - "/usr/share/fusiondirectory/plugins/admin/users/main.inc" === /Trace ===
cn=template_cn,ou=templates,ou=people objectClass fdTemplate fdTemplateField objectClass:inetOrgPerson fdTemplateField objectClass:organizationalPerson fdTemplateField objectClass:person fdTemplateField userPassword:{SSHA}UzlNiF0PShhEOhQRti7bH5nH+egG7UCT cn template_cn
(from redmine: issue id 4150, created on 2015-09-23, closed on 2015-09-23)
- Changesets:
- Revision e2fc6551 by Côme Chilliet on 2015-09-23T12:31:36.000Z:
Fixes #4150 Problems when removing userPassword from template
- Revision 6428740c by Côme Chilliet on 2015-09-23T19:47:22.000Z:
Fixes #4150 Problems when removing userPassword from template