[jira] [Closed] (SLING-4081) SlingStart Maven Plugin fails if the organization is not defined in pom.xml

2014-10-28 Thread Carsten Ziegeler (JIRA)

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

Carsten Ziegeler closed SLING-4081.
---

 SlingStart Maven Plugin fails if the organization is not defined in pom.xml
 ---

 Key: SLING-4081
 URL: https://issues.apache.org/jira/browse/SLING-4081
 Project: Sling
  Issue Type: Bug
  Components: Maven Plugins and Archetypes
Reporter: Robert Munteanu
Assignee: Robert Munteanu
 Fix For: Slingstart Maven Plugin 1.0.0


 With a minimal pom.xml:
 {code:xml}project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/xsd/maven-4.0.0.xsd;
   modelVersion4.0.0/modelVersion
   groupIdorg.apache.sling/groupId
   artifactIdslingstart-example/artifactId
   version0.0.1-SNAPSHOT/version
   packagingslingstart/packaging
   build
   plugins
   plugin
   groupIdorg.apache.sling/groupId
   artifactIdslingstart-maven-plugin/artifactId
   version0.0.1-SNAPSHOT/version
   extensionstrue/extensions
   /plugin
   /plugins
   /build
 /project{code}
 the build fails with a NPE
 {noformat}[ERROR] Failed to execute goal
 org.apache.sling:slingstart-maven-plugin:0.0.1-SNAPSHOT:package
 (default-package) on project slingstart-example: Execution
 default-package of goal
 org.apache.sling:slingstart-maven-plugin:0.0.1-SNAPSHOT:package
 failed. NullPointerException - [Help 1]
 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
 execute goal org.apache.sling:slingstart-maven-plugin:0.0.1-SNAPSHOT:package
 (default-package) on project slingstart-example: Execution
 default-package of goal
 org.apache.sling:slingstart-maven-plugin:0.0.1-SNAPSHOT:package
 failed.
 at 
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
 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:116)
 at 
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
 at 
 org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
 at 
 org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at 
 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
 at 
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
 at 
 org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
 at 
 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
 Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
 default-package of goal
 org.apache.sling:slingstart-maven-plugin:0.0.1-SNAPSHOT:package
 failed.
 at 
 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)
 at 
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
 ... 19 more
 Caused by: java.lang.NullPointerException
 at 
 org.apache.sling.maven.slingstart.JarArchiverHelper.createManifest(JarArchiverHelper.java:81)
 at 
 org.apache.sling.maven.slingstart.JarArchiverHelper.init(JarArchiverHelper.java:52)
 at 
 org.apache.sling.maven.slingstart.PackageMojo.packageStandaloneApp(PackageMojo.java:80)
 at 
 org.apache.sling.maven.slingstart.PackageMojo.execute(PackageMojo.java:60)
 at 
 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
 ... 20 more{noformat}



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


[jira] [Resolved] (SLING-4095) Clean up code and logging statements

2014-10-28 Thread Carsten Ziegeler (JIRA)

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

Carsten Ziegeler resolved SLING-4095.
-
Resolution: Fixed

 Clean up code and logging statements
 

 Key: SLING-4095
 URL: https://issues.apache.org/jira/browse/SLING-4095
 Project: Sling
  Issue Type: Improvement
  Components: Extensions
Affects Versions: Event 3.4.0
Reporter: Carsten Ziegeler
Assignee: Carsten Ziegeler
 Fix For: Event 3.4.2


 We could clean up some unused code based on the refactorings done for the 
 3.4.0 release.
 In addition, some logging statements might have wrong log level or might be 
 missing.



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


[jira] [Resolved] (SLING-4096) Jobs might stay unprocessed when topology changes

2014-10-28 Thread Carsten Ziegeler (JIRA)

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

Carsten Ziegeler resolved SLING-4096.
-
Resolution: Fixed

 Jobs might stay unprocessed when topology changes
 -

 Key: SLING-4096
 URL: https://issues.apache.org/jira/browse/SLING-4096
 Project: Sling
  Issue Type: Bug
  Components: Extensions
Affects Versions: Event 3.4.0
Reporter: Carsten Ziegeler
Assignee: Carsten Ziegeler
Priority: Blocker
 Fix For: Event 3.4.2


 When the topology changes, the job manager stores all jobs in the unassigned 
 area - which is correct.
 When the topology is established, first a maintenance task moves the jobs out 
 of that area and assigns it to instances, then the job manager is informed 
 about the change of the topology. If the job manager is adding jobs in 
 between, these stay in the unassigned area.
 On the next change of the topology they get picked up though



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


[jira] [Updated] (SLING-3985) update dependency Sling Commons Threads to 3.2.0

2014-10-28 Thread Carsten Ziegeler (JIRA)

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

Carsten Ziegeler updated SLING-3985:

Fix Version/s: (was: Event 3.4.2)

 update dependency Sling Commons Threads to 3.2.0
 

 Key: SLING-3985
 URL: https://issues.apache.org/jira/browse/SLING-3985
 Project: Sling
  Issue Type: Improvement
  Components: Extensions
Affects Versions: Event 3.3.14
Reporter: Oliver Lietz
Assignee: Carsten Ziegeler
Priority: Minor
 Attachments: SLING-3985.patch






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


[jira] [Resolved] (SLING-3985) update dependency Sling Commons Threads to 3.2.0

2014-10-28 Thread Carsten Ziegeler (JIRA)

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

Carsten Ziegeler resolved SLING-3985.
-
Resolution: Won't Fix

Yes, I think that's the best for now, thanks

 update dependency Sling Commons Threads to 3.2.0
 

 Key: SLING-3985
 URL: https://issues.apache.org/jira/browse/SLING-3985
 Project: Sling
  Issue Type: Improvement
  Components: Extensions
Affects Versions: Event 3.3.14
Reporter: Oliver Lietz
Assignee: Carsten Ziegeler
Priority: Minor
 Attachments: SLING-3985.patch






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


[VOTE] Release Apache Sling Eventing 3.4.2

2014-10-28 Thread Carsten Ziegeler
Hi,

this vote is fixes some problems of the 3.4.0 release:
https://issues.apache.org/jira/browse/SLING/fixforversion/12328865

Staging repository:
https://repository.apache.org/content/repositories/orgapachesling-1145/

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 1145 /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
-- 
Carsten Ziegeler
Adobe Research Switzerland
cziege...@apache.org


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

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.event/373/



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

2014-10-28 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.8/changes



Jenkins build is back to normal : sling-trunk-1.6 #2718

2014-10-28 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.6/2718/changes



Jenkins build is back to stable : sling-trunk-1.6 » Apache Sling Models Integration Tests #2718

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.6/org.apache.sling$org.apache.sling.models.integration-tests/2718/



Jenkins build is back to normal : sling-trunk-1.6 » Apache Sling JAR Resource Bundle #2718

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.6/org.apache.sling$apache-sling-jar-resource-bundle/2718/



Jenkins build is back to normal : sling-trunk-1.6 » Apache Sling Health Check Webconsole Plugin #2718

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.6/org.apache.sling$org.apache.sling.hc.webconsole/2718/



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

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.event/374/changes



Jenkins build is back to stable : sling-trunk-1.8 #374

2014-10-28 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.8/374/changes



[jira] [Resolved] (SLING-4107) org.apache.sling.replication.util not exported

2014-10-28 Thread Tommaso Teofili (JIRA)

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

Tommaso Teofili resolved SLING-4107.

Resolution: Fixed

 org.apache.sling.replication.util not exported
 --

 Key: SLING-4107
 URL: https://issues.apache.org/jira/browse/SLING-4107
 Project: Sling
  Issue Type: Bug
  Components: Replication
Reporter: Laurie byrum

 ReplicationJcrUtils::isSafe is meant to be useable outside of the replication 
 bundle, I believe (as part of the fix for sling-3993). But it can't be used 
 because its package isn't listed in the Export-Package declaration in the 
 pom.



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


[jira] [Resolved] (SLING-3993) Avoiding loops when syncing via coordinate agents

2014-10-28 Thread Tommaso Teofili (JIRA)

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

Tommaso Teofili resolved SLING-3993.

Resolution: Fixed

this has been fixed by using jcr event triggers (as they rely on userData 
approach). 

 Avoiding loops when syncing via coordinate agents
 -

 Key: SLING-3993
 URL: https://issues.apache.org/jira/browse/SLING-3993
 Project: Sling
  Issue Type: Bug
  Components: Replication
Reporter: Tommaso Teofili
Assignee: Tommaso Teofili

 In the case of a 'coordinate agent', sitting on 'author' instance, 
 responsible for synchronizing 2+ 'publish' instances the simplest setup would 
 consist of a 'queueing agent' (local exporter, no importer) sitting on each 
 of the 'publish' instances with a trigger responsible of signaling changes of 
 resources under a certain path so that when, for example, a resource 'bar' 
 gets created under '/foo' the trigger will cause the creation of a package 
 for '/foo/bar' which will be queued locally, the 'coordinate agent' will 
 remotely fetch such a package from the queue of e.g. 'pub1' instance and 
 remotely import it into 'pub2' instance.
 If both 'pub1' and 'pub2' have the same trigger this may result into a 
 looping scenario when instances keep exchanging packages for the same changed 
 content.
 Possible solutions to this can be, conceptually, based on:
 1. identifying the source of the event that generates the replication so that 
 events on changed resources generated by the package builder (upon package 
 installation) are filtered and do not trigger a replication request.
 2. filtering packages before they get transported if a same/similar package 
 has been already sent by the target instance, keeping something a cache-like 
 structure for the communication (in the coordinate agent).



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


[jira] [Created] (SLING-4108) JCR/Sling/ResourceResolver Mock: Support providing authentication info

2014-10-28 Thread Stefan Seifert (JIRA)
Stefan Seifert created SLING-4108:
-

 Summary: JCR/Sling/ResourceResolver Mock: Support providing 
authentication info
 Key: SLING-4108
 URL: https://issues.apache.org/jira/browse/SLING-4108
 Project: Sling
  Issue Type: Improvement
  Components: Testing
Affects Versions: Testing Sling Mock 1.0.0, Testing JCR Mock 1.0.0, Testing 
ResourceResolver Mock 1.0.0
Reporter: Stefan Seifert
Assignee: Stefan Seifert
Priority: Minor
 Fix For: Testing ResourceResolver Mock 1.0.2, Testing JCR Mock 
1.0.2, Testing Sling Mock 1.0.2


currently it is not supported to pass custom authentication info to the mocked 
resource resolver/session.
this should be changed to optionally allow this, e.g. to simulate two different 
session/resource resolver with two different users.



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


[jira] [Resolved] (SLING-4108) JCR/Sling/ResourceResolver Mock: Support providing authentication info

2014-10-28 Thread Stefan Seifert (JIRA)

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

Stefan Seifert resolved SLING-4108.
---
Resolution: Fixed

Completed: At revision: 1634836  


 JCR/Sling/ResourceResolver Mock: Support providing authentication info
 --

 Key: SLING-4108
 URL: https://issues.apache.org/jira/browse/SLING-4108
 Project: Sling
  Issue Type: Improvement
  Components: Testing
Affects Versions: Testing ResourceResolver Mock 1.0.0, Testing JCR Mock 
 1.0.0, Testing Sling Mock 1.0.0
Reporter: Stefan Seifert
Assignee: Stefan Seifert
Priority: Minor
  Labels: mocks
 Fix For: Testing ResourceResolver Mock 1.0.2, Testing JCR Mock 
 1.0.2, Testing Sling Mock 1.0.2


 currently it is not supported to pass custom authentication info to the 
 mocked resource resolver/session.
 this should be changed to optionally allow this, e.g. to simulate two 
 different session/resource resolver with two different users.



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


Jenkins build became unstable: sling-trunk-1.8 » Apache Sling Event Support #375

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.event/375/



Jenkins build became unstable: sling-trunk-1.8 #375

2014-10-28 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.8/375/changes



[jira] [Commented] (SLING-4109) Use safe ids for replication packages such that an user cannot access random files on disk

2014-10-28 Thread Marius Petria (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-4109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14186693#comment-14186693
 ] 

Marius Petria commented on SLING-4109:
--

 use a wrapping package builder to hide true package ids
Committed revision 1634843.


 Use safe ids for replication packages such that an user cannot access random 
 files on disk
 --

 Key: SLING-4109
 URL: https://issues.apache.org/jira/browse/SLING-4109
 Project: Sling
  Issue Type: Improvement
  Components: Replication
Reporter: Marius Petria

 Currently the filevault packages ids are made out of file paths. We should 
 wrap those packages into something less revealing, like a path into the 
 repository.



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


Jenkins build is unstable: sling-oak-it-1.6 #222

2014-10-28 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-oak-it-1.6/222/



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

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.event/376/



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

2014-10-28 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.8/changes



[jira] [Commented] (SLING-4106) Cleanup Sling Replication APIs

2014-10-28 Thread Tommaso Teofili (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-4106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14186747#comment-14186747
 ] 

Tommaso Teofili commented on SLING-4106:


in r1634855: removed handlerId from triggers API and fixed some minor things in 
servlets, package builders and remote package exporter

 Cleanup Sling Replication APIs
 --

 Key: SLING-4106
 URL: https://issues.apache.org/jira/browse/SLING-4106
 Project: Sling
  Issue Type: Bug
  Components: Replication
Reporter: Tommaso Teofili
Assignee: Tommaso Teofili

 The Sling Replication API has evolved a lot since its inception so, before 
 the first release, it'd be good to perform a proper review and cleanup to 
 remove the methods / classes that are not needed, avoid exported packages 
 that do not need to be exposed.
 Also a good thing would be to separate the API itself in a separate bundle.



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


Jenkins build became unstable: sling-contrib-1.6 » Apache Sling Replication Integration Tests #1312

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.replication.it/1312/



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

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.jcr.repository.it-jackrabbit-oak/377/



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

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.event/377/



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

2014-10-28 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.8/changes



Re: [VOTE] Release Apache Sling Eventing 3.4.2

2014-10-28 Thread Robert Munteanu
+1

Robert

On Tue, Oct 28, 2014 at 9:09 AM, Carsten Ziegeler cziege...@apache.org wrote:
 Hi,

 this vote is fixes some problems of the 3.4.0 release:
 https://issues.apache.org/jira/browse/SLING/fixforversion/12328865

 Staging repository:
 https://repository.apache.org/content/repositories/orgapachesling-1145/

 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 1145 /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
 --
 Carsten Ziegeler
 Adobe Research Switzerland
 cziege...@apache.org


Jenkins build is back to stable : sling-trunk-1.8 » Apache Sling SlingRepository Integration Tests #378

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.jcr.repository.it-jackrabbit-oak/378/



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

2014-10-28 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.8/changes



Jenkins build became unstable: sling-trunk-1.8 » Apache Sling Event Support #378

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.event/378/



[jira] [Assigned] (SLING-4110) Content Navigator should not show .vlt files

2014-10-28 Thread Robert Munteanu (JIRA)

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

Robert Munteanu reassigned SLING-4110:
--

Assignee: Robert Munteanu

 Content Navigator should not show .vlt files
 

 Key: SLING-4110
 URL: https://issues.apache.org/jira/browse/SLING-4110
 Project: Sling
  Issue Type: Improvement
  Components: IDE
Affects Versions: Sling Eclipse IDE 1.0.4
Reporter: Robert Munteanu
Assignee: Robert Munteanu
 Fix For: Sling Eclipse IDE 1.0.6


 .vlt files are used by vlt to maintain information about the last recorded 
 status of checked out nodes IIRC.
 They serve no purpose in the content navigator and add visual clutter and 
 should therefore be hidden



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


[jira] [Created] (SLING-4110) Content Navigator should not show .vlt files

2014-10-28 Thread Robert Munteanu (JIRA)
Robert Munteanu created SLING-4110:
--

 Summary: Content Navigator should not show .vlt files
 Key: SLING-4110
 URL: https://issues.apache.org/jira/browse/SLING-4110
 Project: Sling
  Issue Type: Improvement
  Components: IDE
Affects Versions: Sling Eclipse IDE 1.0.4
Reporter: Robert Munteanu
 Fix For: Sling Eclipse IDE 1.0.6


.vlt files are used by vlt to maintain information about the last recorded 
status of checked out nodes IIRC.

They serve no purpose in the content navigator and add visual clutter and 
should therefore be hidden



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


ResourceWrapper issue with ResourceMetadata

2014-10-28 Thread Dominik Süß
Hi everybody,

I might have found a bug related to the changes of SLING-3848.
Due to some requirements some properties of a resource had to be moved to a
third location for the resources of one very specific contentbranch. Now I
do have a ResourceProvider that does nothing more then creating a
ResourceWrapper in the original location hiding the JCRNodeResource
underneath. As proposed by Carsten in another thread (see [0]) I solve the
problem of the locked JCRNodeResourceMetadata via creating a new Metadata
object and setting the entries via putAll() in the constructor of the own
Wrapper. At this point I get an exception caused by a node.getPrimaryItem()
call in JCRNodeResourceMetadata ([1] Line 164).

---
org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResource
setMetaData: Problem extracting metadata information for
/etc/mypath/jcr:content
javax.jcr.ItemNotFoundException: No primary item present on node
getPrimaryItem
---

I verified that this happens on oak based and jcr 2 based instances. I
don't know the exact mechanism of SLING-3848 [2], how that node is supposed
to behave and what the goal of that codefragment exactly is, but I expect
other consumers to fail as well since SuperImposingResource [3] actually is
doing the same (although in an own resource not a ResourceWrapper, but that
shouldn't be a difference in the constructor.

Any ideas what's going on here?

Best regards
Dominik

[0] http://markmail.org/thread/ortcft2vjjs2ukga
[1]
http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrNodeResourceMetadata.java
[2] https://issues.apache.org/jira/browse/SLING-3848
[3]
https://github.com/apache/sling/blob/trunk/contrib/extensions/superimposing/src/main/java/org/apache/sling/superimposing/impl/SuperimposingResource.java#L44


[jira] [Commented] (SLING-4110) Content Navigator should not show .vlt files

2014-10-28 Thread Robert Munteanu (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-4110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14186876#comment-14186876
 ] 

Robert Munteanu commented on SLING-4110:


Fixed in https://svn.apache.org/viewvc?view=revisionrevision=r1634883

 Content Navigator should not show .vlt files
 

 Key: SLING-4110
 URL: https://issues.apache.org/jira/browse/SLING-4110
 Project: Sling
  Issue Type: Improvement
  Components: IDE
Affects Versions: Sling Eclipse IDE 1.0.4
Reporter: Robert Munteanu
Assignee: Robert Munteanu
 Fix For: Sling Eclipse IDE 1.0.6


 .vlt files are used by vlt to maintain information about the last recorded 
 status of checked out nodes IIRC.
 They serve no purpose in the content navigator and add visual clutter and 
 should therefore be hidden



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


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

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.event/379/



[jira] [Created] (SLING-4111) SlingContext: default resourceresolver type not available

2014-10-28 Thread Honwai Wong (JIRA)
Honwai Wong created SLING-4111:
--

 Summary: SlingContext: default resourceresolver type not available
 Key: SLING-4111
 URL: https://issues.apache.org/jira/browse/SLING-4111
 Project: Sling
  Issue Type: Improvement
  Components: Testing
Affects Versions: Testing Sling Mock 1.0.0
Reporter: Honwai Wong
Priority: Minor


According to the Sling Mocks 
[documentation|http://sling.apache.org/documentation/development/sling-mock.html#resource-resolver-types],
 the {{RESOURCERESOLVER_MOCK}} resource resolver type is supposed to be the 
default. However, initializing the {{SlingContext}} test rule without any 
arguments, a RuntimeException is thrown:
{code}
java.lang.RuntimeException: Unable to initialize null resource resolver factory.
at 
org.apache.sling.testing.mock.sling.context.ContextResourceResolverFactory.get(ContextResourceResolverFactory.java:60)
at 
org.apache.sling.testing.mock.sling.context.SlingContextImpl.newResourceResolverFactory(SlingContextImpl.java:109)
at 
org.apache.sling.testing.mock.sling.context.SlingContextImpl.setUp(SlingContextImpl.java:101)
at 
org.apache.sling.testing.mock.sling.junit.SlingContext.access$000(SlingContext.java:32)
at 
org.apache.sling.testing.mock.sling.junit.SlingContext$1.before(SlingContext.java:170)
{code}

Attaching a patch which sets above resource resolver type as default.



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


Jenkins build is back to stable : sling-trunk-1.8 #379

2014-10-28 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.8/379/changes



[jira] [Updated] (SLING-4111) SlingContext: default resourceresolver type not available

2014-10-28 Thread Honwai Wong (JIRA)

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

Honwai Wong updated SLING-4111:
---
Attachment: ContextResourceResolverFactory.patch

 SlingContext: default resourceresolver type not available
 -

 Key: SLING-4111
 URL: https://issues.apache.org/jira/browse/SLING-4111
 Project: Sling
  Issue Type: Improvement
  Components: Testing
Affects Versions: Testing Sling Mock 1.0.0
Reporter: Honwai Wong
Priority: Minor
 Attachments: ContextResourceResolverFactory.patch


 According to the Sling Mocks 
 [documentation|http://sling.apache.org/documentation/development/sling-mock.html#resource-resolver-types],
  the {{RESOURCERESOLVER_MOCK}} resource resolver type is supposed to be the 
 default. However, initializing the {{SlingContext}} test rule without any 
 arguments, a RuntimeException is thrown:
 {code}
 java.lang.RuntimeException: Unable to initialize null resource resolver 
 factory.
   at 
 org.apache.sling.testing.mock.sling.context.ContextResourceResolverFactory.get(ContextResourceResolverFactory.java:60)
   at 
 org.apache.sling.testing.mock.sling.context.SlingContextImpl.newResourceResolverFactory(SlingContextImpl.java:109)
   at 
 org.apache.sling.testing.mock.sling.context.SlingContextImpl.setUp(SlingContextImpl.java:101)
   at 
 org.apache.sling.testing.mock.sling.junit.SlingContext.access$000(SlingContext.java:32)
   at 
 org.apache.sling.testing.mock.sling.junit.SlingContext$1.before(SlingContext.java:170)
 {code}
 Attaching a patch which sets above resource resolver type as default.



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


[jira] [Resolved] (SLING-4111) SlingContext: default resourceresolver type not available

2014-10-28 Thread Honwai Wong (JIRA)

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

Honwai Wong resolved SLING-4111.

   Resolution: Duplicate
Fix Version/s: Testing Sling Mock 1.0.2

Thanks Stefan, you are correct. Resolving duplicate.

 SlingContext: default resourceresolver type not available
 -

 Key: SLING-4111
 URL: https://issues.apache.org/jira/browse/SLING-4111
 Project: Sling
  Issue Type: Improvement
  Components: Testing
Affects Versions: Testing Sling Mock 1.0.0
Reporter: Honwai Wong
Priority: Minor
 Fix For: Testing Sling Mock 1.0.2

 Attachments: ContextResourceResolverFactory.patch


 According to the Sling Mocks 
 [documentation|http://sling.apache.org/documentation/development/sling-mock.html#resource-resolver-types],
  the {{RESOURCERESOLVER_MOCK}} resource resolver type is supposed to be the 
 default. However, initializing the {{SlingContext}} test rule without any 
 arguments, a RuntimeException is thrown:
 {code}
 java.lang.RuntimeException: Unable to initialize null resource resolver 
 factory.
   at 
 org.apache.sling.testing.mock.sling.context.ContextResourceResolverFactory.get(ContextResourceResolverFactory.java:60)
   at 
 org.apache.sling.testing.mock.sling.context.SlingContextImpl.newResourceResolverFactory(SlingContextImpl.java:109)
   at 
 org.apache.sling.testing.mock.sling.context.SlingContextImpl.setUp(SlingContextImpl.java:101)
   at 
 org.apache.sling.testing.mock.sling.junit.SlingContext.access$000(SlingContext.java:32)
   at 
 org.apache.sling.testing.mock.sling.junit.SlingContext$1.before(SlingContext.java:170)
 {code}
 Attaching a patch which sets above resource resolver type as default.



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


[jira] [Commented] (SLING-4111) SlingContext: default resourceresolver type not available

2014-10-28 Thread Stefan Seifert (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-4111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14186905#comment-14186905
 ] 

Stefan Seifert commented on SLING-4111:
---

i think this is a duplicate of SLING-4085, already fixed in trunk.
please cross-check.

 SlingContext: default resourceresolver type not available
 -

 Key: SLING-4111
 URL: https://issues.apache.org/jira/browse/SLING-4111
 Project: Sling
  Issue Type: Improvement
  Components: Testing
Affects Versions: Testing Sling Mock 1.0.0
Reporter: Honwai Wong
Priority: Minor
 Attachments: ContextResourceResolverFactory.patch


 According to the Sling Mocks 
 [documentation|http://sling.apache.org/documentation/development/sling-mock.html#resource-resolver-types],
  the {{RESOURCERESOLVER_MOCK}} resource resolver type is supposed to be the 
 default. However, initializing the {{SlingContext}} test rule without any 
 arguments, a RuntimeException is thrown:
 {code}
 java.lang.RuntimeException: Unable to initialize null resource resolver 
 factory.
   at 
 org.apache.sling.testing.mock.sling.context.ContextResourceResolverFactory.get(ContextResourceResolverFactory.java:60)
   at 
 org.apache.sling.testing.mock.sling.context.SlingContextImpl.newResourceResolverFactory(SlingContextImpl.java:109)
   at 
 org.apache.sling.testing.mock.sling.context.SlingContextImpl.setUp(SlingContextImpl.java:101)
   at 
 org.apache.sling.testing.mock.sling.junit.SlingContext.access$000(SlingContext.java:32)
   at 
 org.apache.sling.testing.mock.sling.junit.SlingContext$1.before(SlingContext.java:170)
 {code}
 Attaching a patch which sets above resource resolver type as default.



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


Jenkins build became unstable: sling-trunk-1.8 » Apache Sling Event Support #380

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.event/380/



Jenkins build became unstable: sling-trunk-1.8 #380

2014-10-28 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.8/380/changes



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

2014-10-28 Thread Stefan Seifert (JIRA)

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

Stefan Seifert updated SLING-4112:
--
Attachment: 141028_adaptto_jprofiler_slingmodels_getannotation.gif
141028_adaptto_jprofiler_slingmodels.gif

 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
Priority: Minor
  Labels: models
 Fix For: Sling Models Impl 1.2.0

 Attachments: 141028_adaptto_jprofiler_slingmodels.gif, 
 141028_adaptto_jprofiler_slingmodels_getannotation.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)


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

2014-10-28 Thread Stefan Seifert (JIRA)
Stefan Seifert created SLING-4112:
-

 Summary: 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
Priority: Minor
 Fix For: Sling Models Impl 1.2.0
 Attachments: 141028_adaptto_jprofiler_slingmodels.gif, 
141028_adaptto_jprofiler_slingmodels_getannotation.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)


[jira] [Created] (SLING-4113) Importing resources triggers spurios publish events when missing parent folders are created

2014-10-28 Thread Robert Munteanu (JIRA)
Robert Munteanu created SLING-4113:
--

 Summary: Importing resources triggers spurios publish events when 
missing parent folders are created
 Key: SLING-4113
 URL: https://issues.apache.org/jira/browse/SLING-4113
 Project: Sling
  Issue Type: Improvement
  Components: IDE
Affects Versions: Sling Eclipse IDE 1.0.4
Reporter: Robert Munteanu
Assignee: Robert Munteanu
 Fix For: Sling Eclipse IDE 1.0.6


This seems to be the reason behind the following non-random test failure:

{noformat}Error Message

Unexpected events captured during import :  AddOrUpdateNodeCommand - 
/content/test-root/folder/jcr:content : JcrResult[ success:true] 
ReorderChildNodesCommand - /content/test-root/folder/jcr:content : JcrResult[ 
success:true]

Stacktrace

java.lang.AssertionError: Unexpected events captured during import : 
AddOrUpdateNodeCommand - /content/test-root/folder/jcr:content : JcrResult[ 
success:true]
ReorderChildNodesCommand - /content/test-root/folder/jcr:content : JcrResult[ 
success:true]
at org.junit.Assert.fail(Assert.java:88)
at 
org.apache.sling.ide.test.impl.helpers.FailOnModificationEventsRule.after(FailOnModificationEventsRule.java:99)
at 
org.apache.sling.ide.test.impl.helpers.FailOnModificationEventsRule$1.evaluate(FailOnModificationEventsRule.java:61)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at 
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at 
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at 
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:123)
at 
org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:87)
at 
org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication.runTests(AbstractUITestApplication.java:44)
at 
org.eclipse.e4.ui.internal.workbench.swt.E4Testable$1.run(E4Testable.java:72)
at java.lang.Thread.run(Thread.java:662)
{noformat}



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


[jira] [Resolved] (SLING-4113) Importing resources triggers spurios publish events when missing parent folders are created

2014-10-28 Thread Robert Munteanu (JIRA)

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

Robert Munteanu resolved SLING-4113.

Resolution: Fixed

Fixed in https://svn.apache.org/r1634904

 Importing resources triggers spurios publish events when missing parent 
 folders are created
 ---

 Key: SLING-4113
 URL: https://issues.apache.org/jira/browse/SLING-4113
 Project: Sling
  Issue Type: Improvement
  Components: IDE
Affects Versions: Sling Eclipse IDE 1.0.4
Reporter: Robert Munteanu
Assignee: Robert Munteanu
 Fix For: Sling Eclipse IDE 1.0.6


 This seems to be the reason behind the following non-random test failure:
 {noformat}Error Message
 Unexpected events captured during import :  AddOrUpdateNodeCommand - 
 /content/test-root/folder/jcr:content : JcrResult[ success:true] 
 ReorderChildNodesCommand - /content/test-root/folder/jcr:content : 
 JcrResult[ success:true]
 Stacktrace
 java.lang.AssertionError: Unexpected events captured during import : 
 AddOrUpdateNodeCommand - /content/test-root/folder/jcr:content : JcrResult[ 
 success:true]
 ReorderChildNodesCommand - /content/test-root/folder/jcr:content : 
 JcrResult[ success:true]
   at org.junit.Assert.fail(Assert.java:88)
   at 
 org.apache.sling.ide.test.impl.helpers.FailOnModificationEventsRule.after(FailOnModificationEventsRule.java:99)
   at 
 org.apache.sling.ide.test.impl.helpers.FailOnModificationEventsRule$1.evaluate(FailOnModificationEventsRule.java:61)
   at org.junit.rules.RunRules.evaluate(RunRules.java:20)
   at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
   at 
 org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
   at 
 org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
   at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
   at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
   at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
   at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
   at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
   at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
   at 
 org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
   at 
 org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
   at 
 org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
   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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
   at 
 org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
   at 
 org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
   at 
 org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:123)
   at 
 org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:87)
   at 
 org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication.runTests(AbstractUITestApplication.java:44)
   at 
 org.eclipse.e4.ui.internal.workbench.swt.E4Testable$1.run(E4Testable.java:72)
   at java.lang.Thread.run(Thread.java:662)
 {noformat}



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


Jenkins build became unstable: sling-contrib-1.6 » Apache Sling Replication Integration Tests #1314

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.replication.it/1314/changes



[jira] [Commented] (SLING-3781) Fix unstable Eclipse-based tests

2014-10-28 Thread Robert Munteanu (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-3781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14187011#comment-14187011
 ] 

Robert Munteanu commented on SLING-3781:


Tweaked ContentImportTest.importFilesAndFoldersRespectsVltFilters to be more 
stable in relation to full publish events in 
https://svn.apache.org/viewvc?view=revisionrevision=1634905  

 Fix unstable Eclipse-based tests
 

 Key: SLING-3781
 URL: https://issues.apache.org/jira/browse/SLING-3781
 Project: Sling
  Issue Type: Test
  Components: IDE, Testing
Affects Versions: Sling Eclipse IDE 1.0.2
Reporter: Robert Munteanu
Assignee: Robert Munteanu
 Fix For: Sling Eclipse IDE 1.0.6


 The eclipse-based tests from the eclipse-test project don't always pass. 
 These are likely timing issues, but they result in lower confidence in their 
 ability to catch regression tests.
 Here's what I have so far:
 * 
 importFilesAndFoldersRespectsVltFilters(org.apache.sling.ide.test.impl.ContentImportTest):
  Unable to update a stale item: item.save()
 * 
 importFilesWithExtraNodesUnderJcrContent(org.apache.sling.ide.test.impl.ContentImportTest):
  Unable to update a stale item: item.save()
 * 
 deploySlingOrderedFolderWithJcrContentNode(org.apache.sling.ide.test.impl.JcrPartialCoverageAggregatesDeploymentTest):
  javax.jcr.PathNotFoundException: /content/test-root
 * 
 deployFileWithAttachedMetadata(org.apache.sling.ide.test.impl.ContentDeploymentTest):
  javax.jcr.PathNotFoundException: /test/hello.esp
 * deployFile(org.apache.sling.ide.test.impl.ContentDeploymentTest): 
 Unexpected status call for http://localhost:40325/test/hello.txt
 * 
 deployNodeWithContentXmlInParentFolder_reverse(org.apache.sling.ide.test.impl.JcrPartialCoverageAggregatesDeploymentTest):
  javax.jcr.PathNotFoundException: 
 /content/test-root/mapping/jcr:content/par/folder
 * 
 changeNodePrimaryType(org.apache.sling.ide.test.impl.ContentDeploymentTest): 
 javax.jcr.PathNotFoundException: /test
 * importFullCoverageNode(org.apache.sling.ide.test.impl.ContentImportTest): 
 Unexpected events captured during import : 



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


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

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.event/381/



Build failed in Jenkins: sling-trunk-1.8 » Apache Sling Launchpad Testing Services #381

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.launchpad.test-services/381/changes

Changes:

[bdelacretaz] SLING-4058 - don't faill all tests if one times out

--
[INFO] 
[INFO] 
[INFO] Building Apache Sling Launchpad Testing Services 2.0.9-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ 
org.apache.sling.launchpad.test-services ---
[INFO] Deleting 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.launchpad.test-services/ws/target
[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-java) @ 
org.apache.sling.launchpad.test-services ---
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run 
(set-bundle-required-execution-environment) @ 
org.apache.sling.launchpad.test-services ---
[INFO] Executing tasks

main:
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ 
org.apache.sling.launchpad.test-services ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
org.apache.sling.launchpad.test-services ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (check-memory-task) @ 
org.apache.sling.launchpad.test-services ---
[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) @ 
org.apache.sling.launchpad.test-services ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 51 source files to 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.launchpad.test-services/ws/target/classes
[INFO] -
[WARNING] COMPILATION WARNING : 
[INFO] -
[WARNING] 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.launchpad.test-services/ws/src/main/java/org/apache/sling/launchpad/testservices/servlets/HtmlResponseServlet.java:
 Some input files use or override a deprecated API.
[WARNING] 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.launchpad.test-services/ws/src/main/java/org/apache/sling/launchpad/testservices/servlets/HtmlResponseServlet.java:
 Recompile with -Xlint:deprecation for details.
[INFO] 2 warnings 
[INFO] -
[INFO] -
[ERROR] COMPILATION ERROR : 
[INFO] -
[ERROR] 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.launchpad.test-services/ws/src/main/java/org/apache/sling/launchpad/testservices/serversidetests/ResourceResolverTest.java:[149,9]
 cannot find symbol
  symbol:   variable saveMappingsError
  location: class 
org.apache.sling.launchpad.testservices.serversidetests.ResourceResolverTest
[INFO] 1 error
[INFO] -
[JENKINS] Archiving disabled


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

2014-10-28 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.8/381/changes

Changes:

[tommaso] SLING-4106 - minor fixes on javadoc, AL headers, releasing of 
resources, typos

[bdelacretaz] SLING-4058 - don't faill all tests if one times out

--
[...truncated 52108 lines...]
[INFO] Apache Sling OSGi LogService Implementation ... SUCCESS [3.640s]
[INFO] Apache Sling MIME type mapping support  SUCCESS [5.878s]
[INFO] Apache Sling Commons OSGi support . SUCCESS [5.852s]
[INFO] Apache Sling Scheduler Support  SUCCESS [4.061s]
[INFO] Apache Sling Testing Utilities  SUCCESS [12.540s]
[INFO] Apache Sling Thread Dumper  SUCCESS [5.110s]
[INFO] Apache Sling Thread Support ... SUCCESS [5.013s]
[INFO] Apache Sling Authentication Service ... SUCCESS [8.480s]
[INFO] Apache Sling Form Based Authentication Handler  SUCCESS [9.017s]
[INFO] Apache Sling Engine Implementation  SUCCESS [17.371s]
[INFO] Apache Sling Repository API Bundle  SUCCESS [4.830s]
[INFO] Apache Sling JCR Base Bundle .. SUCCESS [5.922s]
[INFO] Apache Sling JCR ClassLoader .. SUCCESS [5.223s]
[INFO] Apache Sling Initial Content Loader ... SUCCESS [5.921s]
[INFO] Apache Sling Jackrabbit Embedded Repository ... SUCCESS [13.758s]
[INFO] Apache Sling Jackrabbit UserManager Support ... SUCCESS [5.518s]
[INFO] Apache Sling Jackrabbit JSR-283 Access Control Manager Support  SUCCESS 
[5.291s]
[INFO] Apache Sling Wrapper Bundle for the JCR API ... SUCCESS [3.339s]
[INFO] Apache Sling JCR Resource Resolver  SUCCESS [30.523s]
[INFO] Apache Sling JCR Repository Registration .. SUCCESS [6.536s]
[INFO] Apache Sling Simple WebDAV Access to repositories . SUCCESS [5.446s]
[INFO] Apache Sling DavEx Access to repositories . SUCCESS [6.133s]
[INFO] Apache Sling JCR WebConsole Bundle  SUCCESS [5.192s]
[INFO] Apache Sling Oak Repository Server  SUCCESS [5.694s]
[INFO] Apache Sling SlingRepository Integration Tests  SUCCESS [47.148s]
[INFO] Apache Sling Servlet Resolver . SUCCESS [8.429s]
[INFO] Apache Sling Default GET Servlets . SUCCESS [7.690s]
[INFO] Apache Sling Default POST Servlets  SUCCESS [6.622s]
[INFO] Apache Sling Compat Servlets .. SUCCESS [3.642s]
[INFO] Apache Sling Scripting Implementation API . SUCCESS [5.286s]
[INFO] Apache Sling Scripting Core implementation  SUCCESS [14.019s]
[INFO] Apache Sling Scripting JavaScript Support . SUCCESS [14.251s]
[INFO] Apache Sling Scripting JSP Support  SUCCESS [8.768s]
[INFO] Apache Sling JSP Tag Library .. SUCCESS [8.263s]
[INFO] Apache Sling JSP Standard Tag Library . SUCCESS [3.204s]
[INFO] Apache Sling Adapter Manager Implementation ... SUCCESS [4.207s]
[INFO] Apache Sling Bundle Resource Provider . SUCCESS [5.008s]
[INFO] Apache Sling Distributed Event Admin .. SUCCESS [8.850s]
[INFO] Apache Sling Discovery API  SUCCESS [3.890s]
[INFO] Apache Sling Resource-Based Discovery Service . SUCCESS [2:39.666s]
[INFO] Apache Sling Discovery Support Bundle . SUCCESS [3.883s]
[INFO] Apache Sling Discovery Standalone Implementation .. SUCCESS [3.491s]
[INFO] Apache Sling Event Support  SUCCESS [10:21.297s]
[INFO] Apache Sling Feature Flags  SUCCESS [3.595s]
[INFO] Apache Sling Filesystem Resource Provider . SUCCESS [5.245s]
[INFO] Apache Sling javax.activation bundle .. SUCCESS [4.982s]
[INFO] Apache Sling Service User Mapper .. SUCCESS [8.695s]
[INFO] Apache Sling Settings . SUCCESS [5.453s]
[INFO] Apache Sling Web Console Branding . SUCCESS [5.122s]
[INFO] Apache Sling Web Console Security Provider  SUCCESS [4.878s]
[INFO] Apache Sling Explorer . SUCCESS [3.307s]
[INFO] Apache Sling Health Check Core  SUCCESS [10.879s]
[INFO] Apache Sling Health Check Annotations . SUCCESS [3.515s]
[INFO] Apache Sling Health Check Samples . SUCCESS [6.085s]
[INFO] Apache Sling Health Check Support Components .. SUCCESS [5.687s]
[INFO] Apache Sling Health Check Webconsole Plugin ... SUCCESS [3.627s]
[INFO] Apache Sling Health Check JUnit Bridge  SUCCESS [5.559s]
[INFO] Apache Sling Health Check Integration Tests ... SUCCESS [17.657s]
[INFO] Apache Sling Health Check Reactor POM . SUCCESS [2.837s]
[INFO] Apache Sling Resource Access Security . SUCCESS [3.825s]
[INFO] Apache Sling Resource Access Security Integration Tests  SUCCESS 
[26.590s]
[INFO] Apache Sling 

Build failed in Jenkins: sling-trunk-1.7 » Apache Sling Launchpad Testing Services #1097

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.7/org.apache.sling$org.apache.sling.launchpad.test-services/1097/changes

Changes:

[bdelacretaz] SLING-4058 - don't faill all tests if one times out

--
[INFO] 
[INFO] 
[INFO] Building Apache Sling Launchpad Testing Services 2.0.9-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ 
org.apache.sling.launchpad.test-services ---
[INFO] Deleting 
https://builds.apache.org/job/sling-trunk-1.7/org.apache.sling$org.apache.sling.launchpad.test-services/ws/target
[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-java) @ 
org.apache.sling.launchpad.test-services ---
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run 
(set-bundle-required-execution-environment) @ 
org.apache.sling.launchpad.test-services ---
[INFO] Executing tasks

main:
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ 
org.apache.sling.launchpad.test-services ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
org.apache.sling.launchpad.test-services ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (check-memory-task) @ 
org.apache.sling.launchpad.test-services ---
[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) @ 
org.apache.sling.launchpad.test-services ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 51 source files to 
https://builds.apache.org/job/sling-trunk-1.7/org.apache.sling$org.apache.sling.launchpad.test-services/ws/target/classes
[INFO] -
[WARNING] COMPILATION WARNING : 
[INFO] -
[WARNING] 
https://builds.apache.org/job/sling-trunk-1.7/org.apache.sling$org.apache.sling.launchpad.test-services/ws/src/main/java/org/apache/sling/launchpad/testservices/servlets/HtmlResponseServlet.java:
 Some input files use or override a deprecated API.
[WARNING] 
https://builds.apache.org/job/sling-trunk-1.7/org.apache.sling$org.apache.sling.launchpad.test-services/ws/src/main/java/org/apache/sling/launchpad/testservices/servlets/HtmlResponseServlet.java:
 Recompile with -Xlint:deprecation for details.
[INFO] 2 warnings 
[INFO] -
[INFO] -
[ERROR] COMPILATION ERROR : 
[INFO] -
[ERROR] 
https://builds.apache.org/job/sling-trunk-1.7/org.apache.sling$org.apache.sling.launchpad.test-services/ws/src/main/java/org/apache/sling/launchpad/testservices/serversidetests/ResourceResolverTest.java:[149,9]
 cannot find symbol
  symbol:   variable saveMappingsError
  location: class 
org.apache.sling.launchpad.testservices.serversidetests.ResourceResolverTest
[INFO] 1 error
[INFO] -
[JENKINS] Archiving disabled


[jira] [Resolved] (SLING-4051) Warning about unset VLT package version when using Sling replication

2014-10-28 Thread Tommaso Teofili (JIRA)

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

Tommaso Teofili resolved SLING-4051.

Resolution: Fixed

explicitly creating the version as of r1634907

 Warning about unset VLT package version when using Sling replication
 

 Key: SLING-4051
 URL: https://issues.apache.org/jira/browse/SLING-4051
 Project: Sling
  Issue Type: Bug
  Components: Replication
Reporter: Laurie byrum
Assignee: Tommaso Teofili

 I use the following code to replicate:
 @Reference(target = (name=blah-reverse), policy = 
 ReferencePolicy.DYNAMIC,
 cardinality = ReferenceCardinality.OPTIONAL_UNARY)
 ReplicationAgent replicationAgent;
 private void reverseReplicate(String path) throws 
 AgentReplicationException {
 if (replicationAgent != null) {
 ReplicationRequest replicationRequest = new ReplicationRequest(0, 
 ReplicationActionType.ADD, path);
 replicationAgent.execute(replicationRequest);
 }
 }
 I get the following warning in my log when that happens: 
 14.10.2014 14:13:54.544 *WARN* [0:0:0:0:0:0:0:1 [1413321186378] POST blah 
 HTTP/1.1] org.apache.jackrabbit.vault.packaging.impl.PackagePropertiesImpl 
 Package does not specify a version. setting to ''



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


Build failed in Jenkins: sling-trunk-1.8 » Apache Sling Launchpad Testing Services #382

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.launchpad.test-services/382/

--
[INFO] 
[INFO] 
[INFO] Building Apache Sling Launchpad Testing Services 2.0.9-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ 
org.apache.sling.launchpad.test-services ---
[INFO] Deleting 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.launchpad.test-services/ws/target
[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-java) @ 
org.apache.sling.launchpad.test-services ---
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run 
(set-bundle-required-execution-environment) @ 
org.apache.sling.launchpad.test-services ---
[INFO] Executing tasks

main:
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ 
org.apache.sling.launchpad.test-services ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
org.apache.sling.launchpad.test-services ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (check-memory-task) @ 
org.apache.sling.launchpad.test-services ---
[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) @ 
org.apache.sling.launchpad.test-services ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 51 source files to 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.launchpad.test-services/ws/target/classes
[INFO] -
[WARNING] COMPILATION WARNING : 
[INFO] -
[WARNING] 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.launchpad.test-services/ws/src/main/java/org/apache/sling/launchpad/testservices/servlets/HtmlResponseServlet.java:
 Some input files use or override a deprecated API.
[WARNING] 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.launchpad.test-services/ws/src/main/java/org/apache/sling/launchpad/testservices/servlets/HtmlResponseServlet.java:
 Recompile with -Xlint:deprecation for details.
[INFO] 2 warnings 
[INFO] -
[INFO] -
[ERROR] COMPILATION ERROR : 
[INFO] -
[ERROR] 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.launchpad.test-services/ws/src/main/java/org/apache/sling/launchpad/testservices/serversidetests/ResourceResolverTest.java:[149,9]
 cannot find symbol
  symbol:   variable saveMappingsError
  location: class 
org.apache.sling.launchpad.testservices.serversidetests.ResourceResolverTest
[INFO] 1 error
[INFO] -
[JENKINS] Archiving disabled


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

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.event/382/



Build failed in Jenkins: sling-trunk-1.7 » Apache Sling Launchpad Testing Services #1098

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.7/org.apache.sling$org.apache.sling.launchpad.test-services/1098/

--
[INFO] 
[INFO] 
[INFO] Building Apache Sling Launchpad Testing Services 2.0.9-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ 
org.apache.sling.launchpad.test-services ---
[INFO] Deleting 
https://builds.apache.org/job/sling-trunk-1.7/org.apache.sling$org.apache.sling.launchpad.test-services/ws/target
[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-java) @ 
org.apache.sling.launchpad.test-services ---
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run 
(set-bundle-required-execution-environment) @ 
org.apache.sling.launchpad.test-services ---
[INFO] Executing tasks

main:
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ 
org.apache.sling.launchpad.test-services ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
org.apache.sling.launchpad.test-services ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (check-memory-task) @ 
org.apache.sling.launchpad.test-services ---
[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) @ 
org.apache.sling.launchpad.test-services ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 51 source files to 
https://builds.apache.org/job/sling-trunk-1.7/org.apache.sling$org.apache.sling.launchpad.test-services/ws/target/classes
[INFO] -
[WARNING] COMPILATION WARNING : 
[INFO] -
[WARNING] 
https://builds.apache.org/job/sling-trunk-1.7/org.apache.sling$org.apache.sling.launchpad.test-services/ws/src/main/java/org/apache/sling/launchpad/testservices/servlets/HtmlResponseServlet.java:
 Some input files use or override a deprecated API.
[WARNING] 
https://builds.apache.org/job/sling-trunk-1.7/org.apache.sling$org.apache.sling.launchpad.test-services/ws/src/main/java/org/apache/sling/launchpad/testservices/servlets/HtmlResponseServlet.java:
 Recompile with -Xlint:deprecation for details.
[INFO] 2 warnings 
[INFO] -
[INFO] -
[ERROR] COMPILATION ERROR : 
[INFO] -
[ERROR] 
https://builds.apache.org/job/sling-trunk-1.7/org.apache.sling$org.apache.sling.launchpad.test-services/ws/src/main/java/org/apache/sling/launchpad/testservices/serversidetests/ResourceResolverTest.java:[149,9]
 cannot find symbol
  symbol:   variable saveMappingsError
  location: class 
org.apache.sling.launchpad.testservices.serversidetests.ResourceResolverTest
[INFO] 1 error
[INFO] -
[JENKINS] Archiving disabled


Build failed in Jenkins: sling-trunk-1.7 #1098

2014-10-28 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.7/1098/changes

Changes:

[tommaso] SLING-3891 - added HTTP api documentation (wip)

[tommaso] SLING-4106 - minor fixes to javadoc, AL headers

[rombert] SLING-3781 - Fix unstable Eclipse-based tests

Tweak ContentImportTest.importFilesAndFoldersRespectsVltFilters so that
events generated by the initial publish are ignored when looking for
unexpected publishing operations.

[rombert] SLING-4113 - Importing resources triggers spurios publish events when
missing parent folders are created

Ensure that ImportRepositoryContentAction.createParents set the import
modification property so its changes are ignored.

[rombert] SLING-4110 - Content Navigator should not show .vlt files

--
[...truncated 50298 lines...]
[INFO] Apache Sling SLF4J Implementation (Logback) ... SUCCESS [30.719s]
[INFO] Apache Sling OSGi LogService Implementation ... SUCCESS [3.700s]
[INFO] Apache Sling MIME type mapping support  SUCCESS [7.843s]
[INFO] Apache Sling Commons OSGi support . SUCCESS [12.158s]
[INFO] Apache Sling Scheduler Support  SUCCESS [7.298s]
[INFO] Apache Sling Testing Utilities  SUCCESS [15.146s]
[INFO] Apache Sling Thread Dumper  SUCCESS [3.364s]
[INFO] Apache Sling Thread Support ... SUCCESS [3.509s]
[INFO] Apache Sling Authentication Service ... SUCCESS [5.635s]
[INFO] Apache Sling Form Based Authentication Handler  SUCCESS [8.448s]
[INFO] Apache Sling Engine Implementation  SUCCESS [17.860s]
[INFO] Apache Sling Repository API Bundle  SUCCESS [3.648s]
[INFO] Apache Sling JCR Base Bundle .. SUCCESS [6.585s]
[INFO] Apache Sling JCR ClassLoader .. SUCCESS [5.110s]
[INFO] Apache Sling Initial Content Loader ... SUCCESS [6.327s]
[INFO] Apache Sling Jackrabbit Embedded Repository ... SUCCESS [16.658s]
[INFO] Apache Sling Jackrabbit UserManager Support ... SUCCESS [5.600s]
[INFO] Apache Sling Jackrabbit JSR-283 Access Control Manager Support  SUCCESS 
[4.000s]
[INFO] Apache Sling Wrapper Bundle for the JCR API ... SUCCESS [3.762s]
[INFO] Apache Sling JCR Resource Resolver  SUCCESS [26.108s]
[INFO] Apache Sling JCR Repository Registration .. SUCCESS [9.087s]
[INFO] Apache Sling Simple WebDAV Access to repositories . SUCCESS [3.822s]
[INFO] Apache Sling DavEx Access to repositories . SUCCESS [6.223s]
[INFO] Apache Sling JCR WebConsole Bundle  SUCCESS [5.427s]
[INFO] Apache Sling Oak Repository Server  SUCCESS [6.184s]
[INFO] Apache Sling SlingRepository Integration Tests  SUCCESS [51.348s]
[INFO] Apache Sling Servlet Resolver . SUCCESS [8.600s]
[INFO] Apache Sling Default GET Servlets . SUCCESS [8.483s]
[INFO] Apache Sling Default POST Servlets  SUCCESS [8.541s]
[INFO] Apache Sling Compat Servlets .. SUCCESS [5.411s]
[INFO] Apache Sling Scripting Implementation API . SUCCESS [5.521s]
[INFO] Apache Sling Scripting Core implementation  SUCCESS [17.170s]
[INFO] Apache Sling Scripting JavaScript Support . SUCCESS [14.330s]
[INFO] Apache Sling Scripting JSP Support  SUCCESS [11.154s]
[INFO] Apache Sling JSP Tag Library .. SUCCESS [8.544s]
[INFO] Apache Sling JSP Standard Tag Library . SUCCESS [5.463s]
[INFO] Apache Sling Adapter Manager Implementation ... SUCCESS [5.514s]
[INFO] Apache Sling Bundle Resource Provider . SUCCESS [3.440s]
[INFO] Apache Sling Distributed Event Admin .. SUCCESS [9.072s]
[INFO] Apache Sling Discovery API  SUCCESS [3.743s]
[INFO] Apache Sling Resource-Based Discovery Service . SUCCESS [2:47.840s]
[INFO] Apache Sling Discovery Support Bundle . SUCCESS [3.268s]
[INFO] Apache Sling Discovery Standalone Implementation .. SUCCESS [3.253s]
[INFO] Apache Sling Event Support  SUCCESS [11:12.228s]
[INFO] Apache Sling Feature Flags  SUCCESS [3.281s]
[INFO] Apache Sling Filesystem Resource Provider . SUCCESS [3.101s]
[INFO] Apache Sling javax.activation bundle .. SUCCESS [4.796s]
[INFO] Apache Sling Service User Mapper .. SUCCESS [6.759s]
[INFO] Apache Sling Settings . SUCCESS [4.307s]
[INFO] Apache Sling Web Console Branding . SUCCESS [4.772s]
[INFO] Apache Sling Web Console Security Provider  SUCCESS [3.533s]
[INFO] Apache Sling Explorer . SUCCESS [3.089s]
[INFO] Apache Sling Health Check Core  SUCCESS [9.216s]
[INFO] Apache Sling Health Check Annotations . SUCCESS [4.753s]
[INFO] Apache Sling Health Check Samples . 

Jenkins build became unstable: sling-trunk-1.8 » Apache Sling Event Support #383

2014-10-28 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.event/383/



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

2014-10-28 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.8/383/changes

Changes:

[tommaso] SLING-3891 - added HTTP api documentation (wip)

--
[...truncated 51812 lines...]
[INFO] Apache Sling OSGi LogService Implementation ... SUCCESS [3.689s]
[INFO] Apache Sling MIME type mapping support  SUCCESS [8.021s]
[INFO] Apache Sling Commons OSGi support . SUCCESS [6.202s]
[INFO] Apache Sling Scheduler Support  SUCCESS [4.100s]
[INFO] Apache Sling Testing Utilities  SUCCESS [12.570s]
[INFO] Apache Sling Thread Dumper  SUCCESS [5.388s]
[INFO] Apache Sling Thread Support ... SUCCESS [5.208s]
[INFO] Apache Sling Authentication Service ... SUCCESS [8.253s]
[INFO] Apache Sling Form Based Authentication Handler  SUCCESS [9.035s]
[INFO] Apache Sling Engine Implementation  SUCCESS [18.206s]
[INFO] Apache Sling Repository API Bundle  SUCCESS [5.035s]
[INFO] Apache Sling JCR Base Bundle .. SUCCESS [5.706s]
[INFO] Apache Sling JCR ClassLoader .. SUCCESS [5.170s]
[INFO] Apache Sling Initial Content Loader ... SUCCESS [6.421s]
[INFO] Apache Sling Jackrabbit Embedded Repository ... SUCCESS [15.123s]
[INFO] Apache Sling Jackrabbit UserManager Support ... SUCCESS [5.986s]
[INFO] Apache Sling Jackrabbit JSR-283 Access Control Manager Support  SUCCESS 
[7.970s]
[INFO] Apache Sling Wrapper Bundle for the JCR API ... SUCCESS [4.993s]
[INFO] Apache Sling JCR Resource Resolver  SUCCESS [39.494s]
[INFO] Apache Sling JCR Repository Registration .. SUCCESS [3.994s]
[INFO] Apache Sling Simple WebDAV Access to repositories . SUCCESS [4.147s]
[INFO] Apache Sling DavEx Access to repositories . SUCCESS [6.781s]
[INFO] Apache Sling JCR WebConsole Bundle  SUCCESS [3.605s]
[INFO] Apache Sling Oak Repository Server  SUCCESS [5.744s]
[INFO] Apache Sling SlingRepository Integration Tests  SUCCESS [46.002s]
[INFO] Apache Sling Servlet Resolver . SUCCESS [6.175s]
[INFO] Apache Sling Default GET Servlets . SUCCESS [8.591s]
[INFO] Apache Sling Default POST Servlets  SUCCESS [9.141s]
[INFO] Apache Sling Compat Servlets .. SUCCESS [4.181s]
[INFO] Apache Sling Scripting Implementation API . SUCCESS [3.065s]
[INFO] Apache Sling Scripting Core implementation  SUCCESS [14.175s]
[INFO] Apache Sling Scripting JavaScript Support . SUCCESS [14.179s]
[INFO] Apache Sling Scripting JSP Support  SUCCESS [8.579s]
[INFO] Apache Sling JSP Tag Library .. SUCCESS [9.345s]
[INFO] Apache Sling JSP Standard Tag Library . SUCCESS [3.550s]
[INFO] Apache Sling Adapter Manager Implementation ... SUCCESS [5.759s]
[INFO] Apache Sling Bundle Resource Provider . SUCCESS [3.453s]
[INFO] Apache Sling Distributed Event Admin .. SUCCESS [8.631s]
[INFO] Apache Sling Discovery API  SUCCESS [5.361s]
[INFO] Apache Sling Resource-Based Discovery Service . SUCCESS [2:44.896s]
[INFO] Apache Sling Discovery Support Bundle . SUCCESS [3.570s]
[INFO] Apache Sling Discovery Standalone Implementation .. SUCCESS [5.378s]
[INFO] Apache Sling Event Support  SUCCESS [10:41.975s]
[INFO] Apache Sling Feature Flags  SUCCESS [3.934s]
[INFO] Apache Sling Filesystem Resource Provider . SUCCESS [6.059s]
[INFO] Apache Sling javax.activation bundle .. SUCCESS [5.998s]
[INFO] Apache Sling Service User Mapper .. SUCCESS [5.797s]
[INFO] Apache Sling Settings . SUCCESS [5.829s]
[INFO] Apache Sling Web Console Branding . SUCCESS [3.523s]
[INFO] Apache Sling Web Console Security Provider  SUCCESS [5.505s]
[INFO] Apache Sling Explorer . SUCCESS [5.088s]
[INFO] Apache Sling Health Check Core  SUCCESS [12.319s]
[INFO] Apache Sling Health Check Annotations . SUCCESS [5.906s]
[INFO] Apache Sling Health Check Samples . SUCCESS [6.013s]
[INFO] Apache Sling Health Check Support Components .. SUCCESS [5.735s]
[INFO] Apache Sling Health Check Webconsole Plugin ... SUCCESS [3.758s]
[INFO] Apache Sling Health Check JUnit Bridge  SUCCESS [3.561s]
[INFO] Apache Sling Health Check Integration Tests ... SUCCESS [18.113s]
[INFO] Apache Sling Health Check Reactor POM . SUCCESS [2.775s]
[INFO] Apache Sling Resource Access Security . SUCCESS [15.228s]
[INFO] Apache Sling Resource Access Security Integration Tests  SUCCESS 
[25.008s]
[INFO] Apache Sling Models API ... SUCCESS [3.384s]
[INFO] Apache Sling Testing Sling Mock 

Re: ResourceWrapper issue with ResourceMetadata

2014-10-28 Thread Carsten Ziegeler
This is the ugly code trying to get the content length for a resource. I
think this code is unchanged, it's now just invoked different and maybe
the reporting of the exception is new. However, the exception is
swalled, so your provider should still work.

But maybe we have to revisit the code in order to properly avoid the
exception if possible.

Carsten

Am 28.10.14 um 14:46 schrieb Dominik Süß:
 Hi everybody,
 
 I might have found a bug related to the changes of SLING-3848.
 Due to some requirements some properties of a resource had to be moved to a
 third location for the resources of one very specific contentbranch. Now I
 do have a ResourceProvider that does nothing more then creating a
 ResourceWrapper in the original location hiding the JCRNodeResource
 underneath. As proposed by Carsten in another thread (see [0]) I solve the
 problem of the locked JCRNodeResourceMetadata via creating a new Metadata
 object and setting the entries via putAll() in the constructor of the own
 Wrapper. At this point I get an exception caused by a node.getPrimaryItem()
 call in JCRNodeResourceMetadata ([1] Line 164).
 
 ---
 org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResource
 setMetaData: Problem extracting metadata information for
 /etc/mypath/jcr:content
 javax.jcr.ItemNotFoundException: No primary item present on node
 getPrimaryItem
 ---
 
 I verified that this happens on oak based and jcr 2 based instances. I
 don't know the exact mechanism of SLING-3848 [2], how that node is supposed
 to behave and what the goal of that codefragment exactly is, but I expect
 other consumers to fail as well since SuperImposingResource [3] actually is
 doing the same (although in an own resource not a ResourceWrapper, but that
 shouldn't be a difference in the constructor.
 
 Any ideas what's going on here?
 
 Best regards
 Dominik
 
 [0] http://markmail.org/thread/ortcft2vjjs2ukga
 [1]
 http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrNodeResourceMetadata.java
 [2] https://issues.apache.org/jira/browse/SLING-3848
 [3]
 https://github.com/apache/sling/blob/trunk/contrib/extensions/superimposing/src/main/java/org/apache/sling/superimposing/impl/SuperimposingResource.java#L44
 


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


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

2014-10-28 Thread Carsten Ziegeler
Am 28.10.14 um 17:22 schrieb Apache Jenkins Server:
 See 
 https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.event/381/
 
 
This is a sporadic problem with Java 8 - it seems when a new Pax Exam
test starts, the old one isn't finished yet as the port is still in use
and the repository is locked.

Does anyone have a good idea how to workaround this problem or let pax
wait until really all threads are finished?

Or even better, can anyone reproduce this locally so we could get a
thread dump?

Carsten

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


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

2014-10-28 Thread Oliver Lietz
On Tuesday 28 October 2014 20:57:40 Carsten Ziegeler wrote:
 Am 28.10.14 um 17:22 schrieb Apache Jenkins Server:
  See
  https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apac
  he.sling.event/381/
 
 This is a sporadic problem with Java 8 - it seems when a new Pax Exam
 test starts, the old one isn't finished yet as the port is still in use
 and the repository is locked.
 
 Does anyone have a good idea how to workaround this problem or let pax
 wait until really all threads are finished?

Something like KarafTestSupport#findFreePort() should help.

https://svn.apache.org/repos/asf/sling/trunk/contrib/launchpad/karaf/org.apache.sling.launchpad.karaf-
integration-
tests/src/main/java/org/apache/sling/launchpad/karaf/testing/KarafTestSupport.java

I've limited network access and time right now but can look at it next week 
when back at the office.

O.

 Or even better, can anyone reproduce this locally so we could get a
 thread dump?
 
 Carsten