Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-6753

Wrong binding in TokenConfigurationImpl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.9, 1.8.0
    • core
    • None

    Description

      OAK-6741 made a Switch to official OSGi component and metatype annotations.

      I spotted at least one lost in translation issue.

      -@References({
       -    @Reference(
       -            name = "credentialsSupport",
       -            referenceInterface = CredentialsSupport.class,
       -            cardinality = ReferenceCardinality.OPTIONAL_MULTIPLE,
       -            policy = ReferencePolicy.DYNAMIC)
       -})
      +    @Reference(name = "credentialsSupport",
       +            cardinality = ReferenceCardinality.OPTIONAL,
       +            policy = ReferencePolicy.DYNAMIC)
       +    @SuppressWarnings("UnusedDeclaration")
      

      the CredentialsSupport reference used to be cardinality = ReferenceCardinality.OPTIONAL_MULTIPLE but is cardinality = ReferenceCardinality.OPTIONAL after the "migration"

      cc stillalex jsedding anchela

      Attachments

        Issue Links

          Activity

            People

              stillalex Alex Deparvu
              asanso Antonio Sanso
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: