Error in "New Group" dialog when there are users with login names formed by numbers only

Hi everyone,

I´m using Greenbone Community Containers and I recently got " TypeError: item2.value.toLowerCase is not a function" trying to create a new group.

Trying to solve this issue, I realized that it is related to the use of users with login names made up of only numbers. And the error only happens with gsa image versions 24.0.0 and newer.

My current workaround to this issue is the use of gsa:23.3.0, since we need to use users with numeric log names provided by an LDAP server.

Could you please describe step by step how to safely reproduce your issue? If I get a description to reproduce the issue reliably we can fix it easily. Maybe also just add some screenshots.

1 Like

Hi bricks,

Steps to reproduce the issue:

  1. Fresh new install of Greenbone Community Containers using the provided Docker compose file.
  2. Login using default admin account.
  3. Create a new user with a login name consisting off all numbers, such as “123456”.
  4. Now we have only 2 users: “admin” and “123456”.
  5. Try to create a new group and you get the error “TypeError: item2.value.toLowerCase is not a function”.
2 Likes

Thanks a lot. I created an internal ticket and will going to fix this issue.

3 Likes

This PR will fix the issue

4 Likes