You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by at...@apache.org on 2005/04/02 23:07:32 UTC
cvs commit: jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/impl SecurityAccessImpl.java
ate 2005/04/02 13:07:32
Modified: components/security/src/java/org/apache/jetspeed/security/spi/impl
SecurityAccessImpl.java
Log:
Fix for http://issues.apache.org/jira/browse/JS2-221 as submitted by James Liao
Revision Changes Path
1.6 +4 -0 jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/impl/SecurityAccessImpl.java
Index: SecurityAccessImpl.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/spi/impl/SecurityAccessImpl.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- SecurityAccessImpl.java 7 Mar 2005 14:05:45 -0000 1.5
+++ SecurityAccessImpl.java 2 Apr 2005 21:07:32 -0000 1.6
@@ -70,6 +70,10 @@
// Get user.
Criteria filter = new Criteria();
filter.addEqualTo("fullPath", fullPath);
+ // The isMappingOnly must not be true.
+ // We don't need the mapping only user, mapping user can't be authenticated with this provider.
+ // we just need the true user.
+ filter.addEqualTo("isMappingOnly", Boolean.FALSE);
Query query = QueryFactory.newQuery(InternalUserPrincipalImpl.class, filter);
return getPersistenceBrokerTemplate().getCount(query) == 1;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org