[ 
https://issues.apache.org/jira/browse/KARAF-6848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Baptiste Onofré updated KARAF-6848:
----------------------------------------
    Description: 
When creating a component with the following SCR metadata 
{code:java}
 @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" }
){code}
 
 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.

  was:
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.


> Multiple osgi.http.whiteboard.resource.pattern used with HttpWhiteboard does 
> not work
> -------------------------------------------------------------------------------------
>
>                 Key: KARAF-6848
>                 URL: https://issues.apache.org/jira/browse/KARAF-6848
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.3.0
>         Environment: Linux - Docker
> Java 11 (openjdk)
>            Reporter: Patrique Legault
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>
> When creating a component with the following SCR metadata 
> {code:java}
>  @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" }
> ){code}
>  
>  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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to