Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
fusiondirectory
fusiondirectory
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 39
    • Issues 39
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • fusiondirectory
  • fusiondirectoryfusiondirectory
  • Issues
  • #5292

Closed
Open
Opened Dec 19, 2016 by tbp@tbpReporter

Malformed data posted to fdPrivateMail through webservice deletes existing data.

When using the webservice, this request: {"method": "setFields", "id": "Python FD wrapper", "params": ["SID", "USER", "DN", {"personalInfo": {"fdPrivateMail": "{'fusk@gmail.de'}"}, "user": {"telephoneNumber": 1111, "mobile": 1111, "employeeType": "newtype"}}]}

Deletes all mail from the user.

This is a valid request: {"params": ["SID", "USER", "DN", {"personalInfo": {"fdPrivateMail": ["fusk@gmail.de"]}, "user": {"telephoneNumber": 1111, "employeeType": "newtype", "mobile": 1111}}], "method": "setFields", "id": "Python FD wrapper"}

Notice the difference in formating of the list of emails:

Invalid: {"fdPrivateMail": "{'fusk@gmail.de'}"}

Valid: {"fdPrivateMail": ["fusk@gmail.de"]}

Fix: Invalid data should be rejected, the field should not be changed. An error should be returned.

(from redmine: issue id 5292, created on 2016-12-19, closed on 2017-01-11)

  • Changesets:
    • Revision 6d422611 by Côme Chilliet on 2017-01-09T13:21:53.000Z:
Fixes #5292 Refuse non-array values for multivaluated attributes (should only concern webservice)
  • Revision bcd1c34b by Côme Chilliet on 2017-01-09T13:23:08.000Z:
Fixes #5292 Refuse non-array values for multivaluated attributes (should only concern webservice)
  • Custom Fields:
    • Bug in version: 1.0.17
Assignee
Assign to
FusionDirectory 1.0.18
Milestone
FusionDirectory 1.0.18
Assign milestone
Time tracking
None
Due date
None
Reference: fusiondirectory/fd#5292