Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-110293

webui populates incorrect number of users during group deletion

    XMLWordPrintable

    Details

      Description

      WebUI presents prompt to delete x numbers of users "with this primary group" during group deletion. 

      It appears count is originating from members of the group being deleted rather than the count of users with this primary group. E.g. `users` length from this.

      root@truenas[~]# midclt call group.query '[["id", "=", 46]]' '{"select": ["id", "users"]}' | jq
      [
        {
          "id": 46,
          "users": [
            35
          ]
        }
      ]

      vs getting count with primary group matching this gid.

      root@truenas[~]# midclt call user.query '[["group.id", "=", 46]]' '{"count": true}'
      0
      

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                ryousaf Rehan Yousaf
                Reporter:
                awalker Andrew Walker
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: