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
  • #5730
Closed
Open
Issue created 7 years ago by bmortier@bmortierMaintainer
  • New related issue

  • New related issue

PHP error when I deactivate "opsi client" tab on a workstation

Closed

PHP error when I deactivate "opsi client" tab on a workstation

Description

FusionDirectory display an PHP error when I deactivate "opsi client" tab on a workstation

Distribution Name and Version

Ubuntu 16.04.1 LTS

FusionDirectory Version

1.3-dev

Plugin with the defect

Plugin OPSI

PHP version used

7.0.22

Origin of php packages

Official packages from Ubuntu

Steps to Reproduce

  1. Display the PHP errors in the configuration
  2. Create a workstation with an "opsi client" tab activate
  3. Add your workstation in an ogroup with an "opsi client" activate
  4. Edit your workstation and deactivate the "opsi client" tab
  5. You see the PHP error

Expected behavior:

No PHP error

Actual behavior:

We have an php error

PHP error: htmlentities() expects parameter 1 to be string, array given (/usr/share/fusiondirectory/include/simpleplugin/class_Attribute.inc, line 563)

Reproduces how often: 100%

Additional Information

=== Trace ===
Trace[1]:function htmlentities
File : /usr/share/fusiondirectory/include/simpleplugin/class_Attribute.inc
Line : 563
Type : -
array("config-win-base|setup","hwaudit|setup"),"2","UTF-8"

Trace[2]:class Attribute / function renderAttribute
File : /usr/share/fusiondirectory/include/simpleplugin/attributes/class_SetAttribute.inc
Line : 225
Type : method
array(),"1"

Trace[3]:class SetAttribute / function renderAttribute
File : /usr/share/fusiondirectory/include/simpleplugin/class_simplePlugin.inc
Line : 846
Type : method
array(),"1"

Trace[4]:class simplePlugin / function renderAttributes
File : /usr/share/fusiondirectory/include/simpleplugin/class_simplePlugin.inc
Line : 871
Type : method
"1"

Trace[5]:class simplePlugin / function inheritanceDisplay
File : /usr/share/fusiondirectory/include/simpleplugin/class_simplePlugin.inc
Line : 689
Type : method
-

Trace[6]:class simplePlugin / function execute
File : /usr/share/fusiondirectory/include/simpleplugin/class_simpleTabs.inc
Line : 198
Type : method
-

Trace[7]:class simpleTabs / function execute
File : /usr/share/fusiondirectory/include/simpleplugin/class_simpleManagement.inc
Line : 575
Type : method
-

Trace[8]:class simpleManagement / function execute
File : /usr/share/fusiondirectory/include/simpleplugin/class_simpleManagement.inc
Line : 1338
Type : method
-

Trace[9]:class simpleManagement / function mainInc
File : /usr/share/fusiondirectory/plugins/admin/systems/main.inc
Line : 21
Type : static
"systemManagement"

Trace[10]:function require
File : /usr/share/fusiondirectory/html/main.php
Line : 286
Type : -
"/usr/share/fusiondirectory/plugins/admin/systems/main.inc"
=== /Trace ===
Edited 6 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


    • bmortier added 10m of time spent 7 years ago

      added 10m of time spent

      By Jonathan Swaelens on 2017-11-07T13:13:40 (imported from GitLab)

    • bmortier added plugin-opsi in fusiondirectory-plugins label 7 years ago

      added plugin-opsi in fusiondirectory-plugins label

      By Jonathan Swaelens on 2017-11-07T13:13:59 (imported from GitLab)

    • bmortier created branch 5727-php-error-htmlentities-expects-parameter-1-to-be-string-array-given-usr-share-fusiondirectory-include-simpleplugin-class_attribute-inc-line-563 7 years ago

      created branch 5727-php-error-htmlentities-expects-parameter-1-to-be-string-array-given-usr-share-fusiondirectory-include-simpleplugin-class_attribute-inc-line-563

      By Côme Chilliet on 2017-11-07T14:12:07 (imported from GitLab)

    • bmortier moved from fd-plugins#5727 (closed) 7 years ago

      moved from fd-plugins#5727 (closed)

      By Côme Chilliet on 2017-11-07T14:33:31 (imported from GitLab)

    • bmortier created branch 5730-php-error-htmlentities-expects-parameter-1-to-be-string-array-given-usr-share-fusiondirectory-include-simpleplugin-class_attribute-inc-line-563 7 years ago

      created branch 5730-php-error-htmlentities-expects-parameter-1-to-be-string-array-given-usr-share-fusiondirectory-include-simpleplugin-class_attribute-inc-line-563

      By Côme Chilliet on 2017-11-07T14:33:50 (imported from GitLab)

    • bmortier mentioned in merge request !72 7 years ago

      mentioned in merge request !72

      By Côme Chilliet on 2017-11-07T14:33:52 (imported from GitLab)

    • bmortier mentioned in commit 054d5f34 7 years ago

      mentioned in commit 054d5f34

      By Côme Chilliet on 2017-11-07T14:36:00 (imported from GitLab)

    • bmortier added 30m of time spent 7 years ago

      added 30m of time spent

      By Côme Chilliet on 2017-11-07T15:00:25 (imported from GitLab)

    • bmortier added To Be Tested label 7 years ago

      added To Be Tested label

      By Côme Chilliet on 2017-11-07T15:00:26 (imported from GitLab)

    • bmortier removed To Be Tested plugin-opsi labels 7 years ago

      removed To Be Tested plugin-opsi labels

      By Côme Chilliet on 2017-11-07T15:00:34 (imported from GitLab)

    • bmortier added To Be Tested fixes labels 7 years ago

      added To Be Tested fixes labels

      By Côme Chilliet on 2017-11-07T15:00:51 (imported from GitLab)

    • bmortier assigned to @MCMic 7 years ago

      assigned to @MCMic

      By Côme Chilliet on 2017-11-07T15:30:37 (imported from GitLab)

    • bmortier changed milestone to %49 7 years ago

      changed milestone to %49

      By Côme Chilliet on 2017-11-07T15:30:45 (imported from GitLab)

    • bmortier changed milestone to %46 7 years ago

      changed milestone to %46

      By Côme Chilliet on 2017-11-08T10:30:37 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 7 years ago
      Author Maintainer

      This does not affect 1.2 as there was no multivaluated inheritable attribute before, so no need to backport

      By Côme Chilliet on 2017-11-08T10:32:36 (imported from GitLab)

    • bmortier removed fixes label 7 years ago

      removed fixes label

      By Côme Chilliet on 2017-11-08T10:32:42 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 7 years ago
      Author Maintainer

      Tested on 1.3-dev VM and work now without PHP error.

      By Jonathan Swaelens on 2017-11-08T11:25:10 (imported from GitLab)

    • bmortier closed 7 years ago

      closed

      By Jonathan Swaelens on 2017-11-08T11:25:11 (imported from GitLab)

    • bmortier added 1h of time spent 7 years ago

      added 1h of time spent

      By Jonathan Swaelens on 2017-11-08T11:25:12 (imported from GitLab)

    • bmortier removed To Be Tested label 7 years ago

      removed To Be Tested label

      By Jonathan Swaelens on 2017-11-08T11:25:12 (imported from GitLab)

    • bmortier added Fixed label 7 years ago

      added Fixed label

      By bmortier on 2017-12-08T15:15:45 (imported from GitLab)

    • bmortier changed title from PHP error: htmlentities() expects parameter 1 to be string, array given (/usr/share/fusiondirectory/include/simpleplugin/class_Attribute.inc, line 563) to FusionDirectory display an PHP error when I deactivate "opsi client" tab on a workstation 7 years ago

      changed title from PHP error: htmlentities() expects parameter 1 to be string, array given (/usr/share/fusiondirectory/include/simpleplugin/class_Attribute.inc, line 563) to FusionDirectory display an PHP error when I deactivate "opsi client" tab on a workstation

      By bmortier on 2017-12-08T15:16:53 (imported from GitLab)

    • bmortier changed the description 7 years ago

      changed the description

      By bmortier on 2017-12-08T15:16:53 (imported from GitLab)

    • bmortier removed Bugs label 7 years ago

      removed Bugs label

      By bmortier on 2017-12-14T19:52:16 (imported from GitLab)

    • bmortier added simple-plugin label 7 years ago

      added simple-plugin label

      By bmortier on 2017-12-14T19:53:37 (imported from GitLab)

    • bmortier changed title from FusionDirectory display an PHP error when I deactivate "opsi client" tab on a workstation to PHP error when I deactivate "opsi client" tab on a workstation 6 years ago

      changed title from FusionDirectory display an PHP error when I deactivate "opsi client" tab on a workstation to PHP error when I deactivate "opsi client" tab on a workstation

      By Côme Chilliet on 2018-07-19T10:50:04 (imported from GitLab)

    • bmortier mentioned in merge request !341 6 years ago

      mentioned in merge request !341

      By Côme Chilliet on 2018-07-19T13:23:35 (imported from GitLab)

    • bmortier added fixes label 6 years ago

      added fixes label

      By Côme Chilliet on 2018-07-19T13:23:41 (imported from GitLab)

    • bmortier added 10m of time spent at 2018-07-19 6 years ago

      added 10m of time spent at 2018-07-19

      By Côme Chilliet on 2018-07-19T13:41:43 (imported from GitLab)

    • bmortier added fixes-merged and removed fixes labels 6 years ago

      added fixes-merged and removed fixes labels

      By Côme Chilliet on 2018-07-19T13:41:43 (imported from GitLab)

    • bmortier changed milestone to %FusionDirectory 1.2.2 6 years ago

      changed milestone to %FusionDirectory 1.2.2

      By Côme Chilliet on 2018-07-19T13:41:43 (imported from GitLab)

    Please register or sign in to reply
    Assignee
    bmortier's avatar
    bmortier
    Assign to
    Labels
    3
    Fixed PJ1703-0080 simple-plugin
    3
    Fixed PJ1703-0080 simple-plugin
      Assign labels
    • Manage project labels

    Milestone
    FusionDirectory 1.2.2
    FusionDirectory 1.2.2 (expired)
    Due date
    None
    None
    1h 40m / --
    Time tracking
    Spent: 1h 40m
    Time tracking report
    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
    1
    1 Participant
    bmortier
    Reference: fusiondirectory/fd#5730

    Menu

    Explore Projects Groups Topics Snippets