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
  • #6113
Something went wrong while setting issue due date.
Closed
Open
Issue created 3 years ago by Côme Chilliet@cchillietReporter
  • New related issue

  • New related issue

Attempting to remove array values from a multivaluated attribute through the webservice removes all values

Closed

Attempting to remove array values from a multivaluated attribute through the webservice removes all values

When using https://rest-api.fusiondirectory.info/#operation/deleteAttributeValues on a complex multivaluated attribute which uses arrays as values, such as dnsRecords, all values are removed.

This is because the code calls array_remove_entries which uses array_diff which only knows how to deal with stringable values. When called on arrays it trigger array to string conversion warnings.

So either we fix array_remove_entries to be able to work on arrays values, or we change the webservice code. In both cases we should make sure that array_remove_entries crashes out instead of returning an empty array to avoid data loss.

    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


    • Côme Chilliet changed milestone to %FusionDirectory 1.4 3 years ago

      changed milestone to %FusionDirectory 1.4

    • Côme Chilliet added plugin-webservice label 3 years ago

      added plugin-webservice label

    • Côme Chilliet added PJ2103-0403 label 3 years ago

      added PJ2103-0403 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