Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Wire Admin Bug

Please, report a bug here:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Equinox

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.

Stoyan

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 specification implementation.

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,
org.osgi.service.http.port.

If we look into the source code (WireImpl.java:270) [1] 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 it fixed?

Thanks in advance..

[1] http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.equinox/compendium/bundles/org.eclipse.equinox.wireadmin/src/org/eclipse/equinox/internal/wireadmin/WireImpl.java?revision=1.1&root=RT_Project <http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.equinox/compendium/bundles/org.eclipse.equinox.wireadmin/src/org/eclipse/equinox/internal/wireadmin/WireImpl.java?revision=1.1&root=RT_Project>


------------------------------------------------------------------------

_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev



Back to the top