Project

General

Profile

feature request #8454

Only allow certain patterns as username and groupname

Added by Andreas Müller about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Highest
Assignee:
Category:
cdm
Target version:
Start date:
08/09/2019
Due date:
% Done:

50%

Severity:
normal

Description

... to avoid unwanted characters like ;,ö*... Also avoid unvisible characters, whitespaces and linebrakes this way.

For now we may use "[A-Za-z0-9_.-]+" as regex.


Related issues

Related to Edit - feature request #3972: Strictly validate username to not null and not empty Closed 12/16/2014
Related to Edit - feature request #8470: Handle username constraints in user and group editing New 08/16/2019

Associated revisions

Revision 3ff6cdef (diff)
Added by Andreas Müller about 1 month ago

ref #8454 add regex to User.username and Group.name

Revision dd017de5 (diff)
Added by Andreas Müller about 1 month ago

ref #8442 update script for externally managed, ref #8454 update script for username patterns

Revision 8d58f4b9 (diff)
Added by Andreas Müller about 1 month ago

ref #8454 fix UserAndGroupServiceImplTest

History

#1 Updated by Andreas Müller about 1 month ago

  • Status changed from New to In Progress
  • Priority changed from New to Highest

#2 Updated by Andreas Müller about 1 month ago

  • Description updated (diff)

#3 Updated by Andreas Müller about 1 month ago

#4 Updated by Andreas Müller about 1 month ago

  • Status changed from In Progress to Resolved

This should be solved now and seems to work. Still needs testing in TaxEditor and maybe other surroundings.

#5 Updated by Andreas Müller about 1 month ago

#6 Updated by Andreas Müller about 1 month ago

  • Assignee changed from Andreas Müller to Katja Luther
  • % Done changed from 0 to 50

This should be fixed. Who ever wants please review. I tested creating a new user and a group in TaxEditor. For both works validation but needs to be improved (#8470).

As KL has this ticket I pass review of this ticket also KL for now.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)