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
  • #5715
Closed
Open
Issue created Oct 16, 2017 by bmortier@bmortierMaintainer

Snapshots are not typed, and no check is done when restoring

Description

FD cannot know which objectType was a snapshot of, so when restoring the snapshot it just insert the LDIF saved without performing any check or processing.

FusionDirectory Version

1.2

Steps to Reproduce

  1. Snapshot a user
  2. Delete it
  3. Create a user with the same uid ("Login") elsewhere
  4. Restore the snapshot

Expected behavior:

The restore should fail in some way because uid is a unique field.

Actual behavior:

The snapshot is restored with no error and you get a duplicated uid

Additional Information

One possible solution:

  1. Store the objectType along with the snapshot
  2. Open the snapshoted LDIF through the stored objectType
  3. Save the opened object unless there are errors

(This is a bit similar to the process used when copy/pasting entries)

Related to fd-plugins#5631 (closed)

Assignee
Assign to
Time tracking