Skip to content
GitLab
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 33
    • Issues 33
    • 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
  • #6226
Closed
Open
Issue created Sep 01, 2022 by bmortier@bmortierMaintainer

[Bug] - SimplePlugin - Foreign Key attribute value is never found within a SetAttribute definition.

Description

An attribute declared within a SetAttribute such as:

          new SetAttribute(
            new MailAttribute(
              _('Alternative addresses'), _('List of alternative mail addresses'),
              'gosaMailAlternateAddress'
            )
          ),

is never found if referenced via a plForeignKey due to simplePlugin->BrosweForeignKey method which wait for a positive boolean return from ForeignKeyCheck.

ForeignKeyCheck is using AttributeAccess with field and values to verify the content and return TRUE if matched. In case of a SetAttribute sub attribute element, the passed value to the AttributeAccess is an array and not a string.

Distribution Name and Version

Debian 11

FusionDirectory Version

1.4-dev

PHP version used

7.4.30

Origin of php packages

From distribution

Steps to Reproduce

A problem was found trying to reference a mail alias with a user DN from accountMail object. Referencing following aliases attributes:

| gosaMailAlternateAddress
| gosaMailForwardingAddress

Would never match the values configured in ForeignKey for the exact same attributes within accountMail.

Expected behavior:

User Reference Tab showing the proper reference links.

Actual behavior:

No References links can be seen.

Reproduces how often:

100%

Additional Information

None.

Assignee
Assign to
Time tracking