Menu

AEM user password violates password constraint

When we try to create a user in Adobe Experience Manager(AEM), then we receive below password violation error message. This message is not user friendly and because of that we keep struggling to set new password.
Here is the description of this exception; what does it means and what kind of password AEM is expecting from user.

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

Description:

Your password should be minimum 12 characters, and should have at least one block letter, one small letter, one digit and one special character.
  1. One special character !@$%
  2. One digit 0-9
  3. One small and block letter a-z A-Z
  4. Minimum characters 12


You may also face this issue while migrating the users and groups. Please refer this document for resolution. https://helpx.adobe.com/in/experience-manager/kb/OakConstraint0027-error-when-migrating-users-and-groups-in-AEM.html


We also face issue while creating the user using useradmin console of AEM and didn't put the right password which matches the above regex. We submit the form of user creation and didn,t see any error message, and then we thought user has been successfully created in the system. But when we search that newly created user then we didn't find that user in system. This is all because the password which we have set for user is not valid, hence system rejected that user.

How to enable/disable or change the constraint?

In AEM config manager we have a configuration which helps us to enable or disable this service and also change the password constraint(regex). Below is the screenshot and detail of available options.

Configuration name: Apache Jackrabbit Oak AuthorizableActionProvider

Authorizable Actions:
PasswordValidationAction should checked to apply this constraint to AEM user's password.
Configure PasswordValidationAction/Password Constraint: A regular expression specifying the pattern that must be matched by a user's password.
 

 

How to create a new regex?

You may use any online tool to generate the regex pattern of password which you want to sent in the AEM users password policy and constraint. e.g. https://regex101.com/

Sling servlet cheat sheet

Apache Sling Servlet cheat sheet.


Apache Sling Servlet
Sling Servlet

You may learn more on Apache sling servlet on https://sling.apache.org/documentation/the-sling-engine/servlets.html

How to lose a country?

Ece Temelkuran wrote in her book, "How to lose a country? Seven steps to from democracy to dictatorship."

This book summarize, how a country move away from the hand of people and captured by Satan. what is the beginning point of this, and from where actually this dictatorship begins, and how anti socialist achieve their goal to make a country for not civilians.

The seven point which mentioned in the book are following.

How to lose a country?

  1. Create a movement, poisoning movement.
  2. Disrupt Rationale and terrorise language.
  3. Remove the shame, immorality is Hot in the post truth world.
  4. Dismantle judicial and political mechanism.
  5. Design your own citizen.
  6. Let them laugh on horror.
  7. Build your own country.
How to lose a country? The 7 steps from Democracy to Dictatorship
How to lose a country? The 7 steps from Democracy to Dictatorship



किसी के बाप का हिंदुस्तान थोड़ी है

सभी का खून है शामिल यहां की मिट्टी में 
किसी के बाप का हिंदुस्तान थोड़ी है 

अगर खिलाफ है होने दो जान थोड़ी है
यह सब धुआं है कोई आसमान थोड़ी है 

लगेगी आग तो आएंगे घर कई ज़द में 
यहां पर सिर्फ हमारा मकान थोड़ी है 

मैं जानता हूं कि दुश्मन भी कम नहीं लेकिन 
हमारी तरह हथेली पर जान थोड़ी है

हमारे मुंह से जो निकले वही सदाकत है 
हमारे मुंह में तुम्हारी जबान थोड़ी है 

जो आज साहिबे मसनद हैं कल नहीं होंगे 
किराएदार हैं जाति मकान थोड़ी है 

सभी का खून है शामिल यहां की मिट्टी में 
किसी के बाप का हिंदुस्तान थोड़ी है

Free entry for women to all monuments on occasion of International Women's Day

On the occasion of international women's day ASI have given free entry to all monuments managed by ASI to women(civilians and foreign visitors). Archaeological survey of India is managing all the heritage building and monuments in India, this includes Taj Mahal, Red Fort, Humayun's Tomb, Safdarjung's Tomb, Qutub Minar, Agra Fort and many more.

International women's day celebrated every year on 8th of March.



Project referenced by the classpath does not exist

The project: <project name> which is referenced by the classpath, does not exist. error in Eclipse

Resolution

Right click on the project from project explorer >> select build path >> configure build path >> a popup window will appear. Go to project tab and check the entry of project if that project is not in your eclipse project explorer then remove the project and apply the changes. 

Now build the project again.

Failed to collect dependencies mule-core-ee:jar:3.8.4


Few times I faced this issue, while working with Mule 3.8.4. When I Googled I found people are talking about the Mulesoft Enterprise Edition access to download these dependencies for project, but I don't think we need nexus EE access to download these dependencies specially when we are working with Mule 3. Here the problem is something different and your POM might have some additional dependencies which is not available on public nexus repository and due to that this dependency is not getting resolved.

Failed to collect dependencies at com.mulesoft.muleesb:mule-core-ee:jar:3.8.4: Failed to read artifact descriptor for com.mulesoft.muleesb:mule-core-ee:jar:3.8.4: Could not transfer artifact com.mulesoft.muleesb:mule-core-ee:pom:3.8.4 from/to Central (http://repo1.maven.org/maven2/): Failed to transfer file http://repo1.maven.org/maven2/com/mulesoft/muleesb/mule-core-ee/3.8.4/mule-core-ee-3.8.4.pom with status code 501


Resolution:

To resolve this in Mule 3 Anypoint studio, create a new fresh maven project and build it. If this newly created project successfully build then your other project where you are facing this issue will work. Match the project POM.xml file with new project pom and see the dependencies.

Example POM.xml file.