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

Metatype Service confuses the id of the OCD with the Designate.pid/factoryPid.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • webconsole-3.1.8
    • webconsole-4.0.0
    • Web Console
    • None

    Description

      I've been adding a facility to bnd to use metatypes with components. I noticed that the Designate pid or factoryPid was not used as the pid but instead the the OCD id was used. As far as I can read the spec this is wrong, what would be the purpose of the Designate element?

      The following

      <metatype:MetaData xmlns:metatype='http://www.osgi.org/xmlns/metatype/v1.1.0'>
      <OCD name='Basic component config' id='ocd'>
      <AD name='Message' id='message' cardinality='0' required='false' type='String'/>
      </OCD>
      <Designate pid='pid'>
      <Object ocdref='ocd'/>
      </Designate>
      </metatype:MetaData>

      Will be see as a pid of "ocd" and strangely enough there will be no interpretation of the metatype. Making pid and ocd id equal makes it work.

      Attachments

        Issue Links

          Activity

            People

              fmeschbe Felix Meschberger
              pkriens Peter Kriens
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: