ECF / JaxRSProviders

Remote Services distribution provider based upon JaxRS. Includes imples based upon Jersey and CXF.
Apache License 2.0
13 stars 19 forks source link

Blank default uuid causes issues with multiple bundles providing services #38

Closed modular-mind closed 3 years ago

modular-mind commented 3 years ago

I have two bundles providing remote JAX-RS services with edef_defaults.properties in each. If I specify the endpoint.id like:

endpoint.id:uuid=

Then only the first bundle processed gets its service loaded. If I change the default to:

endpoint.id:uuid=0

Then both bundles' remote services get processed. Perhaps I'm just misunderstanding the default syntax and want to clarify.

Thanks :-)

scottslewis commented 3 years ago

The class: org.eclipse.ecf.osgi.services.remoteserviceadmin.EDEFProperties extends the Properties class (mostly so that it can use the Properties.load method). As I recall, the Properties.load parser gets confused if there is nothing after the value...i.e. this represents a problem (not parsed as expected):

endpoint.id:uuid=

But this:

endpoint.id:uuid=0

works ok. The actual value 0 is ignored and so actually it doesn't matter what's after the equals, but there has to be something that's non-whitespace.

modular-mind commented 3 years ago

Ah, I thought it might be something like that. I made the change to the ECF wiki page and closing now.