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-plugins fusiondirectory-plugins
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 65
    • Issues 65
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectory-pluginsfusiondirectory-plugins
  • Issues
  • #6035
Something went wrong while setting issue due date.
Closed
Open
Issue created 5 years ago by agallavardin@agallavardinReporter
  • New related issue

  • New related issue

fatal error when apply template for supann entity

Closed

fatal error when apply template for supann entity

Description

Fatal error: Uncaught TypeError: Argument 2 passed to simplePlugin::adapt_from_template() must be of the type array, null given, called in /usr/share/fusiondirectory/include/simpleplugin/class_simpleTabs.inc on line 465 and defined in /usr/share/fusiondirectory/include/simpleplugin/class_simplePlugin.inc:1923 
Stack trace: 
#0 /usr/share/fusiondirectory/include/simpleplugin/class_simpleTabs.inc(465): simplePlugin->adapt_from_template(Array, NULL) 
#1 /usr/share/fusiondirectory/include/class_template.inc(355): simpleTabs->adapt_from_template(Array, NULL) 
#2 /usr/share/fusiondirectory/include/management/class_templateDialog.inc(115): template->apply() 
#3 /usr/share/fusiondirectory/include/management/class_templateDialog.inc(62): templateDialog->handle_finish() 
#4 /usr/share/fusiondirectory/include/management/class_management.inc(459): templateDialog->save_object() 
#5 /usr/share/fusiondirectory/include/management/class_management.inc(1274): management->execute() 
#6 /usr/share/fusiondirectory/include/class_pluglist.inc(576): man in /usr/share/fusiondirectory/include/simpleplugin/class_simplePlugin.inc on line 1923

occurs when I trie to create a supann structure by using a template .

Distribution Name and Version

Debian buster

FusionDirectory Version

root@annuaire:~# apt-cache policy fusiondirectory-plugin-supann
fusiondirectory-plugin-supann:
  Installé : 1.4-2~jenkinsbuild602
  Candidat : 1.4-2~jenkinsbuild602
 Table de version :
 *** 1.4-2~jenkinsbuild602 500
        500 https://integration.fusiondirectory.org/repos/development/debian/fusiondirectory-dev-14-stretch stretch/main amd64 Packages
        100 /var/lib/dpkg/status
     1.2.3-4+deb10u1 500
        500 http://deb.debian.org/debian buster/main amd64 Packages
root@annuaire:~# 

Plugin with the defect

supann

PHP version used

php:
  Installé : 2:7.3+69
  Candidat : 2:7.3+69
 Table de version :
 *** 2:7.3+69 500
        500 http://deb.debian.org/debian buster/main amd64 Packages
        100 /var/lib/dpkg/status

Origin of php packages

from debian

Steps to Reproduce

  1. create a template supann (template used is following)
  2. create a supann structure
  3. choose TPL_SUPANN

extract of template used

cn=TPL_SUPANN,ou=templates,ou=structures
objectClass: fdTemplate
fdTemplateField: facsimileTelephoneNumber:+%r[1,2,d]|% %r[1,1,d]|% %r[2,2,d]|% %r[2,2,d]|% %r[2,2,d]|% %r[2,2,d]|%
fdTemplateField: objectClass:organizationalUnit
fdTemplateField: objectClass:supannEntite
fdTemplateField: ou:CENTRE_%r[3,3,d]|%
fdTemplateField: postalAddress:%r[1,2,d]|% rue de %r[10,20,l]|%
fdTemplateField: supannCodeEntite:CTR_%r[3,3,d]|%
fdTemplateField: supannTypeEntite:{SUPANN}S238
fdTemplateField: telephoneNumber:+%r[1,2,d]|% %r[1,1,d]|% %r[2,2,d]|% %r[2,2,d]|% %r[2,2,d]|% %r[2,2,d]|%
cn: TPL_SUPANN

Expected behavior:

a new supann structure is create base on template

Actual behavior:

Error !

Reproduces how often:

100%

Edited 5 years ago

    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


    • agallavardin changed milestone to %FusionDirectory 1.4 5 years ago

      changed milestone to %FusionDirectory 1.4

    • bmortier assigned to @bmortier 5 years ago

      assigned to @bmortier

    • agallavardin
      agallavardin @agallavardin · 5 years ago
      Author Reporter

      error didn't occurs if at least one field contains %askme% macros.

      I assumed that create a lot of random object isn't really useful.. maybe this kind of error could be catched.

    • bmortier assigned to @MCMic and unassigned @bmortier 5 years ago

      assigned to @MCMic and unassigned @bmortier

    • bmortier changed due date to March 10, 2020 5 years ago

      changed due date to March 10, 2020

    • bmortier added PJ1903-0263 label 5 years ago

      added PJ1903-0263 label

    • bmortier added plugin-supann label 5 years ago

      added plugin-supann label

    • Côme Chilliet changed the description 5 years ago

      changed the description

    • bmortier removed due date 4 years ago

      removed due date

    • dockx thibault added won't fix label 2 years ago

      added won't fix label

    Please register or sign in to reply
    Assignee
    Côme Chilliet's avatar
    Côme Chilliet
    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