Opened 17 months ago
Closed 10 months ago
#1105 closed defect (wontfix)
Setting up an NFS share with more than 500 users can be confusing
| Reported by: | gcooper | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | GUI | Version: | 8.0.2-RELEASE |
| Keywords: | Cc: |
Description
UserField?._reroll does some interesting things with 500+ users and groups. Here's some of the code I'm referring to (on 8.0.3):
def _reroll(self):
if len(FreeNAS_Users(flags=FLAGS_DBINIT|FLAGS_CACHE_READ_USER|FLAGS_CACHE_WRITE_USER)) > 500:
if self.initial:
self.choices = ((self.initial, self.initial),)
kwargs = {}
if len(self._exclude) > 0:
kwargs['exclude'] = ','.join(self._exclude)
self.widget = FilteredSelectJSON(url=("account_bsduser_json", None, (), kwargs))
else:
ulist = []
if not self.required:
ulist.append(('-----', 'N/A'))
ulist.extend(map(lambda x: (x.pw_name, x.pw_name, ),
filter(lambda y: y is not None and y.pw_name not in self._exclude,
FreeNAS_Users(flags=FLAGS_DBINIT|FLAGS_CACHE_READ_USER|FLAGS_CACHE_WRITE_USER))))
self.widget = widgets.FilteringSelect()
self.choices = ulist
The code when the userlist is <500 is very easy to understand and intuitive (it displays N/A as the first choice unless a user/group is selected). The code when the number of users and groups >= 500 isn't as intuitive (displays a blank line).
Procedure:
- Join the system to an AD forest or LDAP global catalog with more than 500 users.
- Try and create a new NFS share.
Expected result:
- I should see N/A as the first option for the user.
Actual result:
- The first option displayed is .
Workaround:
- Just press enter and it will interpret the value input the same as N/A.
Attachments (1)
Change History (3)
comment:1 Changed 17 months ago by gcooper
- Summary changed from Setting up an NFS share, etc can cause a user to paint themselves into a corner with more than 500 users to Setting up an NFS share with more than 500 users can be confusing
Changed 17 months ago by gcooper
comment:2 Changed 10 months ago by william
- Resolution set to wontfix
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
