Explain me to understand constraint ? ((?=.*\d.*)(?=.*[a-z].*)(?=.*[A-Z].*)(?=.*[@#%\*\-+=~\[\]{}<>\?].*).{12,}) | Community
Skip to main content
Karthi45
New Participant
April 2, 2018
Solved

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

  • April 2, 2018
  • 9 replies
  • 8806 views

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.
Best answer by joerghoh

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
New Participant
June 7, 2018

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

joerghoh
Employee
April 4, 2018

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

Julio_Tobar
New Participant
April 3, 2018

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.​

joerghoh
Employee
April 3, 2018

Hi,

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

Julio_Tobar
New Participant
April 2, 2018

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)

joerghoh
joerghohAccepted solution
Employee
April 2, 2018

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

jantzen_b
Employee
April 2, 2018

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

Karthi45
Karthi45Author
New Participant
April 2, 2018

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 ?

jantzen_b
Employee
April 2, 2018

Hi Karthi,

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


Thanks,
Jantzen