[Yanel-dev] Yarep Security
Balz Schreier
balz.schreier at gmail.com
Mon Oct 25 09:19:00 CEST 2010
Skipped content of type multipart/alternative-------------- next part -----=
---------
Index: src/impl/java/org/wyona/security/impl/yarep/YarepUserManager.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- src/impl/java/org/wyona/security/impl/yarep/YarepUserManager.java (revi=
sion 53980)
+++ src/impl/java/org/wyona/security/impl/yarep/YarepUserManager.java (work=
ing copy)
@@ -75,12 +75,14 @@
for (int i =3D 0; i < userNodes.length; i++) {
if (userNodes[i].isResource()) {
try {
- Configuration config =3D configBuilder.build(userN=
odes[i].getInputStream());
- // also support identity for backwards compatibili=
ty
- if (config.getName().equals(YarepUser.USER) || con=
fig.getName().equals("identity")) {
- User user =3D constructUser(this.identityManag=
er, userNodes[i]);
- log.debug("User (re)loaded: " + userNodes[i].g=
etName() + ", " + user.getID());
- users.add(user);
+ if (userNodes[i].getName().toLowerCase().endsWith(=
".xml")) {
+ Configuration config =3D configBuilder.build(u=
serNodes[i].getInputStream());
+ // also support identity for backwards compati=
bility
+ if (config.getName().equals(YarepUser.USER) ||=
config.getName().equals("identity")) {
+ User user =3D constructUser(this.identityM=
anager, userNodes[i]);
+ log.debug("User (re)loaded: " + userNodes[=
i].getName() + ", " + user.getID());
+ users.add(user);
+ }
}
} catch (Exception e) {
String errorMsg =3D "Could not create user from re=
pository node: " + userNodes[i].getPath() + ": " + e.getMessage();
More information about the Yanel-development
mailing list