Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-1827

Check permission before getting or registering services

    XMLWordPrintableJSON

Details

    Description

      The DS specification states in 112.9.3 that SCR has to call Bundle.hasPermission for the providing bundle when registering or getting services on behalf of the providing bundle:

      SCR does all publishing, finding and binding of services on behalf of the
      component using the Bundle Context of the component's bundle. This
      means that normal stack-based permission checks will check SCR and not
      the component's bundle. Since SCR is registering and getting services on
      behalf of a component's bundle, SCR must call the Bundle.hasPermission
      method to validate that a component's bundle has the necessary permission
      to register or get a service.

      This is not currently implemented.

      Attachments

        Activity

          People

            Unassigned Unassigned
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: