Bug 781001 (SOA-3476)

Summary: Misleading error message when logging to secured repository with wrong credentials
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Jiri Pechanec <jpechane>
Component: EDSAssignee: Van Halbert <vhalbert>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2.0.ER4   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-3476
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-12 14:12:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jiri Pechanec 2011-10-12 12:35:56 UTC
project_key: SOA

There is a secured ModeShape repository. If I try to login using invalid password I get the following error message

The JAAS policy named 'modeshape' (nor the policy named 'other') could not be found; check the value of the 'JAAS_LOGIN_CONFIG_NAME' repository option in the configuration for the 'test-secured' repository
org.modeshape.jcr.JcrRepository.login(JcrRepository.java:1327) 
at org.jboss.soa.modeshape.qa.tests.AuthenticationTest.logWithWrongCredentials(AuthenticationTest.java:35) 
26 lines not shown 

Caused by Password Incorrect/Password Required
org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:252) 
at org.jboss.security.auth.spi.UsersRolesLoginModule.login(UsersRolesLoginModule.java:152) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
at java.lang.reflect.Method.invoke(Method.java:597) 
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769) 
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186) 
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683) 
at java.security.AccessController.doPrivileged(Native Method) 
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680) 
at javax.security.auth.login.LoginContext.login(LoginContext.java:579) 
at org.modeshape.graph.JaasSecurityContext.<init>(JaasSecurityContext.java:115) 
at org.modeshape.graph.JaasSecurityContext.<init>(JaasSecurityContext.java:82) 
at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:1324) 
at org.jboss.soa.modeshape.qa.tests.AuthenticationTest.logWithWrongCredentials(AuthenticationTest.java:35) 
26 lines not shown

The wording of the message should be modified as using wrong credentials is not infrequent situation

Comment 1 Van Halbert 2011-10-12 12:53:47 UTC
Link: Added: This issue Cloned to SOA-3477


Comment 2 Douglas Palmer 2011-10-12 13:58:45 UTC
Incorrect EDS version was used for the test.