[jira] [Commented] (SLING-4154) Discuss distribution components creation and configuration

2014-11-13 Thread Marius Petria (JIRA)

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

Marius Petria commented on SLING-4154:
--

[~cziegeler], [~tripod], it will be really helpful if you could comment on the 
above proposal.

> Discuss distribution components creation and configuration 
> ---
>
> Key: SLING-4154
> URL: https://issues.apache.org/jira/browse/SLING-4154
> Project: Sling
>  Issue Type: Task
>  Components: Distribution
>Reporter: Marius Petria
> Fix For: Content Distribution 0.2.0
>
>
> Distribution has one main component (agent) and several secondary components 
> (triggers, exporters and importers).
> These can be created as java objects using a DistributionComponentFactory. 
> The core framework provides a DefaultDistributionComponentFactory that will 
> create the components implemented in the core but a client can define its own 
> components and factory and the default component factory will use those to 
> create a component it does not know of.
> The core framework also provides two ways of registering such a java object 
> as an OSGI service:
> 1. using osgi configs, the osgi properties are parsed and passed to the 
> factory, a component is created and registered 
> (GenericDistributionComponentFactory)
> 2. resource configs, the properties of a resource are parsed and passed to 
> the factory, a component is created and registered 
> (ResourceBasedDistributionComponentFactory)
> Components registered as OSGI services are available as resources via 
> OsgiServicePropertiesResourceProvider.



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


Build failed in Jenkins: sling-trunk-1.6 » Apache Sling Sample Integration Tests #2771

2014-11-13 Thread Apache Jenkins Server
See 


--
[INFO] 
[INFO] 
[INFO] Building Apache Sling Sample Integration Tests 1.0.7-SNAPSHOT
[INFO] 
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/sling/org.apache.sling.junit.scriptable/1.0.8/org.apache.sling.junit.scriptable-1.0.8.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/sling/org.apache.sling.junit.scriptable/1.0.8/org.apache.sling.junit.scriptable-1.0.8.pom
 (5 KB at 101.4 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/sling/org.apache.sling.servlets.post/2.3.4/org.apache.sling.servlets.post-2.3.4.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/sling/org.apache.sling.servlets.post/2.3.4/org.apache.sling.servlets.post-2.3.4.pom
 (7 KB at 197.3 KB/sec)
Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.launchpad/7-SNAPSHOT/maven-metadata.xml
Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.launchpad/7-SNAPSHOT/org.apache.sling.launchpad-7-SNAPSHOT.pom
[WARNING] The POM for 
org.apache.sling:org.apache.sling.launchpad:jar:standalone:7-SNAPSHOT is 
missing, no dependency information available
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/sling/org.apache.sling.servlets.post/2.3.4/org.apache.sling.servlets.post-2.3.4.jar
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/sling/org.apache.sling.servlets.post/2.3.4/org.apache.sling.servlets.post-2.3.4.jar
 (139 KB at 1148.3 KB/sec)
Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.launchpad/7-SNAPSHOT/org.apache.sling.launchpad-7-SNAPSHOT-standalone.jar
[JENKINS] Archiving disabled


Build failed in Jenkins: sling-trunk-1.6 #2771

2014-11-13 Thread Apache Jenkins Server
See 

Changes:

[olli] style, add paragraph Installation

[sseifert] SLING-4112 Sling Models: Optimize performance when read sling models 
annotations

[sseifert] update to latest models snapshots

[bdelacretaz] SLING-4151 - Sling Launchpad debian/.ubuntu package, contributed 
by Bruce Edge, thanks!

[kwin] SLING-4160, log error in case invalid validator was specified in the 
model
improved javadoc for ValidatorLookupService

[kwin] SLING-4158, make applicablePaths optional
log in case invalid applicablePaths are provided from a model
refactoring of TrieTest

[kwin] SLING-4159, always close resource resolver (even in case of exceptions)

--
[...truncated 75819 lines...]
[INFO] Apache Sling System Bundle Extension: WS APIs . SUCCESS [17.685s]
[INFO] Apache Sling Dynamic Class Loader Support . SUCCESS [27.461s]
[INFO] Apache Sling Commons Java Compiler  SUCCESS [24.078s]
[INFO] Apache Sling JSON Library . SUCCESS [20.867s]
[INFO] Apache Sling SLF4J Implementation (Logback) ... SUCCESS [51.023s]
[INFO] Apache Sling OSGi LogService Implementation ... SUCCESS [15.048s]
[INFO] Apache Sling MIME type mapping support  SUCCESS [17.984s]
[INFO] Apache Sling Commons OSGi support . SUCCESS [18.124s]
[INFO] Apache Sling Scheduler Support  SUCCESS [16.011s]
[INFO] Apache Sling Testing Utilities  SUCCESS [29.285s]
[INFO] Apache Sling Thread Dumper  SUCCESS [15.143s]
[INFO] Apache Sling Thread Support ... SUCCESS [15.802s]
[INFO] Apache Sling Authentication Service ... SUCCESS [20.390s]
[INFO] Apache Sling Form Based Authentication Handler  SUCCESS [22.006s]
[INFO] Apache Sling Engine Implementation  SUCCESS [35.061s]
[INFO] Apache Sling Repository API Bundle  SUCCESS [15.018s]
[INFO] Apache Sling JCR Base Bundle .. SUCCESS [18.092s]
[INFO] Apache Sling JCR ClassLoader .. SUCCESS [14.873s]
[INFO] Apache Sling Initial Content Loader ... SUCCESS [18.015s]
[INFO] Apache Sling Jackrabbit Embedded Repository ... SUCCESS [30.642s]
[INFO] Apache Sling Jackrabbit UserManager Support ... SUCCESS [17.635s]
[INFO] Apache Sling Jackrabbit JSR-283 Access Control Manager Support  SUCCESS 
[15.042s]
[INFO] Apache Sling Wrapper Bundle for the JCR API ... SUCCESS [15.123s]
[INFO] Apache Sling JCR Resource Resolver  SUCCESS [53.696s]
[INFO] Apache Sling JCR Repository Registration .. SUCCESS [17.009s]
[INFO] Apache Sling Simple WebDAV Access to repositories . SUCCESS [18.158s]
[INFO] Apache Sling DavEx Access to repositories . SUCCESS [20.782s]
[INFO] Apache Sling JCR WebConsole Bundle  SUCCESS [15.216s]
[INFO] Apache Sling Oak Repository Server  SUCCESS [17.753s]
[INFO] Apache Sling SlingRepository Integration Tests  SUCCESS [1:08.822s]
[INFO] Apache Sling Servlet Resolver . SUCCESS [21.134s]
[INFO] Apache Sling Default GET Servlets . SUCCESS [20.878s]
[INFO] Apache Sling Default POST Servlets  SUCCESS [23.778s]
[INFO] Apache Sling Compat Servlets .. SUCCESS [14.796s]
[INFO] Apache Sling Scripting Implementation API . SUCCESS [15.005s]
[INFO] Apache Sling Scripting Core implementation  SUCCESS [27.029s]
[INFO] Apache Sling Scripting JavaScript Support . SUCCESS [27.962s]
[INFO] Apache Sling Scripting JSP Support  SUCCESS [29.677s]
[INFO] Apache Sling JSP Tag Library .. SUCCESS [26.191s]
[INFO] Apache Sling JSP Standard Tag Library . SUCCESS [17.792s]
[INFO] Apache Sling Adapter Manager Implementation ... SUCCESS [17.696s]
[INFO] Apache Sling Bundle Resource Provider . SUCCESS [20.268s]
[INFO] Apache Sling Distributed Event Admin .. SUCCESS [23.941s]
[INFO] Apache Sling Discovery API  SUCCESS [17.577s]
[INFO] Apache Sling Resource-Based Discovery Service . SUCCESS [3:08.731s]
[INFO] Apache Sling Discovery Support Bundle . SUCCESS [12.491s]
[INFO] Apache Sling Discovery Standalone Implementation .. SUCCESS [14.565s]
[INFO] Apache Sling Event Support  SUCCESS [13:24.497s]
[INFO] Apache Sling Feature Flags  SUCCESS [17.119s]
[INFO] Apache Sling Filesystem Resource Provider . SUCCESS [20.160s]
[INFO] Apache Sling javax.activation bundle .. SUCCESS [17.295s]
[INFO] Apache Sling Service User Mapper .. SUCCESS [18.195s]
[INFO] Apache Sling Settings . SUCCESS [17.901s]
[INFO] Apache Sling Web Console Branding . SUCCESS [12.040s]
[INFO] Apache Sling Web Console Security P

Build failed in Jenkins: sling-trunk-1.8 #444

2014-11-13 Thread Apache Jenkins Server
See 

Changes:

[olli] style, add paragraph Installation

--
[...truncated 67637 lines...]
[INFO] Apache Sling Dynamic Class Loader Support . SUCCESS [17.992s]
[INFO] Apache Sling Commons Java Compiler  SUCCESS [14.337s]
[INFO] Apache Sling JSON Library . SUCCESS [18.282s]
[INFO] Apache Sling SLF4J Implementation (Logback) ... SUCCESS [47.284s]
[INFO] Apache Sling OSGi LogService Implementation ... SUCCESS [9.608s]
[INFO] Apache Sling MIME type mapping support  SUCCESS [15.023s]
[INFO] Apache Sling Commons OSGi support . SUCCESS [17.506s]
[INFO] Apache Sling Scheduler Support  SUCCESS [11.851s]
[INFO] Apache Sling Testing Utilities  SUCCESS [21.276s]
[INFO] Apache Sling Thread Dumper  SUCCESS [9.263s]
[INFO] Apache Sling Thread Support ... SUCCESS [11.500s]
[INFO] Apache Sling Authentication Service ... SUCCESS [14.931s]
[INFO] Apache Sling Form Based Authentication Handler  SUCCESS [17.225s]
[INFO] Apache Sling Engine Implementation  SUCCESS [33.052s]
[INFO] Apache Sling Repository API Bundle  SUCCESS [9.486s]
[INFO] Apache Sling JCR Base Bundle .. SUCCESS [14.777s]
[INFO] Apache Sling JCR ClassLoader .. SUCCESS [11.517s]
[INFO] Apache Sling Initial Content Loader ... SUCCESS [17.628s]
[INFO] Apache Sling Jackrabbit Embedded Repository ... SUCCESS [24.287s]
[INFO] Apache Sling Jackrabbit UserManager Support ... SUCCESS [12.527s]
[INFO] Apache Sling Jackrabbit JSR-283 Access Control Manager Support  SUCCESS 
[11.311s]
[INFO] Apache Sling Wrapper Bundle for the JCR API ... SUCCESS [9.464s]
[INFO] Apache Sling JCR Resource Resolver  SUCCESS [47.829s]
[INFO] Apache Sling JCR Repository Registration .. SUCCESS [11.749s]
[INFO] Apache Sling Simple WebDAV Access to repositories . SUCCESS [15.005s]
[INFO] Apache Sling DavEx Access to repositories . SUCCESS [14.145s]
[INFO] Apache Sling JCR WebConsole Bundle  SUCCESS [9.344s]
[INFO] Apache Sling Oak Repository Server  SUCCESS [11.956s]
[INFO] Apache Sling SlingRepository Integration Tests  SUCCESS [4:02.710s]
[INFO] Apache Sling Servlet Resolver . SUCCESS [16.092s]
[INFO] Apache Sling Default GET Servlets . SUCCESS [14.064s]
[INFO] Apache Sling Default POST Servlets  SUCCESS [18.259s]
[INFO] Apache Sling Compat Servlets .. SUCCESS [9.368s]
[INFO] Apache Sling Scripting Implementation API . SUCCESS [11.183s]
[INFO] Apache Sling Scripting Core implementation  SUCCESS [24.534s]
[INFO] Apache Sling Scripting JavaScript Support . SUCCESS [20.630s]
[INFO] Apache Sling Scripting JSP Support  SUCCESS [21.010s]
[INFO] Apache Sling JSP Tag Library .. SUCCESS [21.364s]
[INFO] Apache Sling JSP Standard Tag Library . SUCCESS [9.517s]
[INFO] Apache Sling Adapter Manager Implementation ... SUCCESS [12.029s]
[INFO] Apache Sling Bundle Resource Provider . SUCCESS [9.145s]
[INFO] Apache Sling Distributed Event Admin .. SUCCESS [15.174s]
[INFO] Apache Sling Discovery API  SUCCESS [9.465s]
[INFO] Apache Sling Resource-Based Discovery Service . SUCCESS [2:50.543s]
[INFO] Apache Sling Discovery Support Bundle . SUCCESS [8.747s]
[INFO] Apache Sling Discovery Standalone Implementation .. SUCCESS [9.406s]
[INFO] Apache Sling Event Support  SUCCESS [11:51.170s]
[INFO] Apache Sling Feature Flags  SUCCESS [14.189s]
[INFO] Apache Sling Filesystem Resource Provider . SUCCESS [11.976s]
[INFO] Apache Sling javax.activation bundle .. SUCCESS [12.277s]
[INFO] Apache Sling Service User Mapper .. SUCCESS [15.036s]
[INFO] Apache Sling Settings . SUCCESS [14.857s]
[INFO] Apache Sling Web Console Branding . SUCCESS [11.522s]
[INFO] Apache Sling Web Console Security Provider  SUCCESS [12.359s]
[INFO] Apache Sling Explorer . SUCCESS [11.616s]
[INFO] Apache Sling Health Check Core  SUCCESS [21.915s]
[INFO] Apache Sling Health Check Annotations . SUCCESS [8.494s]
[INFO] Apache Sling Health Check Samples . SUCCESS [11.754s]
[INFO] Apache Sling Health Check Support Components .. SUCCESS [11.945s]
[INFO] Apache Sling Health Check Webconsole Plugin ... SUCCESS [9.639s]
[INFO] Apache Sling Health Check JUnit Bridge  SUCCESS [11.856s]
[INFO] Apache Sling Health Check Integration Tests ... SUCCESS [29.559s]
[INFO] Apache Sling Health C

Build failed in Jenkins: sling-trunk-1.8 » Apache Sling Sample Integration Tests #444

2014-11-13 Thread Apache Jenkins Server
See 


--
[INFO] 
[INFO] 
[INFO] Building Apache Sling Sample Integration Tests 1.0.7-SNAPSHOT
[INFO] 
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/sling/org.apache.sling.junit.scriptable/1.0.8/org.apache.sling.junit.scriptable-1.0.8.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/sling/org.apache.sling.junit.scriptable/1.0.8/org.apache.sling.junit.scriptable-1.0.8.pom
 (5 KB at 191.2 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/sling/org.apache.sling.servlets.post/2.3.4/org.apache.sling.servlets.post-2.3.4.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/sling/org.apache.sling.servlets.post/2.3.4/org.apache.sling.servlets.post-2.3.4.pom
 (7 KB at 363.4 KB/sec)
Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.launchpad/7-SNAPSHOT/maven-metadata.xml
Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.launchpad/7-SNAPSHOT/org.apache.sling.launchpad-7-SNAPSHOT.pom
[WARNING] The POM for 
org.apache.sling:org.apache.sling.launchpad:jar:standalone:7-SNAPSHOT is 
missing, no dependency information available
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/sling/org.apache.sling.servlets.post/2.3.4/org.apache.sling.servlets.post-2.3.4.jar
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/sling/org.apache.sling.servlets.post/2.3.4/org.apache.sling.servlets.post-2.3.4.jar
 (139 KB at 2526.2 KB/sec)
Downloading: 
http://repository.apache.org/snapshots/org/apache/sling/org.apache.sling.launchpad/7-SNAPSHOT/org.apache.sling.launchpad-7-SNAPSHOT-standalone.jar
[JENKINS] Archiving disabled


Jenkins build became unstable: sling-trunk-1.8 » Apache Sling SlingRepository Integration Tests #444

2014-11-13 Thread Apache Jenkins Server
See 




Re: Build failed in Jenkins: sling-contrib-1.6 #1350

2014-11-13 Thread Bruce Edge
As this is failing form my contribution, I’m repeating my previous post in 
reply to Bertrand’s committing this patch.

…it looks like it broke an older version. This is not good, my 1st contrib 
already broke something.

Build failed in Jenkins: sling-contrib-1.6 » Apache Sling Launchpad Debian 
Package Builder #1349

I don't have access to this jenkins box, so can someone tell me whether this 
file is missing from that build?


Caused by: java.io.FileNotFoundException: Data source not found : 
/home/jenkins/jenkins-slave/workspace/sling-contrib-1.6/launchpad/builder/target/org.apache.sling.launchpad-8-SNAPSHOT-standalone.jar

Is sling-1.6 a different version that yields a differently named 
org.apache.sling.launchpad-8-SNAPSHOT-standalone.jar?

I'm referring to this jar using:

../../../launchpad/builder/target/${builder.artifact}-${project.version}-standalone.jar

is there something other than ${project.version} that should be used to get the 
version number?

What branch can I checkout to confirm a fix?

-Bruce

From: Apache Jenkins Server 
mailto:jenk...@builds.apache.org>>
Reply-To: "dev@sling.apache.org" 
mailto:dev@sling.apache.org>>
Date: Thursday, November 13, 2014 at 1:26 PM
To: "dev@sling.apache.org" 
mailto:dev@sling.apache.org>>
Subject: Build failed in Jenkins: sling-contrib-1.6 #1350

See 

Changes:

[olli] style, add paragraph Installation

--
[...truncated 23675 lines...]
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ sling-lauchpad 
---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
sling-lauchpad ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
sling-lauchpad ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ sling-lauchpad ---
[JENKINS] Recording test results
[INFO]
[INFO] --- animal-sniffer-maven-plugin:1.11:check (default) @ sling-lauchpad ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java15:1.0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ sling-lauchpad ---
[INFO] Building jar: 

[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-java) @ sling-lauchpad 
---
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run 
(set-bundle-required-execution-environment) @ sling-lauchpad ---
[INFO] Executing tasks

main:
[INFO] Executed tasks
[WARNING] Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ sling-lauchpad ---
[INFO] Building jar: 

[INFO]
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ 
sling-lauchpad ---
[INFO]
[INFO] --- jdeb:1.0.1:jdeb (default) @ sling-lauchpad ---
Downloading: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.pom
 (2 KB at 23.5 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.jar
Downloaded: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.jar
 (241 KB at 1971.4 KB/sec)
[INFO] Creating debian package: 

[INFO] Building data
[ERROR] Failed to create debian package 

org.vafer.jdeb.PackagingException: Failed to create debian package 

at org.vafer.jdeb.maven.DebMaker.makeDeb(DebMaker.java:246)
at org.vafer.jdeb.maven.DebMojo.execute(DebMojo.java:409)
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleM

Jenkins build is still unstable: sling-trunk-1.7 #1155

2014-11-13 Thread Apache Jenkins Server
See 



Jenkins build is still unstable: sling-trunk-1.7 » Apache Sling Launchpad Testing #1155

2014-11-13 Thread Apache Jenkins Server
See 




Re: [VOTE] Release Apache Sling Servlets Resolver 2.3.4

2014-11-13 Thread Daniel Klco
+1

On Thu, Nov 13, 2014 at 10:51 AM, Carsten Ziegeler 
wrote:

> Am 11.11.14 um 08:31 schrieb Carsten Ziegeler:
> > Hi,
> >
> > we fixed two issues
> >
> > https://issues.apache.org/jira/browse/SLING/fixforversion/12326701
> >
> >
> > Staging repository:
> > https://repository.apache.org/content/repositories/orgapachesling-1149/
> >
> > You can use this UNIX script to download the release and verify the
> > signatures:
> > http://svn.apache.org/repos/asf/sling/trunk/check_staged_release.sh
> >
> > Usage:
> > sh check_staged_release.sh 1149 /tmp/sling-staging
> >
> > Please vote to approve this release:
> >
> >   [ ] +1 Approve the release
> >   [ ]  0 Don't care
> >   [ ] -1 Don't release, because ...
> >
> > This majority vote is open for at least 72 hours.
> >
> > Regards
> > Carsten
> >
> +1
>
> Carsten
>
> --
> Carsten Ziegeler
> Adobe Research Switzerland
> cziege...@apache.org
>


Build failed in Jenkins: sling-contrib-1.6 #1350

2014-11-13 Thread Apache Jenkins Server
See 

Changes:

[olli] style, add paragraph Installation

--
[...truncated 23675 lines...]
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ sling-lauchpad 
---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
sling-lauchpad ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
sling-lauchpad ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ sling-lauchpad ---
[JENKINS] Recording test results
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.11:check (default) @ sling-lauchpad ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java15:1.0
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ sling-lauchpad ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-java) @ sling-lauchpad 
---
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run 
(set-bundle-required-execution-environment) @ sling-lauchpad ---
[INFO] Executing tasks

main:
[INFO] Executed tasks
[WARNING] Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo
[INFO] 
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ sling-lauchpad ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ 
sling-lauchpad ---
[INFO] 
[INFO] --- jdeb:1.0.1:jdeb (default) @ sling-lauchpad ---
Downloading: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.pom
 (2 KB at 23.5 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.jar
Downloaded: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.jar
 (241 KB at 1971.4 KB/sec)
[INFO] Creating debian package: 

[INFO] Building data
[ERROR] Failed to create debian package 

org.vafer.jdeb.PackagingException: Failed to create debian package 

at org.vafer.jdeb.maven.DebMaker.makeDeb(DebMaker.java:246)
at org.vafer.jdeb.maven.DebMojo.execute(DebMojo.java:409)
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at 
org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:178)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.ref

Build failed in Jenkins: sling-contrib-1.6 » Apache Sling Launchpad Debian Package Builder #1350

2014-11-13 Thread Apache Jenkins Server
See 


--
[INFO] 
[INFO] 
[INFO] Building Apache Sling Launchpad Debian Package Builder 8-SNAPSHOT
[INFO] 
Downloading: 
http://repo.maven.apache.org/maven2/org/vafer/jdeb/1.0.1/jdeb-1.0.1.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/vafer/jdeb/1.0.1/jdeb-1.0.1.pom (12 KB 
at 110.8 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/vafer/jdeb/1.0.1/jdeb-1.0.1.jar
Downloaded: 
http://repo.maven.apache.org/maven2/org/vafer/jdeb/1.0.1/jdeb-1.0.1.jar (318 KB 
at 1202.4 KB/sec)
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ sling-lauchpad ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-java) @ sling-lauchpad 
---
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run 
(set-bundle-required-execution-environment) @ sling-lauchpad ---
[INFO] Executing tasks

main:
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ sling-lauchpad 
---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
sling-lauchpad ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (check-memory-task) @ sling-lauchpad ---
[INFO] Executing tasks

main:
 [echo]  WARNING (SLING-443/SLING-1782) 
**
 [echo] On most platforms, you'll get OutOfMemoryErrors when building 
unless you set
 [echo] on 32bit platforms: MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=256M", see 
SLING-443
 [echo] on 64bit platforms: MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=512M", see 
SLING-1782
 [echo] 
**
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ sling-lauchpad 
---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
sling-lauchpad ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
sling-lauchpad ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ sling-lauchpad ---
[JENKINS] Recording test results
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.11:check (default) @ sling-lauchpad ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java15:1.0
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ sling-lauchpad ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-java) @ sling-lauchpad 
---
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run 
(set-bundle-required-execution-environment) @ sling-lauchpad ---
[INFO] Executing tasks

main:
[INFO] Executed tasks
[WARNING] Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo
[INFO] 
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ sling-lauchpad ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ 
sling-lauchpad ---
[INFO] 
[INFO] --- jdeb:1.0.1:jdeb (default) @ sling-lauchpad ---
Downloading: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.pom
 (2 KB at 23.5 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.jar
Downloaded: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.jar
 (241 KB at 1971.4 KB/sec)
[INFO] Creating debian package: 

[INFO] Building data
[ERROR] Failed to create debian package 

org.vafer.jdeb.PackagingException: Failed to create debian package 


Re: sling scripting thymeleaf support

2014-11-13 Thread Oliver Lietz
On Thursday 13 November 2014 16:27:26 samuel wrote:
> hi developers,

hello Samuel,

> i was trying to get the fling example with the sling scripting thymleaf
> bundle up and running as presented at adaptTo 2014. My problem is that
> i'm new to sling.
> I already installed the sling query, sling scripting thymeleaf and sling
> fling bundle at sling launchpad 7.
> when i try to request the fling example page as described here:
> https://sling.apache.org/documentation/bundles/scripting/scripting-thymelea
> f.html i always get an 404 error.
> can you please help me to get this example working.

sure. You will need some more bundles for Sling's Launchpad. I've added a new 
paragraph with a list of bundles:

https://sling.apache.org/documentation/bundles/scripting/scripting-
thymeleaf.html#installation

It's easier on Karaf ;)

hth,
O.

> thanks in advance


Re: [jira] [Resolved] (SLING-4151) Create debian/.ubuntu package for sling launchpad standalone jar

2014-11-13 Thread Bruce Edge
Thanks Bertrand.

However it looks like it broke an older version. This is not good, my 1st 
contrib already broke something...

Build failed in Jenkins: sling-contrib-1.6 » Apache Sling Launchpad Debian 
Package Builder #1349

I don't have access to this jenkins box, so can someone tell me whether this 
file is missing from that build?


Caused by: java.io.FileNotFoundException: Data source not found : 
/home/jenkins/jenkins-slave/workspace/sling-contrib-1.6/launchpad/builder/target/org.apache.sling.launchpad-8-SNAPSHOT-standalone.jar

Is sling-1.6 a different version that yields a differently named 
org.apache.sling.launchpad-8-SNAPSHOT-standalone.jar?

I'm referring to this jar using:

../../../launchpad/builder/target/${builder.artifact}-${project.version}-standalone.jar

is there something other than ${project.version} that should be used to get the 
version number?

-Bruce

From: "Bertrand Delacretaz (JIRA)" mailto:j...@apache.org>>
Reply-To: "dev@sling.apache.org" 
mailto:dev@sling.apache.org>>
Date: Thursday, November 13, 2014 at 5:01 AM
To: "dev@sling.apache.org" 
mailto:dev@sling.apache.org>>
Subject: [jira] [Resolved] (SLING-4151) Create debian/.ubuntu package for sling 
launchpad standalone jar


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

Bertrand Delacretaz resolved SLING-4151.

Resolution: Fixed
  Assignee: Bertrand Delacretaz

Thanks very much for your contribution!
I have committed it in http://svn.apache.org/r1639317

Create debian/.ubuntu package for sling launchpad standalone jar


 Key: SLING-4151
 URL: https://issues.apache.org/jira/browse/SLING-4151
 Project: Sling
  Issue Type: New Feature
  Components: Installer
Reporter: Bruce Edge
Assignee: Bertrand Delacretaz
Priority: Minor
  Labels: debian, install, package, ubuntu
 Attachments: sling-dpkg.patch

   Original Estimate: 168h
  Remaining Estimate: 168h

I'm setting up a development env for a team to work on a sling asset manager 
app. I wanted to make the env setup simple so I put together a debian/ubuntu 
package for the org.apache.sling.launchpad-8-SNAPSHOT-standalone.jar.
It uses the jdeb maven plugin so it's cross-platform. Here's the patch on the 
off-chance it's compatible with the upstream policies. If it needs tuning, let 
me know what it's missing.
Comments from dev list:
- Do you mind creating a JIRA
- my preference would be to have this in contrib instead of the launchpad folder



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



[jira] [Updated] (SLING-3854) Add configuration option to restrict service user mapper to system users

2014-11-13 Thread angela (JIRA)

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

angela updated SLING-3854:
--
Attachment: SLING-3854.patch

untested patch proposing a validating interface; also service implementing the 
validator based on a jcr repository.

note: the patch also changes the log level to error if an invalid mapping is 
passed (which should IMO never happen and should be reported as error) and 
removes a superfluous colon ;-).
note 2: i find the term 'userName' a bit confusing when all the related methods 
then call it userID.

> Add configuration option to restrict service user mapper to system users
> 
>
> Key: SLING-3854
> URL: https://issues.apache.org/jira/browse/SLING-3854
> Project: Sling
>  Issue Type: Improvement
>  Components: Service User Mapper
>Reporter: angela
> Attachments: SLING-3854.patch
>
>
> JCR-3802 introduces the concept of system users that distinct from regular 
> user accounts and never have a password set. the API extensions include to 
> following ability to discover if a given User is actually a system user: 
> {{User.isSystemUser}}.
> It would be good if the service user mapping had a configuration option that 
> would restrict the mapping to dedicated service users i.e. to users which are 
> defined to be system users in case sling is running on a JCR repository that 
> implements jackrabbit API.



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


[jira] [Created] (SLING-4161) Support Sling Validation through a new field of the Model annotation

2014-11-13 Thread Konrad Windszus (JIRA)
Konrad Windszus created SLING-4161:
--

 Summary: Support Sling Validation through a new field of the Model 
annotation
 Key: SLING-4161
 URL: https://issues.apache.org/jira/browse/SLING-4161
 Project: Sling
  Issue Type: Improvement
  Components: Extensions
Affects Versions: Sling Models Implementation 1.0.0, Sling Models API 1.0.0
Reporter: Konrad Windszus


The current way of integrating Sling Validation (SLING-2803) with Sling Models 
is to inject the validation service and then call it within a PostConstruct 
method 
(http://www.slideshare.net/raducotescu/apache-sling-generic-validation-framework/16).
This has the drawback that
# the {{ValidationService}} needs to be injected
# a PostConstruct needs to be implemented
# the other injections need to be marked as optional (otherwise the validation 
is never triggered in case of e.g. missing required valuemap values)

Instead it would be good to support this use case with just an additional field 
on the annotation {{Model}} which is named {{validate}}. By default this should 
be {{false}} (to be backwards compatible), but if it is {{true}} the Sling 
Validation should be called before any values are injected into the model. If 
validation fails the {{ModelAdapterFactory}} should never instanciate the model 
and rather return null (or throw a meaningful exception for SLING-3709).




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


[jira] [Resolved] (SLING-4156) Document DefaultInjectionStrategy in http://sling.apache.org/documentation/bundles/models.html

2014-11-13 Thread Konrad Windszus (JIRA)

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

Konrad Windszus resolved SLING-4156.

Resolution: Fixed

> Document DefaultInjectionStrategy in 
> http://sling.apache.org/documentation/bundles/models.html
> --
>
> Key: SLING-4156
> URL: https://issues.apache.org/jira/browse/SLING-4156
> Project: Sling
>  Issue Type: Improvement
>  Components: Extensions
>Affects Versions: Sling Models Implementation 1.0.6
>Reporter: Konrad Windszus
>Assignee: Konrad Windszus
>
> With SLING-3696 a default injection strategy was added. This should be 
> documented in http://sling.apache.org/documentation/bundles/models.html 
> together with the annotation Required (also what happens if both annotations 
> Required and Optional are specified on the same element).



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


[jira] [Commented] (SLING-4156) Document DefaultInjectionStrategy in http://sling.apache.org/documentation/bundles/models.html

2014-11-13 Thread Konrad Windszus (JIRA)

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

Konrad Windszus commented on SLING-4156:


fixed with r1639376.
I already published the update so now it looks fine on 
http://sling.apache.org/documentation/bundles/models.html.

> Document DefaultInjectionStrategy in 
> http://sling.apache.org/documentation/bundles/models.html
> --
>
> Key: SLING-4156
> URL: https://issues.apache.org/jira/browse/SLING-4156
> Project: Sling
>  Issue Type: Improvement
>  Components: Extensions
>Affects Versions: Sling Models Implementation 1.0.6
>Reporter: Konrad Windszus
>Assignee: Konrad Windszus
>
> With SLING-3696 a default injection strategy was added. This should be 
> documented in http://sling.apache.org/documentation/bundles/models.html 
> together with the annotation Required (also what happens if both annotations 
> Required and Optional are specified on the same element).



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


[jira] [Assigned] (SLING-4156) Document DefaultInjectionStrategy in http://sling.apache.org/documentation/bundles/models.html

2014-11-13 Thread Konrad Windszus (JIRA)

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

Konrad Windszus reassigned SLING-4156:
--

Assignee: Konrad Windszus

> Document DefaultInjectionStrategy in 
> http://sling.apache.org/documentation/bundles/models.html
> --
>
> Key: SLING-4156
> URL: https://issues.apache.org/jira/browse/SLING-4156
> Project: Sling
>  Issue Type: Improvement
>  Components: Extensions
>Affects Versions: Sling Models Implementation 1.0.6
>Reporter: Konrad Windszus
>Assignee: Konrad Windszus
>
> With SLING-3696 a default injection strategy was added. This should be 
> documented in http://sling.apache.org/documentation/bundles/models.html 
> together with the annotation Required (also what happens if both annotations 
> Required and Optional are specified on the same element).



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


Re: [VOTE] Release Apache Sling Servlets Resolver 2.3.4

2014-11-13 Thread Carsten Ziegeler
Am 11.11.14 um 08:31 schrieb Carsten Ziegeler:
> Hi,
> 
> we fixed two issues
> 
> https://issues.apache.org/jira/browse/SLING/fixforversion/12326701
> 
> 
> Staging repository:
> https://repository.apache.org/content/repositories/orgapachesling-1149/
> 
> You can use this UNIX script to download the release and verify the
> signatures:
> http://svn.apache.org/repos/asf/sling/trunk/check_staged_release.sh
> 
> Usage:
> sh check_staged_release.sh 1149 /tmp/sling-staging
> 
> Please vote to approve this release:
> 
>   [ ] +1 Approve the release
>   [ ]  0 Don't care
>   [ ] -1 Don't release, because ...
> 
> This majority vote is open for at least 72 hours.
> 
> Regards
> Carsten
> 
+1

Carsten

-- 
Carsten Ziegeler
Adobe Research Switzerland
cziege...@apache.org


sling scripting thymeleaf support

2014-11-13 Thread samuel

hi developers,

i was trying to get the fling example with the sling scripting thymleaf 
bundle up and running as presented at adaptTo 2014. My problem is that 
i'm new to sling.
I already installed the sling query, sling scripting thymeleaf and sling 
fling bundle at sling launchpad 7.
when i try to request the fling example page as described here: 
https://sling.apache.org/documentation/bundles/scripting/scripting-thymeleaf.html 
i always get an 404 error.

can you please help me to get this example working.

thanks in advance

--

Pixelpark AG, Geschäftsbereich Agentur, Samuel Stein, IT-Developer
Bergmannstraße 72, D-10961 Berlin, Tel +49.30.5058-1550, Fax -1400

Pixelpark

Web: http://www.pixelpark.com | Twitter: 
http://www.pixelpark.com/twitter | Facebook: 
http://www.pixelpark.com/facebook


Vorstand: Horst Wagner (Vorsitzender), Dirk Kedrowitsch, 
Aufsichtsratsvorsitzender: Pedro Simko, Amtsgericht Charlottenburg: HRB 
72163


This e-mail has been sent by Pixelpark AG, Germany. It is intended for 
the named recipient only. The information contained in this message and 
any attachments hereto are confidential and may be legally privileged. 
If you have received this e-mail in error or are not the intended 
recipient, please immediately notify the sender by return e-mail and 
delete this message and all attachments to it from your system without 
keeping a copy. Thank you for your cooperation.


Please consider your environmental responsibility. Do you really need to 
print this e-mail?




Jenkins build is still unstable: sling-trunk-1.7 » Apache Sling Launchpad Testing #1154

2014-11-13 Thread Apache Jenkins Server
See 




Jenkins build is still unstable: sling-trunk-1.7 #1154

2014-11-13 Thread Apache Jenkins Server
See 



Jenkins build is still unstable: sling-trunk-1.8 » Apache Sling Launchpad Testing #443

2014-11-13 Thread Apache Jenkins Server
See 




Jenkins build is still unstable: sling-trunk-1.8 #443

2014-11-13 Thread Apache Jenkins Server
See 



[jira] [Comment Edited] (SLING-4155) DefaultInjectionStrategy not considered for injector-specific annotations

2014-11-13 Thread Konrad Windszus (JIRA)

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

Konrad Windszus edited comment on SLING-4155 at 11/13/14 3:01 PM:
--

In my pull-request I already raised the exported package version number to 2.0 
(thanks to the new baseline feature of the maven-bundle-plugin).

I don't want that feature to be broken until we release 2.0 so what about the 
following approach:
# add a *new* field to all injector-specific annotations named {{isOptional}} 
with the default value {{DEFAULT}} (which means following the default injection 
strategy)
# deprecate the old field {{optional}} (which still has {{false}} as its 
default value)

With v2.0 of Sling Models we could then finally remove the field {{optional}}

Now the default injection strategy should be followed if
# {{isOptional = DEFAULT}} and
# optional = false (either explicitly set or just because it is the default - 
it is impossible to distinguish those two cases)

Now if we look at the following usecases this is the new vs. the old behaviour:

||optional||DefaultInjectionStrategy||old behaviour||new behaviour||
|{{false}}(default)|{{Required}}(default)|required|required|
|{{false}}(default)|{{Optional}}|required|optional|
|{{true}}|{{Required}}(default)|optional|optional|
|{{true}}|{{Optional}}|optional|optional|

Although this actually changes the second of the four usecases I don't think 
this will ever affect someone, because the DefaultInjectionStrategy was 
probably never set on models using injector-specific annotations (due to this 
bug).
WDYT?


was (Author: kwin):
In my pull-request I already raised the exported package version number to 2.0 
(thanks to the new baseline feature of the maven-bundle-plugin).

I don't want that feature to be broken until we release 2.0 so what about the 
following approach:
# add a *new* field to all injector-specific annotations named {{isOptional}} 
with the default value {{DEFAULT}} (following the default injection strategy)
# deprecate the old field {{optional}} (which still has {{false}} as its 
default value)

With v2.0 of Sling Models we could then finally remove the field {{optional}}

Now the default injection strategy should be followed if
# {{isOptional = DEFAULT}} and
# optional = false (either explicitly set or just because it is the default - 
it is impossible to distinguish those two cases)

Now if we look at the following usecases this is the new vs. the old behaviour:

||optional||DefaultInjectionStrategy||old behaviour||new behaviour||
|{{false}}(default)|{{Required}}(default)|required|required|
|{{false}}(default)|{{Optional}}|required|optional|
|{{true}}|{{Required}}(default)|optional|optional|
|{{true}}|{{Optional}}|optional|optional|

Although this actually changes the second of the four usecases I don't think 
this will ever affect someone, because the DefaultInjectionStrategy was 
probably never set on models using injector-specific annotations (due to this 
bug).
WDYT?

> DefaultInjectionStrategy not considered for injector-specific annotations
> -
>
> Key: SLING-4155
> URL: https://issues.apache.org/jira/browse/SLING-4155
> Project: Sling
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: Sling Models Implementation 1.0.6
>Reporter: Konrad Windszus
>
> The default injection strategy (being implemented in SLING-3696) is only 
> considered, in case there is no injector-specific annotation being used.
> Otherwise it is just ignored.
> The logic should be like this:
> if annotationProcessor.isOptional() returns null
> -> the default injection strategy should be used
> in any other case the boolean value should be used.



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


[jira] [Comment Edited] (SLING-4155) DefaultInjectionStrategy not considered for injector-specific annotations

2014-11-13 Thread Konrad Windszus (JIRA)

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

Konrad Windszus edited comment on SLING-4155 at 11/13/14 3:01 PM:
--

In my pull-request I already raised the exported package version number to 2.0 
(thanks to the new baseline feature of the maven-bundle-plugin).

I don't want that feature to be broken until we release 2.0 so what about the 
following approach:
# add a *new* field to all injector-specific annotations named {{isOptional}} 
with the default value {{DEFAULT}} (following the default injection strategy)
# deprecate the old field {{optional}} (which still has {{false}} as its 
default value)

With v2.0 of Sling Models we could then finally remove the field {{optional}}

Now the default injection strategy should be followed if
# {{isOptional = DEFAULT}} and
# optional = false (either explicitly set or just because it is the default - 
it is impossible to distinguish those two cases)

Now if we look at the following usecases this is the new vs. the old behaviour:

||optional||DefaultInjectionStrategy||old behaviour||new behaviour||
|{{false}}(default)|{{Required}}(default)|required|required|
|{{false}}(default)|{{Optional}}|required|optional|
|{{true}}|{{Required}}(default)|optional|optional|
|{{true}}|{{Optional}}|optional|optional|

Although this actually changes the second of the four usecases I don't think 
this will ever affect someone, because the DefaultInjectionStrategy was 
probably never set on models using injector-specific annotations (due to this 
bug).
WDYT?


was (Author: kwin):
In my pull-request I already raised the exported package version number to 2.0 
(thanks to the new baseline feature of the maven-bundle-plugin).

I don't want that feature to be broken until we release 2.0 so what about the 
following approach:
# add a *new* field to all injector-specific annotations named {{isOptional}} 
with the default value {{DEFAULT}} (following the default injection strategy)
# deprecate the old field {{optional}} (which still has {{false}} as its 
default value)

With v2.0 of Sling Models we could then finally remove the field {{optional}}

Now the default injection strategy should be followed if
# {{isOptional = DEFAULT}}
# optional = false (either explicitly set or just because it is the default - 
it is impossible to distinguish those two cases)

Now if we look at the following usecases this is the new vs. the old behaviour:

||optional||DefaultInjectionStrategy||old behaviour||new behaviour||
|{{false}}(default)|{{Required}}(default)|required|required|
|{{false}}(default)|{{Optional}}|required|optional|
|{{true}}|{{Required}}(default)|optional|optional|
|{{true}}|{{Optional}}|optional|optional|

Although this actually changes the second of the four usecases I don't think 
this will ever affect someone, because the DefaultInjectionStrategy was 
probably never set on models using injector-specific annotations (due to this 
bug).
WDYT?

> DefaultInjectionStrategy not considered for injector-specific annotations
> -
>
> Key: SLING-4155
> URL: https://issues.apache.org/jira/browse/SLING-4155
> Project: Sling
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: Sling Models Implementation 1.0.6
>Reporter: Konrad Windszus
>
> The default injection strategy (being implemented in SLING-3696) is only 
> considered, in case there is no injector-specific annotation being used.
> Otherwise it is just ignored.
> The logic should be like this:
> if annotationProcessor.isOptional() returns null
> -> the default injection strategy should be used
> in any other case the boolean value should be used.



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


[jira] [Commented] (SLING-4155) DefaultInjectionStrategy not considered for injector-specific annotations

2014-11-13 Thread Konrad Windszus (JIRA)

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

Konrad Windszus commented on SLING-4155:


In my pull-request I already raised the exported package version number to 2.0 
(thanks to the new baseline feature of the maven-bundle-plugin).

I don't want that feature to be broken until we release 2.0 so what about the 
following approach:
# add a *new* field to all injector-specific annotations named {{isOptional}} 
with the default value {{DEFAULT}} (following the default injection strategy)
# deprecate the old field {{optional}} (which still has {{false}} as its 
default value)

With v2.0 of Sling Models we could then finally remove the field {{optional}}

Now the default injection strategy should be followed if
# {{isOptional = DEFAULT}}
# optional = false (either explicitly set or just because it is the default - 
it is impossible to distinguish those two cases)

Now if we look at the following usecases this is the new vs. the old behaviour:

||optional||DefaultInjectionStrategy||old behaviour||new behaviour||
|{{false}}(default)|{{Required}}(default)|required|required|
|{{false}}(default)|{{Optional}}|required|optional|
|{{true}}|{{Required}}(default)|optional|optional|
|{{true}}|{{Optional}}|optional|optional|

Although this actually changes the second of the four usecases I don't think 
this will ever affect someone, because the DefaultInjectionStrategy was 
probably never set on models using injector-specific annotations (due to this 
bug).
WDYT?

> DefaultInjectionStrategy not considered for injector-specific annotations
> -
>
> Key: SLING-4155
> URL: https://issues.apache.org/jira/browse/SLING-4155
> Project: Sling
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: Sling Models Implementation 1.0.6
>Reporter: Konrad Windszus
>
> The default injection strategy (being implemented in SLING-3696) is only 
> considered, in case there is no injector-specific annotation being used.
> Otherwise it is just ignored.
> The logic should be like this:
> if annotationProcessor.isOptional() returns null
> -> the default injection strategy should be used
> in any other case the boolean value should be used.



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


Re: [ANN] New Apache Sling Committers: Konrad Windszus and Julian Sedding

2014-11-13 Thread Felix Meschberger
Congratulations, Konrad and Julian. Welcome aboard !

Regards
Felix

> Am 12.11.2014 um 15:01 schrieb cziege...@apache.org:
> 
> Hi
> 
> it's my pleasure to announce that the Apache Sling PMC has invited
> Konrad Windszus and Julian Sedding as new Sling committers...and I'm
> very happy that both accepted.
> 
> Please join me in welcoming Konrad and Julian.
> 
> @Konrad, @Julian you might wanna introduce yourself
> 
> Regards
> Carsten
> -- 
> Carsten Ziegeler
> Adobe Research Switzerland
> cziege...@apache.org



Jenkins build is still unstable: sling-trunk-1.7 » Apache Sling Launchpad Testing #1153

2014-11-13 Thread Apache Jenkins Server
See 




Jenkins build is still unstable: sling-trunk-1.7 #1153

2014-11-13 Thread Apache Jenkins Server
See 



Jenkins build is back to stable : sling-trunk-1.8 » Apache Sling Event Support #442

2014-11-13 Thread Apache Jenkins Server
See 




Jenkins build is still unstable: sling-trunk-1.8 #442

2014-11-13 Thread Apache Jenkins Server
See 



Jenkins build is still unstable: sling-trunk-1.8 » Apache Sling Launchpad Testing #442

2014-11-13 Thread Apache Jenkins Server
See 




Build failed in Jenkins: sling-contrib-1.6 » Apache Sling Launchpad Debian Package Builder #1349

2014-11-13 Thread Apache Jenkins Server
See 


Changes:

[bdelacretaz] SLING-4151 - Sling Launchpad debian/.ubuntu package, contributed 
by Bruce Edge, thanks!

--
[INFO] 
[INFO] 
[INFO] Building Apache Sling Launchpad Debian Package Builder 8-SNAPSHOT
[INFO] 
Downloading: 
http://repo.maven.apache.org/maven2/org/vafer/jdeb/1.0.1/jdeb-1.0.1.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/vafer/jdeb/1.0.1/jdeb-1.0.1.pom (12 KB 
at 79.8 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/vafer/jdeb/1.0.1/jdeb-1.0.1.jar
Downloaded: 
http://repo.maven.apache.org/maven2/org/vafer/jdeb/1.0.1/jdeb-1.0.1.jar (318 KB 
at 820.2 KB/sec)
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ sling-lauchpad ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-java) @ sling-lauchpad 
---
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run 
(set-bundle-required-execution-environment) @ sling-lauchpad ---
[INFO] Executing tasks

main:
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ sling-lauchpad 
---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
sling-lauchpad ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (check-memory-task) @ sling-lauchpad ---
[INFO] Executing tasks

main:
 [echo]  WARNING (SLING-443/SLING-1782) 
**
 [echo] On most platforms, you'll get OutOfMemoryErrors when building 
unless you set
 [echo] on 32bit platforms: MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=256M", see 
SLING-443
 [echo] on 64bit platforms: MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=512M", see 
SLING-1782
 [echo] 
**
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ sling-lauchpad 
---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
sling-lauchpad ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
sling-lauchpad ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ sling-lauchpad ---
[JENKINS] Recording test results[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.11:check (default) @ sling-lauchpad ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java15:1.0

[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ sling-lauchpad ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-java) @ sling-lauchpad 
---
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run 
(set-bundle-required-execution-environment) @ sling-lauchpad ---
[INFO] Executing tasks

main:
[INFO] Executed tasks
[WARNING] Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo
[INFO] 
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ sling-lauchpad ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ 
sling-lauchpad ---
[INFO] 
[INFO] --- jdeb:1.0.1:jdeb (default) @ sling-lauchpad ---
Downloading: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.pom
 (2 KB at 16.6 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.jar
Downloaded: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.jar
 (241 KB at 1336.2 KB/sec)
[INFO] Creating debian package: 

[INFO] Building data
[ERROR] Failed to create debian package 

org.va

Build failed in Jenkins: sling-contrib-1.6 #1349

2014-11-13 Thread Apache Jenkins Server
See 

Changes:

[bdelacretaz] SLING-4151 - Sling Launchpad debian/.ubuntu package, contributed 
by Bruce Edge, thanks!

--
[...truncated 20656 lines...]
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ sling-lauchpad 
---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
sling-lauchpad ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
sling-lauchpad ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ sling-lauchpad ---
[JENKINS] Recording test results[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.11:check (default) @ sling-lauchpad ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java15:1.0

[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ sling-lauchpad ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-java) @ sling-lauchpad 
---
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run 
(set-bundle-required-execution-environment) @ sling-lauchpad ---
[INFO] Executing tasks

main:
[INFO] Executed tasks
[WARNING] Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo
[INFO] 
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ sling-lauchpad ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ 
sling-lauchpad ---
[INFO] 
[INFO] --- jdeb:1.0.1:jdeb (default) @ sling-lauchpad ---
Downloading: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.pom
 (2 KB at 16.6 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.jar
Downloaded: 
http://repo.maven.apache.org/maven2/org/bouncycastle/bcpg-jdk15on/1.47/bcpg-jdk15on-1.47.jar
 (241 KB at 1336.2 KB/sec)
[INFO] Creating debian package: 

[INFO] Building data
[ERROR] Failed to create debian package 

org.vafer.jdeb.PackagingException: Failed to create debian package 

at org.vafer.jdeb.maven.DebMaker.makeDeb(DebMaker.java:246)
at org.vafer.jdeb.maven.DebMojo.execute(DebMojo.java:409)
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at 
org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:178)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImp

[jira] [Commented] (SLING-4156) Document DefaultInjectionStrategy in http://sling.apache.org/documentation/bundles/models.html

2014-11-13 Thread Stefan Seifert (JIRA)

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

Stefan Seifert commented on SLING-4156:
---

go ahead :)

https://svn.apache.org/repos/asf/sling/site/trunk/content/documentation/bundles/models.mdtext

if you need help how to publish documentation updates on the sling website you 
can contact me. we should document the issue from SLING-4155 as well.

> Document DefaultInjectionStrategy in 
> http://sling.apache.org/documentation/bundles/models.html
> --
>
> Key: SLING-4156
> URL: https://issues.apache.org/jira/browse/SLING-4156
> Project: Sling
>  Issue Type: Improvement
>  Components: Extensions
>Affects Versions: Sling Models Implementation 1.0.6
>Reporter: Konrad Windszus
>
> With SLING-3696 a default injection strategy was added. This should be 
> documented in http://sling.apache.org/documentation/bundles/models.html 
> together with the annotation Required (also what happens if both annotations 
> Required and Optional are specified on the same element).



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


[jira] [Commented] (SLING-4155) DefaultInjectionStrategy not considered for injector-specific annotations

2014-11-13 Thread Stefan Seifert (JIRA)

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

Stefan Seifert commented on SLING-4155:
---

such a change on the annotations will indeed break both runtime and 
compile-time backward compatibility - we cannot do this unless we raise the 
version to v2.0.0 to comply to semantic versioning. i'm not sure if it's worth 
only for this issue, although i agree the current functionality is broken when 
injector-specific annotations are used.

for a first step we should document this issue (SLING-4156), and perhaps create 
a new version in JIRA to sling models 2.0.0 and collect there tickets like this 
so we do not forget it when time is ready for v2.

> DefaultInjectionStrategy not considered for injector-specific annotations
> -
>
> Key: SLING-4155
> URL: https://issues.apache.org/jira/browse/SLING-4155
> Project: Sling
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: Sling Models Implementation 1.0.6
>Reporter: Konrad Windszus
>
> The default injection strategy (being implemented in SLING-3696) is only 
> considered, in case there is no injector-specific annotation being used.
> Otherwise it is just ignored.
> The logic should be like this:
> if annotationProcessor.isOptional() returns null
> -> the default injection strategy should be used
> in any other case the boolean value should be used.



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


[jira] [Commented] (SLING-4112) Sling Models: Optimize performance when read sling models annotations

2014-11-13 Thread Stefan Seifert (JIRA)

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

Stefan Seifert commented on SLING-4112:
---

Completed: At revision: 1639323  

i commited the changes from the branch to the trunk.

open points:
* review if we should add some more specific unit tests for the new classes 
(although they are already tested indirectly by the other tests)
* update documentation concerning the SPI addition

> Sling Models: Optimize performance when read sling models annotations
> -
>
> Key: SLING-4112
> URL: https://issues.apache.org/jira/browse/SLING-4112
> Project: Sling
>  Issue Type: Improvement
>  Components: Extensions
>Affects Versions: Sling Models Implementation 1.1.0
>Reporter: Stefan Seifert
>Assignee: Stefan Seifert
>Priority: Minor
>  Labels: models
> Fix For: Sling Models Impl 1.2.0
>
> Attachments: 141028_adaptto_jprofiler_slingmodels.gif, 
> 141028_adaptto_jprofiler_slingmodels_getannotation.gif, 
> 141030_jmeter_with_models_tuning.gif, 
> 141030_jmeter_without_models_tuning.gif, 
> 141030_jprofiler_with_models_tuning_models.gif, 
> 141030_jprofiler_with_models_tuning_total_grouped.gif, 
> 141030_jprofiler_without_models_tuning_models.gif, 
> 141030_jprofiler_without_models_tuning_total_grouped.gif
>
>
> i did some first performance tests with a sling application that makes 
> intensive usage of sling models to see where potential hotspots are that cost 
> performance, esp. in area of sling models.
> attached is a filtered view of a jprofile session showing only the method 
> calls inside sling models implementation:
> [^141028_adaptto_jprofiler_slingmodels.gif]
> a good part of performance is spent on inspection the annotations of the 
> sling models classes, a call graph of the first method: 
> [^141028_adaptto_jprofiler_slingmodels_getannotation.gif]
> i think this is especially the case because this inspection takes place on 
> each adaptTo() call, although the underlying model class never changes when 
> the OSGi bundle stays in place.
> it should be possible to come up with an optimization caching the inspection 
> results (which annotations exist on which fields/methods/types with which 
> parameters), and doing only the injection part on each adaptTo() invocation. 
> if the bundle changes the cache has to be cleared.
> i will think about it the next days and perhaps come up with an 
> implementation proposal.



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


[GitHub] sling pull request: Update and rename README.txt to README.md

2014-11-13 Thread stokito
GitHub user stokito opened a pull request:

https://github.com/apache/sling/pull/36

Update and rename README.txt to README.md



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/stokito/sling patch-1

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/sling/pull/36.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #36


commit f8fe50657a56329c9e57d2b586965a35237afa82
Author: Sergey Ponomarev 
Date:   2014-11-13T13:50:41Z

Update and rename README.txt to README.md




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Updated] (SLING-2803) Create a Validation module capable of validating POST requests or Resources

2014-11-13 Thread Konrad Windszus (JIRA)

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

Konrad Windszus updated SLING-2803:
---
Fix Version/s: Validation 1.0.0

> Create a Validation module capable of validating POST requests or Resources
> ---
>
> Key: SLING-2803
> URL: https://issues.apache.org/jira/browse/SLING-2803
> Project: Sling
>  Issue Type: New Feature
>  Components: Validation
>Reporter: Radu Cotescu
>Assignee: Bertrand Delacretaz
> Fix For: Validation 1.0.0
>
> Attachments: org.apache.sling.validation.zip, 
> org.apache.sling.validation.zip.sha1
>
>
> Several Sling users have asked in the past [1] about a Validation mechanism 
> in Sling that's able to validate data coming from the user. However, such a 
> module is still missing.
> This issue is meant to track the work progress on such a module.
> Ideally the module should be able to validate both request parameters and 
> Resources, by obtaining their properties via a ValueMap and provide feedback 
> in case of a validation error.
> [1] - http://sling.markmail.org/search/?q=validation



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


[jira] [Updated] (SLING-2803) Create a Validation module capable of validating POST requests or Resources

2014-11-13 Thread Konrad Windszus (JIRA)

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

Konrad Windszus updated SLING-2803:
---
Component/s: Validation

> Create a Validation module capable of validating POST requests or Resources
> ---
>
> Key: SLING-2803
> URL: https://issues.apache.org/jira/browse/SLING-2803
> Project: Sling
>  Issue Type: New Feature
>  Components: Validation
>Reporter: Radu Cotescu
>Assignee: Bertrand Delacretaz
> Fix For: Validation 1.0.0
>
> Attachments: org.apache.sling.validation.zip, 
> org.apache.sling.validation.zip.sha1
>
>
> Several Sling users have asked in the past [1] about a Validation mechanism 
> in Sling that's able to validate data coming from the user. However, such a 
> module is still missing.
> This issue is meant to track the work progress on such a module.
> Ideally the module should be able to validate both request parameters and 
> Resources, by obtaining their properties via a ValueMap and provide feedback 
> in case of a validation error.
> [1] - http://sling.markmail.org/search/?q=validation



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


Jenkins build is still unstable: sling-trunk-1.7 » Apache Sling Launchpad Testing #1152

2014-11-13 Thread Apache Jenkins Server
See 




Jenkins build is still unstable: sling-trunk-1.7 #1152

2014-11-13 Thread Apache Jenkins Server
See 



Jenkins build is back to stable : sling-trunk-1.7 » Apache Sling Resource-Based Discovery Service #1152

2014-11-13 Thread Apache Jenkins Server
See 




Jenkins build is still unstable: sling-trunk-1.8 » Apache Sling Event Support #441

2014-11-13 Thread Apache Jenkins Server
See 




Jenkins build is still unstable: sling-trunk-1.8 » Apache Sling Launchpad Testing #441

2014-11-13 Thread Apache Jenkins Server
See 




Jenkins build is still unstable: sling-trunk-1.8 #441

2014-11-13 Thread Apache Jenkins Server
See 



Build failed in Jenkins: sling-trunk-1.6 #2769

2014-11-13 Thread Apache Jenkins Server
See 

--
[...truncated 1595 lines...]
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/context/SlingContextImpl.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/context/package-info.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/context/ContextResourceResolverFactory.java
A 
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/builder
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/builder/package-info.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/builder/ContentBuilder.java
A 
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/junit
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/junit/package-info.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/junit/SlingContextCallback.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/junit/SlingContext.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/MockJcrResourceResolverFactory.java
A 
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/spi
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/spi/ResourceResolverTypeAdapter.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/spi/package-info.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/MockSlingScriptHelper.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/ResourceResolverType.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/ThreadsafeMockAdapterManagerWrapper.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/JcrMockResourceResolverAdapter.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/package-info.java
A testing/mocks/jcr-mock
A testing/mocks/jcr-mock/src
A testing/mocks/jcr-mock/src/test
A testing/mocks/jcr-mock/src/test/java
A testing/mocks/jcr-mock/src/test/java/org
A testing/mocks/jcr-mock/src/test/java/org/apache
A testing/mocks/jcr-mock/src/test/java/org/apache/sling
A testing/mocks/jcr-mock/src/test/java/org/apache/sling/testing
A testing/mocks/jcr-mock/src/test/java/org/apache/sling/testing/mock
A testing/mocks/jcr-mock/src/test/java/org/apache/sling/testing/mock/jcr
AU
testing/mocks/jcr-mock/src/test/java/org/apache/sling/testing/mock/jcr/MockSessionTest.java
AU
testing/mocks/jcr-mock/src/test/java/org/apache/sling/testing/mock/jcr/MockPropertyTest.java
AU
testing/mocks/jcr-mock/src/test/java/org/apache/sling/testing/mock/jcr/MockNodeTest.java
AU
testing/mocks/jcr-mock/src/test/java/org/apache/sling/testing/mock/jcr/AbstractItemTest.java
AU
testing/mocks/jcr-mock/src/test/java/org/apache/sling/testing/mock/jcr/ResourceUtilTest.java
AU
testing/mocks/jcr-mock/src/test/java/org/apache/sling/testing/mock/jcr/MockWorkspaceTest.java
AU
testing/mocks/jcr-mock/src/test/java/org/apache/sling/testing/mock/jcr/MockRepositoryTest.java
A testing/mocks/jcr-mock/src/main
A testing/mocks/jcr-mock/src/main/java
A testing/mocks/jcr-mock/src/main/java/org
A testing/mocks/jcr-mock/src/main/java/org/apache
A testing/mocks/jcr-mock/src/main/java/org/apache/sling
A testing/mocks/jcr-mock/src/main/java/org/apache/sling/testing
A testing/mocks/jcr-mock/src/main/java/org/apache/sling/testing/mock
A testing/mocks/jcr-mock/src/main/java/org/apache/sling/testing/mock/jcr
AU
testing/mocks/jcr-mock/src/main/java/org/apache/sling/testing/mock/jcr/MockWorkspace.java
AU
testing/mocks/jcr-mock/src/main/java/org/apache/sling/testing/mock/jcr/AbstractItem.java
AU
testing/mocks/jcr-mock/src/main/java/org/apache/sling/testing/mock/jcr/MockNodeTypes.java
AU
testing/mocks/jcr-mock/src/main/java/org/apache/sling/testing/mock/jcr/package-info.java
AU
testing/mocks/jcr-mock/src/main/java/org/apache/sling/testing/mock/jcr/ResourceUtil.java
AU
testing/mocks/jcr-mock/src/main/java/org/apache/sling/testing/mock/jcr/ItemData.java
AU
testing/mocks/jcr-mock/src/main/java/org/apache/sling/testing/mock/jcr/MockJcr.java
AU
testing/mocks/jcr-mock/src/main/java/org/apache/sling/testing/mock/jcr/MockRepository.java
AU
testing/mocks/jcr-mock/src/main/java/org/apache/sling/testing/mock/jcr/MockNodeTypeManager.java
AU
testing/mocks/jcr-mock/src/main/java/org/apach

[jira] [Resolved] (SLING-4151) Create debian/.ubuntu package for sling launchpad standalone jar

2014-11-13 Thread Bertrand Delacretaz (JIRA)

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

Bertrand Delacretaz resolved SLING-4151.

Resolution: Fixed
  Assignee: Bertrand Delacretaz

Thanks very much for your contribution!
I have committed it in http://svn.apache.org/r1639317

> Create debian/.ubuntu package for sling launchpad standalone jar
> 
>
> Key: SLING-4151
> URL: https://issues.apache.org/jira/browse/SLING-4151
> Project: Sling
>  Issue Type: New Feature
>  Components: Installer
>Reporter: Bruce Edge
>Assignee: Bertrand Delacretaz
>Priority: Minor
>  Labels: debian, install, package, ubuntu
> Attachments: sling-dpkg.patch
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> I’m setting up a development env for a team to work on a sling asset manager 
> app. I wanted to make the env setup simple so I put together a debian/ubuntu 
> package for the org.apache.sling.launchpad-8-SNAPSHOT-standalone.jar.
> It uses the jdeb maven plugin so it’s cross-platform. Here’s the patch on the 
> off-chance it’s compatible with the upstream policies. If it needs tuning, 
> let me know what it’s missing.
> Comments from dev list:
> - Do you mind creating a JIRA 
> - my preference would be to have this in contrib instead of the launchpad 
> folder 



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


Re: [ANN] New Apache Sling Committers: Konrad Windszus and Julian Sedding

2014-11-13 Thread Robert Munteanu
Congratulations and welcome to both of you!

Robert

On Thu, Nov 13, 2014 at 11:36 AM, Julian Sedding  wrote:
> ... and last but not least: congratulations Konrad, keep up the good work!
>
> On Thu, Nov 13, 2014 at 10:35 AM, Julian Sedding  wrote:
>> Hello everyone
>>
>> Thank you for inviting me to become a Sling committer, I appreciate
>> the honour and intend to use it for the good of the community and the
>> Sling code base.
>>
>> I live in Basel, Switzerland and work as a self-employed consultant
>> for CQ/AEM. I started working with Sling in 2008, at the time an
>> employee of Day Software, when the first version of CQ5 was released.
>>
>> So far most of my contributions were small improvements and bug fixes;
>> and Stefan has recently committed a refined version of the
>> SuperImposingResourceProvider, the initial version of which I
>> contributed as a patch several years ago. Thanks Stefan!
>>
>> Regards
>> Julian
>>
>>
>> On Thu, Nov 13, 2014 at 8:39 AM, Antonio Sanso  wrote:
>>>
>>> On Nov 12, 2014, at 3:01 PM, Carsten Ziegeler  wrote:
>>>
 Hi

 it's my pleasure to announce that the Apache Sling PMC has invited
 Konrad Windszus and Julian Sedding as new Sling committers...and I'm
 very happy that both accepted.
>>>
>>> congrats guys and welcome in the team
>>>
>>> regards
>>>
>>> antonio
>>>

 Please join me in welcoming Konrad and Julian.

 @Konrad, @Julian you might wanna introduce yourself

 Regards
 Carsten
 --
 Carsten Ziegeler
 Adobe Research Switzerland
 cziege...@apache.org
>>>


Build failed in Jenkins: sling-trunk-1.6 #2768

2014-11-13 Thread Apache Jenkins Server
See 

--
[...truncated 701 lines...]
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/helper/SlingFilterConfig.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/helper/RequestListenerManager.java
A 
bundles/engine/src/main/java/org/apache/sling/engine/impl/helper/SlingServletContext3.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/helper/NullResourceBundle.java
A 
bundles/engine/src/main/java/org/apache/sling/engine/impl/helper/ExternalServletContextWrapper.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/SlingSettingsServiceImpl.java
A bundles/engine/src/main/java/org/apache/sling/engine/impl/adapter
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/adapter/SlingServletResponseAdapter.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/adapter/SlingServletRequestAdapter.java
A bundles/engine/src/main/java/org/apache/sling/engine/impl/log
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/log/CustomLogFormat.java
A 
bundles/engine/src/main/java/org/apache/sling/engine/impl/log/RequestLoggerResponse.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/log/RequestLogger.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/log/RequestLoggerService.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/log/FileRequestLog.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/log/LoggerRequestLog.java
A 
bundles/engine/src/main/java/org/apache/sling/engine/impl/log/RequestLoggerFilter.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/log/RequestLogServiceFacade.java
A 
bundles/engine/src/main/java/org/apache/sling/engine/impl/log/RequestLoggerRequest.java
A bundles/engine/src/main/java/org/apache/sling/engine/impl/filter
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/filter/ServletFilterManager.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/filter/SlingFilterChainHelper.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/filter/SlingComponentFilterChain.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/filter/AbstractSlingFilterChain.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/filter/RequestSlingFilterChain.java
A bundles/engine/src/main/java/org/apache/sling/engine/impl/debug
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/debug/RequestProgressTrackerLogFilter.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/SlingRequestProcessorImpl.java
A bundles/engine/src/main/java/org/apache/sling/engine/impl/request
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/request/SlingRequestPathInfo.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/request/RequestData.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/request/ContentData.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/request/SlingRequestProgressTracker.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/request/RequestHistoryConsolePlugin.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/request/SlingRequestDispatcher.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/impl/SlingHttpServletRequestImpl.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/EngineConstants.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/SlingRequestProcessor.java
AUbundles/engine/src/main/java/org/apache/sling/engine/RequestUtil.java
A bundles/engine/src/main/java/org/apache/sling/engine/servlets
AU
bundles/engine/src/main/java/org/apache/sling/engine/servlets/ErrorHandler.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/servlets/AbstractServiceReferenceConfig.java
AUbundles/engine/src/main/java/org/apache/sling/engine/RequestLog.java
AUbundles/engine/src/main/java/org/apache/sling/engine/ResponseUtil.java
AU
bundles/engine/src/main/java/org/apache/sling/engine/SlingSettingsService.java
A bundles/engine/src/main/java/org/apache/sling/engine/jmx
A 
bundles/engine/src/main/java/org/apache/sling/engine/jmx/RequestProcessorMBean.java
A bundles/engine/src/main/java-servlet3
A bundles/engine/src/main/java-servlet3/org
A bundles/engine/src/main/java-servlet3/org/apache
A bundles/engine/src/main/java-servlet3/org/apache/sling
A bundles/engine/src/main/java-servlet3/org/apache/sling/engine
A bundles/engine/src/main/java-servlet3/org/apache/sling/engine/impl
AU
bundles/engi

Jenkins build is still unstable: sling-trunk-1.7 » Apache Sling Resource-Based Discovery Service #1151

2014-11-13 Thread Apache Jenkins Server
See 




Jenkins build is unstable: sling-trunk-1.7 » Apache Sling Launchpad Testing #1151

2014-11-13 Thread Apache Jenkins Server
See 




Jenkins build is back to stable : sling-trunk-1.7 » Apache Sling Installer Integration Tests #1151

2014-11-13 Thread Apache Jenkins Server
See 




Jenkins build is unstable: sling-trunk-1.7 #1151

2014-11-13 Thread Apache Jenkins Server
See 



[jira] [Commented] (SLING-4160) Log error in case invalid validator has been specified in the validation model

2014-11-13 Thread Konrad Windszus (JIRA)

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

Konrad Windszus commented on SLING-4160:


fixed in r1639315.

> Log error in case invalid validator has been specified in the validation model
> --
>
> Key: SLING-4160
> URL: https://issues.apache.org/jira/browse/SLING-4160
> Project: Sling
>  Issue Type: Bug
>  Components: Validation
>Reporter: Konrad Windszus
>Assignee: Konrad Windszus
> Fix For: Validation 1.0.0
>
>
> In case an invalid validator name has been specified an error should be 
> logged. Currently just an NPE is thrown
> {code}
> Caused by: java.lang.NullPointerException: null
>   at 
> org.apache.sling.validation.impl.ValidationServiceImpl.validatePropertyValue(ValidationServiceImpl.java:388)
>   at 
> org.apache.sling.validation.impl.ValidationServiceImpl.validateResourceProperties(ValidationServiceImpl.java:251)
>   at 
> org.apache.sling.validation.impl.ValidationServiceImpl.validate(ValidationServiceImpl.java:116)
> {code}



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


[jira] [Resolved] (SLING-4160) Log error in case invalid validator has been specified in the validation model

2014-11-13 Thread Konrad Windszus (JIRA)

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

Konrad Windszus resolved SLING-4160.

Resolution: Fixed

> Log error in case invalid validator has been specified in the validation model
> --
>
> Key: SLING-4160
> URL: https://issues.apache.org/jira/browse/SLING-4160
> Project: Sling
>  Issue Type: Bug
>  Components: Validation
>Reporter: Konrad Windszus
>Assignee: Konrad Windszus
> Fix For: Validation 1.0.0
>
>
> In case an invalid validator name has been specified an error should be 
> logged. Currently just an NPE is thrown
> {code}
> Caused by: java.lang.NullPointerException: null
>   at 
> org.apache.sling.validation.impl.ValidationServiceImpl.validatePropertyValue(ValidationServiceImpl.java:388)
>   at 
> org.apache.sling.validation.impl.ValidationServiceImpl.validateResourceProperties(ValidationServiceImpl.java:251)
>   at 
> org.apache.sling.validation.impl.ValidationServiceImpl.validate(ValidationServiceImpl.java:116)
> {code}



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


Jenkins build is unstable: sling-trunk-1.8 » Apache Sling Event Support #440

2014-11-13 Thread Apache Jenkins Server
See 




Jenkins build is unstable: sling-trunk-1.8 #440

2014-11-13 Thread Apache Jenkins Server
See 



Jenkins build is unstable: sling-trunk-1.8 » Apache Sling Launchpad Testing #440

2014-11-13 Thread Apache Jenkins Server
See 




Jenkins build is back to stable : sling-trunk-1.8 » Apache Sling Launchpad Base #440

2014-11-13 Thread Apache Jenkins Server
See 




[jira] [Created] (SLING-4160) Log error in case invalid validator has been specified in the validation model

2014-11-13 Thread Konrad Windszus (JIRA)
Konrad Windszus created SLING-4160:
--

 Summary: Log error in case invalid validator has been specified in 
the validation model
 Key: SLING-4160
 URL: https://issues.apache.org/jira/browse/SLING-4160
 Project: Sling
  Issue Type: Bug
  Components: Validation
Reporter: Konrad Windszus
Assignee: Konrad Windszus
 Fix For: Validation 1.0.0


In case an invalid validator name has been specified an error should be logged. 
Currently just an NPE is thrown
{code}
Caused by: java.lang.NullPointerException: null
at 
org.apache.sling.validation.impl.ValidationServiceImpl.validatePropertyValue(ValidationServiceImpl.java:388)
at 
org.apache.sling.validation.impl.ValidationServiceImpl.validateResourceProperties(ValidationServiceImpl.java:251)
at 
org.apache.sling.validation.impl.ValidationServiceImpl.validate(ValidationServiceImpl.java:116)
{code}



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


Jenkins build became unstable: sling-trunk-1.7 » Apache Sling Resource-Based Discovery Service #1150

2014-11-13 Thread Apache Jenkins Server
See 




Build failed in Jenkins: sling-trunk-1.6 #2767

2014-11-13 Thread Apache Jenkins Server
See 

--
[...truncated 1312 lines...]
A 
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/builder
AU
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/builder/ContentBuilderTest.java
A 
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/loader
AU
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/loader/AbstractContentLoaderBinaryTest.java
AU
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/loader/AbstractContentLoaderJsonTest.java
AU
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/loader/AbstractContentLoaderJsonDamTest.java
A 
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/resource
AU
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/resource/AbstractSlingCrudResourceResolverTest.java
AU
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/resource/AbstractMultipleResourceResolverTest.java
AU
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/resource/AbstractJcrResourceResolverTest.java
A 
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/jcrmock
A 
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/jcrmock/loader
AU
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/jcrmock/loader/ContentLoaderBinaryTest.java
AU
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/jcrmock/loader/ContentLoaderJsonTest.java
AU
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/jcrmock/loader/ContentLoaderJsonDamTest.java
A 
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/jcrmock/resource
AU
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/jcrmock/resource/SlingCrudResourceResolverTest.java
AU
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/jcrmock/resource/MultipleResourceResolverTest.java
AU
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/jcrmock/resource/JcrResourceResolverTest.java
A 
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/junit
AU
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/junit/SlingContextDefaultRRTypeTest.java
AU
testing/mocks/sling-mock/src/test/java/org/apache/sling/testing/mock/sling/junit/SlingContextTest.java
A testing/mocks/sling-mock/src/main
A testing/mocks/sling-mock/src/main/java
A testing/mocks/sling-mock/src/main/java/org
A testing/mocks/sling-mock/src/main/java/org/apache
A testing/mocks/sling-mock/src/main/java/org/apache/sling
A testing/mocks/sling-mock/src/main/java/org/apache/sling/testing
A testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock
A 
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling
A 
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/builder
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/builder/ContentBuilder.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/builder/package-info.java
A 
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/junit
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/junit/SlingContext.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/junit/package-info.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/junit/SlingContextCallback.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/MockJcrResourceResolverFactory.java
A 
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/spi
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/spi/package-info.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/spi/ResourceResolverTypeAdapter.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/MockSlingScriptHelper.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/ResourceResolverType.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/ThreadsafeMockAdapterManagerWrapper.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/testing/mock/sling/JcrMockResourceResolverAdapter.java
AU
testing/mocks/sling-mock/src/main/java/org/apache/sling/

[jira] [Resolved] (SLING-4158) NPE in case applicablePaths property is not set for a validation model

2014-11-13 Thread Konrad Windszus (JIRA)

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

Konrad Windszus resolved SLING-4158.

Resolution: Fixed

> NPE in case applicablePaths property is not set for a validation model
> --
>
> Key: SLING-4158
> URL: https://issues.apache.org/jira/browse/SLING-4158
> Project: Sling
>  Issue Type: Bug
>  Components: Validation
>Reporter: Konrad Windszus
>Assignee: Konrad Windszus
> Fix For: Validation 1.0.0
>
>
> According to https://github.com/raducotescu/org.apache.sling.validation the 
> property {{applicablePaths}} should be optional. But in case a model is found 
> which does not have this property the following NPE is thrown:
> {code}
> java.lang.NullPointerException: null
>   at 
> org.apache.sling.validation.impl.ValidationServiceImpl.searchAndStoreValidationModel(ValidationServiceImpl.java:321)
>   at 
> org.apache.sling.validation.impl.ValidationServiceImpl.getValidationModel(ValidationServiceImpl.java:93)
>   at 
> org.apache.sling.validation.impl.ValidationServiceImpl.getValidationModel(ValidationServiceImpl.java:103)
> {code}



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


[jira] [Commented] (SLING-4158) NPE in case applicablePaths property is not set for a validation model

2014-11-13 Thread Konrad Windszus (JIRA)

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

Konrad Windszus commented on SLING-4158:


fixed in r1639292

> NPE in case applicablePaths property is not set for a validation model
> --
>
> Key: SLING-4158
> URL: https://issues.apache.org/jira/browse/SLING-4158
> Project: Sling
>  Issue Type: Bug
>  Components: Validation
>Reporter: Konrad Windszus
>Assignee: Konrad Windszus
> Fix For: Validation 1.0.0
>
>
> According to https://github.com/raducotescu/org.apache.sling.validation the 
> property {{applicablePaths}} should be optional. But in case a model is found 
> which does not have this property the following NPE is thrown:
> {code}
> java.lang.NullPointerException: null
>   at 
> org.apache.sling.validation.impl.ValidationServiceImpl.searchAndStoreValidationModel(ValidationServiceImpl.java:321)
>   at 
> org.apache.sling.validation.impl.ValidationServiceImpl.getValidationModel(ValidationServiceImpl.java:93)
>   at 
> org.apache.sling.validation.impl.ValidationServiceImpl.getValidationModel(ValidationServiceImpl.java:103)
> {code}



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


Re: [ANN] New Apache Sling Committers: Konrad Windszus and Julian Sedding

2014-11-13 Thread Julian Sedding
... and last but not least: congratulations Konrad, keep up the good work!

On Thu, Nov 13, 2014 at 10:35 AM, Julian Sedding  wrote:
> Hello everyone
>
> Thank you for inviting me to become a Sling committer, I appreciate
> the honour and intend to use it for the good of the community and the
> Sling code base.
>
> I live in Basel, Switzerland and work as a self-employed consultant
> for CQ/AEM. I started working with Sling in 2008, at the time an
> employee of Day Software, when the first version of CQ5 was released.
>
> So far most of my contributions were small improvements and bug fixes;
> and Stefan has recently committed a refined version of the
> SuperImposingResourceProvider, the initial version of which I
> contributed as a patch several years ago. Thanks Stefan!
>
> Regards
> Julian
>
>
> On Thu, Nov 13, 2014 at 8:39 AM, Antonio Sanso  wrote:
>>
>> On Nov 12, 2014, at 3:01 PM, Carsten Ziegeler  wrote:
>>
>>> Hi
>>>
>>> it's my pleasure to announce that the Apache Sling PMC has invited
>>> Konrad Windszus and Julian Sedding as new Sling committers...and I'm
>>> very happy that both accepted.
>>
>> congrats guys and welcome in the team
>>
>> regards
>>
>> antonio
>>
>>>
>>> Please join me in welcoming Konrad and Julian.
>>>
>>> @Konrad, @Julian you might wanna introduce yourself
>>>
>>> Regards
>>> Carsten
>>> --
>>> Carsten Ziegeler
>>> Adobe Research Switzerland
>>> cziege...@apache.org
>>


Re: [ANN] New Apache Sling Committers: Konrad Windszus and Julian Sedding

2014-11-13 Thread Julian Sedding
Hello everyone

Thank you for inviting me to become a Sling committer, I appreciate
the honour and intend to use it for the good of the community and the
Sling code base.

I live in Basel, Switzerland and work as a self-employed consultant
for CQ/AEM. I started working with Sling in 2008, at the time an
employee of Day Software, when the first version of CQ5 was released.

So far most of my contributions were small improvements and bug fixes;
and Stefan has recently committed a refined version of the
SuperImposingResourceProvider, the initial version of which I
contributed as a patch several years ago. Thanks Stefan!

Regards
Julian


On Thu, Nov 13, 2014 at 8:39 AM, Antonio Sanso  wrote:
>
> On Nov 12, 2014, at 3:01 PM, Carsten Ziegeler  wrote:
>
>> Hi
>>
>> it's my pleasure to announce that the Apache Sling PMC has invited
>> Konrad Windszus and Julian Sedding as new Sling committers...and I'm
>> very happy that both accepted.
>
> congrats guys and welcome in the team
>
> regards
>
> antonio
>
>>
>> Please join me in welcoming Konrad and Julian.
>>
>> @Konrad, @Julian you might wanna introduce yourself
>>
>> Regards
>> Carsten
>> --
>> Carsten Ziegeler
>> Adobe Research Switzerland
>> cziege...@apache.org
>


Build failed in Jenkins: sling-trunk-1.6 #2766

2014-11-13 Thread Apache Jenkins Server
See 

--
[...truncated 1073 lines...]
A testing/mocks/osgi-mock
AUtesting/mocks/osgi-mock/pom.xml
AUtesting/mocks/osgi-mock/README.txt
A testing/mocks/osgi-mock/src
A testing/mocks/osgi-mock/src/test
A testing/mocks/osgi-mock/src/test/java
A testing/mocks/osgi-mock/src/test/java/org
A testing/mocks/osgi-mock/src/test/java/org/apache
A testing/mocks/osgi-mock/src/test/java/org/apache/sling
A testing/mocks/osgi-mock/src/test/java/org/apache/sling/testing
A testing/mocks/osgi-mock/src/test/java/org/apache/sling/testing/mock
A 
testing/mocks/osgi-mock/src/test/java/org/apache/sling/testing/mock/osgi
AU
testing/mocks/osgi-mock/src/test/java/org/apache/sling/testing/mock/osgi/MockBundleContextTest.java
AU
testing/mocks/osgi-mock/src/test/java/org/apache/sling/testing/mock/osgi/MockServiceReferenceTest.java
AU
testing/mocks/osgi-mock/src/test/java/org/apache/sling/testing/mock/osgi/ReflectionServiceUtilTest.java
AU
testing/mocks/osgi-mock/src/test/java/org/apache/sling/testing/mock/osgi/MockLogServiceTest.java
AU
testing/mocks/osgi-mock/src/test/java/org/apache/sling/testing/mock/osgi/MockFilterTest.java
AU
testing/mocks/osgi-mock/src/test/java/org/apache/sling/testing/mock/osgi/OsgiMetadataUtilTest.java
AU
testing/mocks/osgi-mock/src/test/java/org/apache/sling/testing/mock/osgi/MockComponentContextTest.java
AU
testing/mocks/osgi-mock/src/test/java/org/apache/sling/testing/mock/osgi/MockBundleTest.java
AU
testing/mocks/osgi-mock/src/test/java/org/apache/sling/testing/mock/osgi/ReflectionServiceUtilActivateDeactivateTest.java
A testing/mocks/osgi-mock/src/test/resources
A testing/mocks/osgi-mock/src/test/resources/META-INF
AUtesting/mocks/osgi-mock/src/test/resources/META-INF/test.txt
AUtesting/mocks/osgi-mock/src/test/resources/simplelogger.properties
A testing/mocks/osgi-mock/src/test/resources/OSGI-INF
AU
testing/mocks/osgi-mock/src/test/resources/OSGI-INF/org.apache.sling.testing.mock.osgi.ReflectionServiceUtilTest.xml
AU
testing/mocks/osgi-mock/src/test/resources/OSGI-INF/org.apache.sling.testing.mock.osgi.OsgiMetadataUtilTest.xml
AU
testing/mocks/osgi-mock/src/test/resources/OSGI-INF/org.apache.sling.testing.mock.osgi.ReflectionServiceUtilActivateDeactivateTest.xml
A testing/mocks/osgi-mock/src/main
A testing/mocks/osgi-mock/src/main/resources
AUtesting/mocks/osgi-mock/src/main/resources/simplelogger.properties
A testing/mocks/osgi-mock/src/main/java
A testing/mocks/osgi-mock/src/main/java/org
A testing/mocks/osgi-mock/src/main/java/org/apache
A testing/mocks/osgi-mock/src/main/java/org/apache/sling
A testing/mocks/osgi-mock/src/main/java/org/apache/sling/testing
A testing/mocks/osgi-mock/src/main/java/org/apache/sling/testing/mock
A 
testing/mocks/osgi-mock/src/main/java/org/apache/sling/testing/mock/osgi
AU
testing/mocks/osgi-mock/src/main/java/org/apache/sling/testing/mock/osgi/MockServiceReference.java
AU
testing/mocks/osgi-mock/src/main/java/org/apache/sling/testing/mock/osgi/ReflectionServiceUtil.java
AU
testing/mocks/osgi-mock/src/main/java/org/apache/sling/testing/mock/osgi/MockOsgi.java
AU
testing/mocks/osgi-mock/src/main/java/org/apache/sling/testing/mock/osgi/MockLogService.java
AU
testing/mocks/osgi-mock/src/main/java/org/apache/sling/testing/mock/osgi/MockFilter.java
AU
testing/mocks/osgi-mock/src/main/java/org/apache/sling/testing/mock/osgi/OsgiMetadataUtil.java
AU
testing/mocks/osgi-mock/src/main/java/org/apache/sling/testing/mock/osgi/MockComponentContext.java
AU
testing/mocks/osgi-mock/src/main/java/org/apache/sling/testing/mock/osgi/MockBundle.java
AU
testing/mocks/osgi-mock/src/main/java/org/apache/sling/testing/mock/osgi/package-info.java
AU
testing/mocks/osgi-mock/src/main/java/org/apache/sling/testing/mock/osgi/MockServiceRegistration.java
AU
testing/mocks/osgi-mock/src/main/java/org/apache/sling/testing/mock/osgi/MockBundleContext.java
A testing/mocks/sling-mock-jackrabbit
AUtesting/mocks/sling-mock-jackrabbit/pom.xml
AUtesting/mocks/sling-mock-jackrabbit/README.txt
A testing/mocks/sling-mock-jackrabbit/src
A testing/mocks/sling-mock-jackrabbit/src/test
A testing/mocks/sling-mock-jackrabbit/src/test/java
A testing/mocks/sling-mock-jackrabbit/src/test/java/org
A testing/mocks/sling-mock-jackrabbit/src/test/java/org/apache
A testing/mocks/sling-mock-jackrabbit/src/test/java/org/apache/sling
A 
testing/mocks/sling-mock-jackrabbit/src/test/java/org/apache/sling/testing
A 
testing/mocks/sling-mock-jackrabbit/src/test/jav

[jira] [Commented] (SLING-4056) ModelFactory.canCreateFromAdaptable reports false errors when using "adapters" on models

2014-11-13 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on SLING-4056:
---

Github user kwin closed the pull request at:

https://github.com/apache/sling/pull/32


> ModelFactory.canCreateFromAdaptable reports false errors when using 
> "adapters" on models
> 
>
> Key: SLING-4056
> URL: https://issues.apache.org/jira/browse/SLING-4056
> Project: Sling
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: Sling Models Impl 1.2.0
>Reporter: Stefan Seifert
>Assignee: Stefan Seifert
>Priority: Critical
>  Labels: models
> Fix For: Sling Models Impl 1.2.0
>
> Attachments: ImplementsExtendsTest.patch
>
>
> SLING-3709 introduced a new "ModelFactory" with methods for checking if 
> adaption is possible and adapt to a model with enhanced exception support.
> the current implementation does not support the "adapters" variant of models, 
> where the model is adapted to an alternate adapter class (see 
> [documentation|http://sling.apache.org/documentation/bundles/models.html#specifying-an-alternate-adapter-class-since-sling-models-110]).
> adaption of such models via adaptTo still works, but false errors are reported
> {noformat}
> ERROR org.apache.sling.models.impl.ModelAdapterFactory - Provided Adapter 
> class does not have a Model annotation
> {noformat}
> if using the factory method ModelFactory.canCreateFromAdaptable an exception 
> is thrown - this is wrong.
> attached is a patch that extends the unit test to include calls to 
> canCreateFromAdaptable - all fail [^ImplementsExtendsTest.patch]
> [~kwin]: can you have a look?



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


[jira] [Assigned] (SLING-4158) NPE in case applicablePaths property is not set for a validation model

2014-11-13 Thread Konrad Windszus (JIRA)

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

Konrad Windszus reassigned SLING-4158:
--

Assignee: Konrad Windszus

> NPE in case applicablePaths property is not set for a validation model
> --
>
> Key: SLING-4158
> URL: https://issues.apache.org/jira/browse/SLING-4158
> Project: Sling
>  Issue Type: Bug
>  Components: Validation
>Reporter: Konrad Windszus
>Assignee: Konrad Windszus
> Fix For: Validation 1.0.0
>
>
> According to https://github.com/raducotescu/org.apache.sling.validation the 
> property {{applicablePaths}} should be optional. But in case a model is found 
> which does not have this property the following NPE is thrown:
> {code}
> java.lang.NullPointerException: null
>   at 
> org.apache.sling.validation.impl.ValidationServiceImpl.searchAndStoreValidationModel(ValidationServiceImpl.java:321)
>   at 
> org.apache.sling.validation.impl.ValidationServiceImpl.getValidationModel(ValidationServiceImpl.java:93)
>   at 
> org.apache.sling.validation.impl.ValidationServiceImpl.getValidationModel(ValidationServiceImpl.java:103)
> {code}



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


[GitHub] sling pull request: SLING-4056, support adapters on Sling Model Fa...

2014-11-13 Thread kwin
Github user kwin closed the pull request at:

https://github.com/apache/sling/pull/32


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---