Skip to content
GitLab
    • Explore Projects Groups Topics Snippets
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory fusiondirectory
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 39
    • Issues 39
    • List
    • Boards
    • Service Desk
    • Milestones
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectoryfusiondirectory
  • Issues
  • #4150
Something went wrong while setting issue due date.
Closed
Open
Issue created 9 years ago by bmortier@bmortierMaintainer
  • New related issue

  • New related issue

PHP error on template after I remove the userPassword

Closed

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

    Tasks

    0

    No tasks are currently assigned. Use tasks to break down this issue into smaller parts.

    Linked items
    0

    Link issues together to show that they're related. Learn more.

    Activity


    • bmortier
      bmortier @bmortier · 9 years ago
      Author Maintainer

      Close issue

      (from redmine: written on 2015-09-23)

      By Jonathan Swaelens on 2017-09-02T15:23:27 (imported from GitLab)

    • bmortier closed 7 years ago

      closed

      By Jonathan Swaelens on 2017-09-02T15:23:27 (imported from GitLab)

    • bmortier added Fixed label 6 years ago

      added Fixed label

      By bmortier on 2018-10-08T16:27:08 (imported from GitLab)

    Please register or sign in to reply
    Assignee
    bmortier's avatar
    bmortier
    Assign to
    Labels
    0
    None
    0
    None
      Assign labels
    • Manage project labels

    Milestone
    No milestone
    None
    Due date
    None
    None
    None
    Time tracking
    No estimate or time spent
    Confidentiality
    Not confidential
    Not confidential

    You are going to turn on confidentiality. Only project members with at least the Reporter role, the author, and assignees can view or be notified about this issue.

    Lock issue
    Unlocked
    0
    0 Participants
    Reference:

    Menu

    Explore Projects Groups Topics Snippets