[JBoss JIRA] Created: (SEAMSECURITY-19) LdapIdentityStore throws NameNotFoundException when a role contains a forward slash
by Jeremiah Orr (JIRA)
LdapIdentityStore throws NameNotFoundException when a role contains a forward slash
-----------------------------------------------------------------------------------
Key: SEAMSECURITY-19
URL: https://jira.jboss.org/browse/SEAMSECURITY-19
Project: Seam Security
Issue Type: Bug
Environment: WebSphere Application Server 6.1, Seam 2.2.0.GA
Reporter: Jeremiah Orr
When using LdapIdentityStore for the role-identity-store, if a user's LDAP entry contains a role with a forward slash (/), the following exception occurs:
javax.security.auth.login.LoginException: Failed to query roles
at org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[snip]
Caused by:
org.jboss.seam.security.management.IdentityManagementException: Failed to query roles
at org.jboss.seam.security.management.LdapIdentityStore.getGrantedRoles(LdapIdentityStore.java:903)
at org.jboss.seam.security.management.LdapIdentityStore.getImpliedRoles(LdapIdentityStore.java:938)
at org.jboss.seam.security.management.IdentityManager.getImpliedRoles(IdentityManager.java:254)
at org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:130)
... 81 more
Caused by:
javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; Remaining name: 'cn=umg/somerole,dc=acme,dc=com'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3078)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2999)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2806)
at com.sun.jndi.ldap.LdapCtx.c_lookup(LdapCtx.java:1023)
at com.sun.jndi.toolkit.ctx.ComponentContext.c_resolveIntermediate_nns(ComponentContext.java:164)
at com.sun.jndi.toolkit.ctx.AtomicContext.c_resolveIntermediate_nns(AtomicContext.java:354)
at com.sun.jndi.toolkit.ctx.ComponentContext.p_resolveIntermediate(ComponentContext.java:393)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirContext.java:217)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:133)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:121)
at javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:151)
at org.jboss.seam.security.management.LdapIdentityStore.getGrantedRoles(LdapIdentityStore.java:890)
... 84 more
This error does not occur when the user's record does not contain roles with a forward slash. I was able to eliminate this exception by changing line 890 in LdapIdentityStore from this:
Attributes result2 = ctx.getAttributes(roleDN, returnAttribute);
To this:
Attributes result2 = ctx.getAttributes(new javax.naming.ldap.LdapName(roleDN), returnAttribute);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 5 months
[JBoss JIRA] Created: (SEAMSECURITY-77) "inconvertible types found"while setting authenticator class
by Marek Smigielski (JIRA)
"inconvertible types found"while setting authenticator class
------------------------------------------------------------
Key: SEAMSECURITY-77
URL: https://issues.jboss.org/browse/SEAMSECURITY-77
Project: Seam Security
Issue Type: Bug
Affects Versions: 3.0.0.Final
Reporter: Marek Smigielski
You cannot programatically set class in identity bean.
This line won't work:
identity.setAuthenticatorClass(OpenIdAuthenticator.class);
setAuthenticatorClass(java.lang.Class<org.jboss.seam.security.Authenticator>) in org.jboss.seam.security.Identity cannot be applied to (java.lang.Class<org.jboss.seam.security.external.openid.OpenIdAuthenticator>)
identity.setAuthenticatorClass((Class<Authenticator>) openIdAuthenticator.getClass());
inconvertible types
[ERROR] found : java.lang.Class<capture#60 of ? extends org.jboss.seam.security.external.openid.OpenIdAuthenticator>
[ERROR] required: java.lang.Class<org.jboss.seam.security.Authenticator>
This either:
I think that declaration of setAuthenticatorClass should be changed from:
void setAuthenticatorClass(Class<Authenticator> authenticatorClass);
to
void setAuthenticatorClass(Class<? extends Authenticator> authenticatorClass);
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 5 months
[JBoss JIRA] Created: (SEAMWICKET-32) wicket-numberguess - dependencies incorrectly scoped
by Jozef Hartinger (JIRA)
wicket-numberguess - dependencies incorrectly scoped
----------------------------------------------------
Key: SEAMWICKET-32
URL: https://issues.jboss.org/browse/SEAMWICKET-32
Project: Seam for Apache Wicket
Issue Type: Bug
Affects Versions: 3.0.0.Final
Reporter: Jozef Hartinger
Priority: Minor
{noformat}
[INFO] ------------------------------------------------------------------------
[INFO] Building Seam for Apache Wicket Numberguess example 3.0.0.Final
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ seam-wicket-example-numberguess ---
[INFO] org.jboss.seam.wicket:seam-wicket-example-numberguess:war:3.0.0.Final
[INFO] +- org.jboss.seam.wicket:seam-wicket:jar:3.0.0.Final:compile
[INFO] | \- org.apache.wicket:wicket:jar:1.4.15:compile
[INFO] +- org.jboss.seam.solder:seam-solder:jar:3.0.0.Final:compile
[INFO] +- org.jboss.seam.wicket:seam-wicket-mock:jar:3.0.0.Final:test
[INFO] +- javax.enterprise:cdi-api:jar:1.0-SP4:provided
[INFO] | +- org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec:jar:1.0.0.Final:provided (version managed from 1.0.0.Beta1)
[INFO] | \- javax.inject:javax.inject:jar:1:provided
[INFO] +- org.jboss.arquillian:arquillian-testng:jar:1.0.0.Alpha4:compile
[INFO] | +- org.jboss.arquillian:arquillian-impl-base:jar:1.0.0.Alpha4:compile
[INFO] | | +- org.jboss.arquillian:arquillian-api:jar:1.0.0.Alpha4:compile
[INFO] | | | \- org.jboss.shrinkwrap:shrinkwrap-api:jar:1.0.0-alpha-11:compile
[INFO] | | +- org.jboss.arquillian:arquillian-spi:jar:1.0.0.Alpha4:compile
[INFO] | | +- org.jboss.shrinkwrap:shrinkwrap-impl-base:jar:1.0.0-alpha-11:compile
[INFO] | | \- org.jboss.shrinkwrap:shrinkwrap-spi:jar:1.0.0-alpha-11:compile
[INFO] | \- ant:ant:jar:1.6.5:compile
[INFO] +- org.seleniumhq.selenium.client-drivers:selenium-java-client-driver:jar:1.0.1:test
[INFO] \- org.jboss.test:richfaces-selenium:jar:1.5.1.Final:test
[INFO] +- org.testng:testng:jar:5.12.1:test
[INFO] | \- junit:junit:jar:4.8.1:test (version managed from 3.8.1)
[INFO] +- commons-lang:commons-lang:jar:2.5:test
[INFO] +- commons-io:commons-io:jar:1.4:test
[INFO] \- commons-codec:commons-codec:jar:1.4:test
{noformat}
org.jboss.arquillian:arquillian-testng:jar should declare the "test" scope, otherwise arquillian, shrinkwrap, etc.. is bundled with the application
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 5 months
[JBoss JIRA] Created: (SEAMWICKET-33) wicket-numberguess - fails to deploy on GlassFish due to missing slf4j dependency
by Jozef Hartinger (JIRA)
wicket-numberguess - fails to deploy on GlassFish due to missing slf4j dependency
---------------------------------------------------------------------------------
Key: SEAMWICKET-33
URL: https://issues.jboss.org/browse/SEAMWICKET-33
Project: Seam for Apache Wicket
Issue Type: Bug
Affects Versions: 3.0.0.Final
Reporter: Jozef Hartinger
Assignee: Jozef Hartinger
Create a glassfish profile declaring slf4j as a dependency to resolve this problem:
[#|2011-03-29T15:13:02.769+0200|SEVERE|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=89;_ThreadName=Thread-1;|WebModule[/wicket-numberguess]PWC1270: Exception starting filter Wicket Filter
java.lang.InstantiationException
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:124)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4625)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5316)
at com.sun.enterprise.web.WebModule.start(WebModule.java:500)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:755)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1980)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1630)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:100)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:465)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:222)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class org.apache.wicket.protocol.http.WicketFilter
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:317)
at com.sun.enterprise.web.WebContainer.createFilterInstance(WebContainer.java:718)
at com.sun.enterprise.web.WebModule.createFilterInstance(WebModule.java:1970)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:255)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:120)
... 40 more
Caused by: org.jboss.weld.resources.spi.ResourceLoadingException: Error loading class org.apache.wicket.protocol.http.WicketFilter
at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:189)
at org.jboss.weld.manager.BeanManagerImpl.createAnnotatedType(BeanManagerImpl.java:1182)
at org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:243)
at org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:204)
at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:478)
at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:428)
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:300)
... 44 more
Caused by: java.lang.NoClassDefFoundError: Lorg/slf4j/Logger;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
at java.lang.Class.getDeclaredFields(Class.java:1743)
at org.jboss.weld.util.reflection.SecureReflections$4.work(SecureReflections.java:116)
at org.jboss.weld.util.reflection.SecureReflections$4.work(SecureReflections.java:112)
at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
at org.jboss.weld.util.reflection.SecureReflectionAccess.runAndWrap(SecureReflectionAccess.java:67)
at org.jboss.weld.util.reflection.SecureReflections.getDeclaredFields(SecureReflections.java:111)
at org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:163)
at org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:124)
at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:54)
at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:42)
at com.google.common.collect.ComputingConcurrentHashMap.compute(ComputingConcurrentHashMap.java:206)
at com.google.common.collect.ComputingConcurrentHashMap.apply(ComputingConcurrentHashMap.java:100)
at com.google.common.collect.MapMaker$ComputingMapAdapter.get(MapMaker.java:515)
at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:183)
... 50 more
Caused by: java.lang.ClassNotFoundException: org.slf4j.Logger
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1518)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1368)
... 66 more
|#]
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 5 months
[JBoss JIRA] Created: (SEAMWICKET-39) Follow Seam 3 example naming scheme
by Jozef Hartinger (JIRA)
Follow Seam 3 example naming scheme
-----------------------------------
Key: SEAMWICKET-39
URL: https://issues.jboss.org/browse/SEAMWICKET-39
Project: Seam for Apache Wicket
Issue Type: Task
Affects Versions: 3.0.0.Final
Reporter: Jozef Hartinger
Priority: Minor
Please, follow these naming constraints for the sample application to be consistent with other Seam 3 demos.
{noformat}
folder name: {example}
artifact id: seam-{module}-example-{example}
context path: {module}-{example}
package: org.jboss.seam.{module}.examples.{example}
{noformat}
* use dashes as delimiters
* if the example name uses dashes ( - ), these are removed in the package name
Please fix the package name.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 5 months