Bug 781001 (SOA-3476) - Misleading error message when logging to secured repository with wrong credentials
Summary: Misleading error message when logging to secured repository with wrong creden...
Keywords:
Status: CLOSED NOTABUG
Alias: SOA-3476
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: EDS
Version: 5.2.0.ER4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Van Halbert
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-12 12:35 UTC by Jiri Pechanec
Modified: 2011-10-12 14:12 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-12 14:12:57 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker MODE-1278 0 None None None Never
Red Hat Issue Tracker SOA-3476 0 None None None Never

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.


Note You need to log in before you can comment on or make changes to this bug.