[Yanel-dev] Yarep Security

Michael Wechner michael.wechner at wyona.com
Mon Oct 25 00:22:17 CEST 2010


On 10/19/10 3:36 PM, basZero wrote:
> Hi,
>
> I noticed that running Yanel on Mac OSX can cause some issues, as Mac =

> OSX write its index files to all directories (".DS_Store").
>
> Most often it does not impact Yanel, but this one is quite nasty and I =

> added a TODO comment into the appropriate place where the file ending =

> should be checked.

an actual patch would be nice for this ;-)

Otherwise please create a Bug-Entry within the Yanel project such that =

somebody can follow
up on this at some later stage.

Thanks

Michael
>
> Index: 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
> --- org/wyona/security/impl/yarep/YarepUserManager.java(revision 53980)
> +++ org/wyona/security/impl/yarep/YarepUserManager.java(working copy)
> @@ -75,6 +75,7 @@
>              for (int i =3D 0; i < userNodes.length; i++) {
>                  if (userNodes[i].isResource()) {
>                      try {
> +                        // TODO: Only process files ending with =

> ".xml" ! Otherwise, on MacOSX you also parse the ".DS_Store" file!
>                          Configuration config =3D =

> configBuilder.build(userNodes[i].getInputStream());
>                          // also support identity for backwards =

> compatibility
>                          if (config.getName().equals(YarepUser.USER) =

> || config.getName().equals("identity")) {
>
>
> Cheers
> B

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wyona.org/pipermail/yanel-development/attachments/2010102=
5/7c61662a/attachment.htm


More information about the Yanel-development mailing list