Project

General

Profile

feature request #8454

Only allow certain patterns as username and groupname

Added by Andreas Müller 3 months ago. Updated 13 days ago.

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

100%

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 Closed 08/16/2019

Associated revisions

Revision 3ff6cdef (diff)
Added by Andreas Müller 3 months ago

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

Revision dd017de5 (diff)
Added by Andreas Müller 3 months ago

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

Revision 8d58f4b9 (diff)
Added by Andreas Müller 3 months ago

ref #8454 fix UserAndGroupServiceImplTest

History

#1 Updated by Andreas Müller 3 months ago

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

#2 Updated by Andreas Müller 3 months ago

  • Description updated (diff)

#3 Updated by Andreas Müller 3 months ago

#4 Updated by Andreas Müller 3 months 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 3 months ago

#6 Updated by Andreas Müller 3 months 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.

#7 Updated by Katja Luther 13 days ago

  • Status changed from Resolved to Closed
  • Assignee changed from Katja Luther to Andreas Müller

tested it in Editor and it seems to work (tested ' ', 'ö', '*')

#8 Updated by Katja Luther 13 days ago

  • % Done changed from 50 to 100

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)