Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6848

Multiple osgi.http.whiteboard.resource.pattern used with HttpWhiteboard does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.3.0
    • None
    • karaf
    • Linux - Docker

      Java 11 (openjdk)

    Description

      When creating a component with the following SCR metadata 

       @Component(immediate = true,
       service = PersonalProfileResource.class,
       property =
      { "osgi.http.whiteboard.resource.pattern=/profile/*", "osgi.http.whiteboard.resource.pattern=/profile/contact/*", "osgi.http.whiteboard.resource.prefix=/profile" }
      )

       
      Only binds the first pattern to the prefix the second pattern is ignored. Even though the scr:info command shows that the all of the SCR metadata is correctly parsed the HTTP:list command only shows one pattern being applied.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pat-lego Patrique Legault
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: