You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2015/12/28 15:20:49 UTC

[jira] [Commented] (SLING-5232) Remove loginAdministrative() usage from org.apache.sling.event

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

Carsten Ziegeler commented on SLING-5232:
-----------------------------------------

The following patch can be applied once SLING-5355 is solved.
This bundle needs one service user which is able to read/write/delete from /var/eventing (default config):


Index: src/main/java/org/apache/sling/event/impl/jobs/config/JobManagerConfiguration.java
===================================================================
--- src/main/java/org/apache/sling/event/impl/jobs/config/JobManagerConfiguration.java	(Revision 1721876)
+++ src/main/java/org/apache/sling/event/impl/jobs/config/JobManagerConfiguration.java	(Arbeitskopie)
@@ -266,7 +266,7 @@
         final ResourceResolverFactory factory = this.resourceResolverFactory;
         if ( factory != null ) {
             try {
-                resolver = this.resourceResolverFactory.getAdministrativeResourceResolver(null);
+                resolver = this.resourceResolverFactory.getServiceResourceResolver(null);
             } catch ( final LoginException le) {
                 logger.error("Unable to create new resource resolver: " + le.getMessage(), le);
                 throw new RuntimeException(le);
Index: pom.xml
===================================================================
--- pom.xml	(Revision 1721876)
+++ pom.xml	(Arbeitskopie)
@@ -246,7 +246,7 @@
         <dependency>
             <groupId>org.apache.sling</groupId>
             <artifactId>org.apache.sling.api</artifactId>
-            <version>2.4.0</version>
+            <version>2.5.0</version>
             <scope>provided</scope>
         </dependency>
         <dependency>


> Remove loginAdministrative() usage from org.apache.sling.event
> --------------------------------------------------------------
>
>                 Key: SLING-5232
>                 URL: https://issues.apache.org/jira/browse/SLING-5232
>             Project: Sling
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Antonio Sanso
>
> counted 1 occurrence



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