Explain me to understand constraint ? ((?=.*\d.*)(?=.*[a-z].*)(?=.*[A-Z].*)(?=.*[@#%\*\-+=~\[\]{}<>\?].*).{12,}) | Community
Skip to main content
Karthi45
Level 3
Apr 2, 2018 11:19 AM UTC
Solved

Explain me to understand constraint ? ((?=.*\d.*)(?=.*[a-z].*)(?=.*[A-Z].*)(?=.*[@#%\*\-+=~\[\]{}<>\?].*).{12,})

While Creating User am  getting below  Error :

can any one explain me ((?=.*\d.*)(?=.*[a-z].*)(?=.*[A-Z].*)(?=.*[@#%\*\-+=~\[\]{}<>\?].*).{12,}) expression ?

  1. javax.jcr.nodetype.ConstraintViolationException: Password violates password constraint ((?=.*\d.*)(?=.*[a-z].*)(?=.*[A-Z].*)(?=.*[@#%\*\-+=~\[\]{}<>\?].*).{12,}).

Thanks

Karthi

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Apr 2, 2018 7:27 PM UTC

this is a regular expresssion, which describes the format of a password. Looks like you entered characters which are not allowed. I interpret "((?=.*\d.*)(?=.*[a-z].*)(?=.*[A-Z].*)(?=.*[@#%\*\-+=~\[\]{}<>\?].*).{12,})" like this:

The password must consist of at least 12 characters; allowed characters are digits, lower and uppercase latin characters (that means a-z), and the characters "@", "#", "%", "*","-","+","=","~","[","]","{","}","<",">" and "?".

Jörg

9 replies

Karthi45
Karthi45Author
Level 3
Jun 7, 2018 5:33 PM UTC

Thank you all for the response,As suggested solution to this problem is resolved.

Translate
joerghoh
Employee
Apr 4, 2018 6:44 PM UTC

Hm, I read the regular expresssion in a way, that any of these characters is allowed, and that no single character class is required.

Jörg

Translate
Julio_Tobar
Level 3
Apr 3, 2018 9:51 PM UTC

That's a good question.I meant to say that at least one capital letter is required (?=.*[A-Z].*), in case of the string I tested (Julio342**/%$) I provided first capital letter but it could be any other letter.​

Translate
joerghoh
Employee
Apr 3, 2018 8:53 PM UTC

Hi,

a small question: Where do see that an initial capital letter is required?

Translate
Julio_Tobar
Level 3
Apr 2, 2018 9:18 PM UTC

I believe you are looking for a good explanation of such Regular Expression and maybe you also wonder what would be a good password that complies with such. Go ahead an paste that Regular Expression at https://regex101.com/ . That website will give you an explanation plus it'll let you test expressions, I've tried something like Julio342**/%$ which does comply with the Regular Expression (-Notice that an Initial Capital letter is required)

Translate
joerghoh
joerghohAccepted solution
Employee
Apr 2, 2018 7:27 PM UTC

this is a regular expresssion, which describes the format of a password. Looks like you entered characters which are not allowed. I interpret "((?=.*\d.*)(?=.*[a-z].*)(?=.*[A-Z].*)(?=.*[@#%\*\-+=~\[\]{}<>\?].*).{12,})" like this:

The password must consist of at least 12 characters; allowed characters are digits, lower and uppercase latin characters (that means a-z), and the characters "@", "#", "%", "*","-","+","=","~","[","]","{","}","<",">" and "?".

Jörg

Translate
jantzen_b
Employee
Apr 2, 2018 6:19 PM UTC

I've moved this over to the AEM community in hopes that we can get the correct group looking into the issue.

Translate
Karthi45
Karthi45Author
Level 3
Apr 2, 2018 4:48 PM UTC

Hi @Jantzen.Belliston ,

In Aem , tools>security>users while creating the node am getting this Violation error .so i need to understand whta`s this Constraints conveying?

((?=.*\d.*)(?=.*[a-z].*)(?=.*[A-Z].*)(?=.*[@#%\*\-+=~\[\]{}<>\?].*).{12,}).

is thats atleast 2char(combination of Caps and small) + atleast 1 spl char + atleast 1 number and the total is more than 12 ?

Translate
jantzen_b
Employee
Apr 2, 2018 2:35 PM UTC

Hi Karthi,

Where are you trying to create the user? Is it within AEM, Adobe Admin Console, Analytics, ect?


Thanks,
Jantzen

Translate