Uploaded image for project: 'Opencast'
  1. MH-13571

RestPublisher assumes service implementation is same as the provided interface

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: 7.0, 8.0
    • Fix versions: None
    • Components: Backend Software
    • Labels:
      None
    • Severity:
      Incorrectly Functioning With Workaround
    • Steps to reproduce:
      Hide
      Create a rest service where the implementation class implements an api rather than providing the interface itself.

      eg

      class foo.bar.impl implements foo.bar.api { ...}

      <scr:component ... >
        <implementation class="foo.bar.impl">
       <service>
          <provide interface="foo.bar.api" />
        </service>
      </scr:component>

      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
      Show
      Create a rest service where the implementation class implements an api rather than providing the interface itself. eg class foo.bar.impl implements foo.bar.api { ...} <scr:component ... >   <implementation class="foo.bar.impl">  <service>     <provide interface="foo.bar.api" />   </service> </scr:component> 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
    • Tags (folksonomy):

      TestRail: Results

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              james.perrin James Perrin
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                TestRail: Cases