[JBoss JIRA] (GTNPC-11) JAAS DatabaseServerLoginModule doesn't work with Simple Portal
by Julien Viet (JIRA)
[ https://issues.jboss.org/browse/GTNPC-11?page=com.atlassian.jira.plugin.s... ]
Julien Viet resolved GTNPC-11.
------------------------------
Resolution: Out of Date
> JAAS DatabaseServerLoginModule doesn't work with Simple Portal
> --------------------------------------------------------------
>
> Key: GTNPC-11
> URL: https://issues.jboss.org/browse/GTNPC-11
> Project: GateIn Portlet Container
> Issue Type: Bug
> Components: Simple Portal
> Affects Versions: 2.1.0-Beta02
> Environment: Windows XP / 7, JBoss 4.2.3-jdk6, JDK6 (JDK5 same problem)
> Reporter: Andre Pankraz
>
> Hi,
> Simple-Portal doesn't work with JAAS org.jboss.security.auth.spi.DatabaseServerLoginModule.
> With a simple test web project i have checked, that the configuration is correct.
> The problem:
> 12:10:48,538 TRACE [org.jboss.security.auth.spi.DatabaseServerLoginModule] abort
> 12:10:48,538 TRACE [org.jboss.security.plugins.JaasSecurityManager.ifosAppDomain] Login failure
> javax.security.auth.login.LoginException: java.lang.NullPointerException
> at org.jboss.security.auth.spi.DatabaseServerLoginModule.getUsersPassword(DatabaseServerLoginModule.java:141)
> at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:206)
> 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.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:603)
> at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:537)
> at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
> at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:491)
> at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257)
> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416)
> at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
> at java.lang.Thread.run(Thread.java:619)
> at javax.security.auth.login.LoginContext.invoke(LoginContext.java:872)
> 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.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:603)
> at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:537)
> at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
> at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:491)
> at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257)
> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416)
> at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
> at java.lang.Thread.run(Thread.java:619)
> 12:10:48,538 TRACE [org.jboss.security.plugins.JaasSecurityManager.ifosAppDomain] End isValid, false
> The problem seems to be this jar: jboss-dependency-2.0.6.GA.jar
> Class loading issues? The datasource in the module line 141 is bound but null?!
> If i copy this lib to my minimalistic test JAAS web project, the login fails there too.
> But if i remove this lib from simple-portal, i get the following problem:
> java.lang.NullPointerException
> org.gatein.pc.portal.jsp.PagePortletControllerContext.<init>(PagePortletControllerContext.java:84)
> org.gatein.pc.portal.jsp.ControllerFilter.doFilter(ControllerFilter.java:111)
> org.gatein.pc.portal.jsp.ControllerFilter.doFilter(ControllerFilter.java:92)
> org.gatein.pc.portal.ErrorHandlingFilter.doFilter(ErrorHandlingFilter.java:61)
> org.gatein.pc.portal.ErrorHandlingFilter.doFilter(ErrorHandlingFilter.java:53)
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> Best regards,
> André
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] (GTNPC-103) PortletSession.getAttributeMap(APPLICATION_SCOPE) is returning null valued map
by Julien Viet (JIRA)
[ https://issues.jboss.org/browse/GTNPC-103?page=com.atlassian.jira.plugin.... ]
Julien Viet resolved GTNPC-103.
-------------------------------
Assignee: Julien Viet
Fix Version/s: 2.4.1.CR03
Resolution: Done
> PortletSession.getAttributeMap(APPLICATION_SCOPE) is returning null valued map
> ------------------------------------------------------------------------------
>
> Key: GTNPC-103
> URL: https://issues.jboss.org/browse/GTNPC-103
> Project: GateIn Portlet Container
> Issue Type: Bug
> Components: API
> Affects Versions: 2.4.0.Final
> Reporter: Martin Weiler
> Assignee: Julien Viet
> Fix For: 2.4.1.CR03
>
>
> Calling PortletSession.getAttributeMap(PortletSession.APPLICATION_SCOPE) returns a Map with all application scoped keys, but with NULL values for each key.
> The reason for this is that the scope parameter is not used to look up the attribute values:
> {code:java}
> public Map<String, Object> getAttributeMap(int i)
> {
> Enumeration attributes = getAttributeNames(i);
> Map<String, Object> attrs = new HashMap<String, Object>();
> while (attributes.hasMoreElements())
> {
> String name = (String)attributes.nextElement();
> attrs.put(name, getAttribute(name)); // <== missing scope attribute, should be: getAttribute(name, i)
> }
> return Collections.unmodifiableMap(attrs);
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] (GTNPC-103) PortletSession.getAttributeMap(APPLICATION_SCOPE) is returning null valued map
by Julien Viet (JIRA)
[ https://issues.jboss.org/browse/GTNPC-103?page=com.atlassian.jira.plugin.... ]
Julien Viet commented on GTNPC-103:
-----------------------------------
Good catch, I'm working on it.
> PortletSession.getAttributeMap(APPLICATION_SCOPE) is returning null valued map
> ------------------------------------------------------------------------------
>
> Key: GTNPC-103
> URL: https://issues.jboss.org/browse/GTNPC-103
> Project: GateIn Portlet Container
> Issue Type: Bug
> Components: API
> Affects Versions: 2.4.0.Final
> Reporter: Martin Weiler
>
> Calling PortletSession.getAttributeMap(PortletSession.APPLICATION_SCOPE) returns a Map with all application scoped keys, but with NULL values for each key.
> The reason for this is that the scope parameter is not used to look up the attribute values:
> {code:java}
> public Map<String, Object> getAttributeMap(int i)
> {
> Enumeration attributes = getAttributeNames(i);
> Map<String, Object> attrs = new HashMap<String, Object>();
> while (attributes.hasMoreElements())
> {
> String name = (String)attributes.nextElement();
> attrs.put(name, getAttribute(name)); // <== missing scope attribute, should be: getAttribute(name, i)
> }
> return Collections.unmodifiableMap(attrs);
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] (GTNPORTAL-2890) Add ability to see "empty" sites in REST API
by Nick Scavelli (JIRA)
Nick Scavelli created GTNPORTAL-2890:
----------------------------------------
Summary: Add ability to see "empty" sites in REST API
Key: GTNPORTAL-2890
URL: https://issues.jboss.org/browse/GTNPORTAL-2890
Project: GateIn Portal
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: REST API
Reporter: Nick Scavelli
Fix For: 3.6.0.Final
Allow ability to view sites that have no pages or navigation in REST API. This usually happens with spaces (group sites). So adding a parameter to the request URL to show all sites should suffice.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] (GTNPORTAL-2889) Invalid gatein-resorces.xml in the Responsive Footer Portlet
by Viliam Rockai (JIRA)
Viliam Rockai created GTNPORTAL-2889:
----------------------------------------
Summary: Invalid gatein-resorces.xml in the Responsive Footer Portlet
Key: GTNPORTAL-2889
URL: https://issues.jboss.org/browse/GTNPORTAL-2889
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Viliam Rockai
Assignee: Matt Wringe
There's an error in the gatein-resources.xml in the responsive footer portlet. This is the message from the log:
15:30:10,398 ERROR [org.exoplatform.commons.xml.XMLValidator] (MSC service thread 1-7) Error in document jndi:/default-host/responsive-footer-portlet/WEB-INF/gatein-resources.xml at (26,20) :cvc-complex-type.2.3: Element 'gatein-resources' cannot have character [children], because the type's content type is element-only.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years