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
  • #6158
Something went wrong while setting issue due date.
Closed
Open
Issue created 3 years ago by dockx thibault@tdockxDeveloper
  • New related issue

  • New related issue

User creation is performed even though an error is thrown within Posix

Open

User creation is performed even though an error is thrown within Posix

Description

A bug was found during a creation of a User with Posix, if UID/GID are forced (via template E.g) and you press save without configuring IDs. Error message will be seen but user will be created nonetheless and you cannot change IDs directly. An exit of the user creation page is required to configure the IDs afterwards.

Distribution Name and Version

Debian GNU/Linux 11 (bullseye)

FusionDirectory Version

Plugin with the defect

Posix / User (fd-core).

PHP version used

7.4.25

Origin of php packages

Distribution

Steps to Reproduce

  1. Create a User
  2. Activate Unix Tab
  3. Force User/Group ID
  4. Leave IDs blank (null)
  5. Click apply after having fulfilled required fields within User tab.
  6. Accept errors messages.
  7. Put the IDs "forgotten"
  8. Error message is seen saying User Login already exist. (No update performed).

Expected behavior:

An update of the user posix information.

Actual behavior:

No update is done, posix tab is closed, user is created without unix attributes.

Reproduces how often:

100% of the time.

    Tasks

    0

    No tasks are currently assigned. Use tasks to break down this issue into smaller parts.

    Linked items
    2

    • Not possible to set host trustmode to another value of disabled in a template
      #6156
      FusionDirectory 1.4
      Feb 22, 2022
      Assigned to dockx thibault
    • Partial entry created when error occurs in a tab
      fd #6063
      FusionDirectory 1.6
      Assigned to dockx thibault

    Activity


    • dockx thibault changed milestone to %FusionDirectory 1.4 3 years ago

      changed milestone to %FusionDirectory 1.4

    • dockx thibault assigned to @tdockx 3 years ago

      assigned to @tdockx

    • Jonathan Swaelens added plugin-posix label 3 years ago

      added plugin-posix label

    • bmortier changed due date to February 28, 2022 3 years ago

      changed due date to February 28, 2022

    • bmortier added PJ1802-0188 label 3 years ago

      added PJ1802-0188 label

    • bmortier marked this issue as related to #6156 (closed) 3 years ago

      marked this issue as related to #6156 (closed)

    • dockx thibault created branch 6158-user-creation-is-performed-even-though-an-error-is-thrown-within-posix to address this issue 3 years ago

      created branch 6158-user-creation-is-performed-even-though-an-error-is-thrown-within-posix to address this issue

    • dockx thibault created branch 6158-user-creation-is-performed-even-though-an-error-is-thrown-within-posix-2 to address this issue 3 years ago

      created branch 6158-user-creation-is-performed-even-though-an-error-is-thrown-within-posix-2 to address this issue

    • dockx thibault
      dockx thibault @tdockx · 3 years ago
      Author Developer

      This issue seems linked to one already open: https://gitlab.fusiondirectory.org/fusiondirectory/fd/-/issues/6063

      I linked both issues. The fix to implement requires a bigger re-worked of the save logic currently used. I propose to change the milestone of this towards FusionDirectory 1.5

    • dockx thibault added 2h of time spent 3 years ago

      added 2h of time spent

    • dockx thibault changed milestone to %FusionDirectory 1.5 3 years ago

      changed milestone to %FusionDirectory 1.5

    • dockx thibault removed due date 3 years ago

      removed due date

    • bmortier marked this issue as related to fd#6063 11 months ago

      marked this issue as related to fd#6063

    • bmortier changed milestone to %FusionDirectory 1.6 11 months ago

      changed milestone to %FusionDirectory 1.6

    Please register or sign in to reply
    Assignee
    dockx thibault's avatar
    dockx thibault
    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