RestPublisher assumes service implementation is same as the provided interface

Steps to reproduce

Create a rest service where the implementation class implements an api rather than providing the interface itself.


class implements { ...}

<scr:component ... >
<implementation class="">
<provide interface="" />

The RestPublisher in the kernel assumes the two are the same as it looks up the service reference using the implementation class whereas the service is registered by the service's interface.

Workaround: ref the impl as the interface not the api class

Probably sort by replacing the whole rest publisher mess with Swagger

Your pinned fields
Click on the next to a field label to start pinning.




James Perrin


Incorrectly Functioning With Workaround

Tags (folksonomy)