[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] Wire Admin Bug
- From: Stoyan Boshev <s.boshev@xxxxxxxxxxx>
- Date: Tue, 09 Dec 2008 17:32:40 +0200
- Delivered-to: email@example.com
- User-agent: Thunderbird 184.108.40.206 (Windows/20081105)
Please, report a bug here:
Later the bug will be reviewed and fixed. If you have already a working
solution (i.e. you have already fixed it) I will appreciate if you can
add a patch to the bug as well.
Alexander Shutyaev wrote:
Hi, all! I started using Wire Admin service, met some problems
concerning wire scopes.
My Producer has "mail.john" in scope, and my Consumer has "mail.*". But
when I connect them with a Wire the resulting scope is empty.
I checked out the specification and the Equinox Wire Admin
implementation source code. It seems like there is a bug, and a wrong
Section 108.6.5 "Scope name syntax" of the specification says:
Scope names are normal String objects and can, in principle, contain any
Unicode character. Scope names are used with the WirePermission class
that extends java.security.BasicPermission. The BasicPermission class
implements the implies method and performs the name matching. The
wildcard matching of this class is based on the concept of names where the
constituents of the name are separated with a period ('.'): for example,
If we look into the source code (WireImpl.java:270)  we'll see that
name matching for scopes is performed incorrectly (the '*' wildcard is
processed only when it makes up the whole string).
Can you confirm that this is an error and what do I need to do to have
Thanks in advance..
equinox-dev mailing list