[ 
https://issues.apache.org/jira/browse/SLING-5162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14963121#comment-14963121
 ] 

Robert Munteanu commented on SLING-5162:
----------------------------------------

I am unable to apply this patch. I tried {{ $ patch -p1 < SLING-5162.patch }} 
but it failed with 
{noformat}patching file 
bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/observation/BasicObservationReporter.java
patching file 
bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/observation/BasicObserverConfiguration.java
patching file 
bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/observation/OsgiObservationBridge.java
patching file 
bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/observation/ResourceChangeListenerWhiteboard.java
patching file 
bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/providers/ResourceProviderHandler.java
Hunk #1 FAILED at 18.
Hunk #2 FAILED at 50.
Hunk #3 FAILED at 77.
Hunk #4 succeeded at 62 with fuzz 2 (offset -32 lines).
3 out of 4 hunks FAILED -- saving rejects to file 
bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/providers/ResourceProviderHandler.java.rej
can't find file to patch at input line 696
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git 
a/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/providers/ResourceProviderStorage.java
 
b/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/providers/ResourceProviderStorage.java
|index 521fb3f..23ed9a0 100644
|--- 
a/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/providers/ResourceProviderStorage.java
|+++ 
b/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/providers/ResourceProviderStorage.java
{noformat}

> Support for the new observation API in the resource resolver
> ------------------------------------------------------------
>
>                 Key: SLING-5162
>                 URL: https://issues.apache.org/jira/browse/SLING-5162
>             Project: Sling
>          Issue Type: Sub-task
>          Components: ResourceResolver
>            Reporter: Tomek Rękawek
>             Fix For: Resource Resolver 1.2.8
>
>         Attachments: SLING-5162.patch
>
>
> Add a whiteboard service that listens to all ResourceChangeListener 
> registrations and informs them about modifications. Also, create an 
> OsgiObservationBridge that will convert the new API changes into OSGi events 
> (it will be discussed whether the bridge is necessary).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to