[jira] [Created] (SLING-3508) NPE in JSON rendering

2014-04-23 Thread Carsten Ziegeler (JIRA)
Carsten Ziegeler created SLING-3508:
---

 Summary: NPE in JSON rendering
 Key: SLING-3508
 URL: https://issues.apache.org/jira/browse/SLING-3508
 Project: Sling
  Issue Type: Bug
  Components: Servlets
Affects Versions: Servlets Get 2.1.8
Reporter: Carsten Ziegeler
Assignee: Carsten Ziegeler
 Fix For: Servlets Get 2.1.10


If the property value to render is null, an NPE might occur:
java.lang.NullPointerException: null
at 
org.apache.sling.servlets.get.impl.helpers.JsonObjectCreator.getValue(JsonObjectCreator.java:150)




--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Resolved] (SLING-3508) NPE in JSON rendering

2014-04-23 Thread Carsten Ziegeler (JIRA)

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

Carsten Ziegeler resolved SLING-3508.
-

Resolution: Fixed

 NPE in JSON rendering
 -

 Key: SLING-3508
 URL: https://issues.apache.org/jira/browse/SLING-3508
 Project: Sling
  Issue Type: Bug
  Components: Servlets
Affects Versions: Servlets Get 2.1.8
Reporter: Carsten Ziegeler
Assignee: Carsten Ziegeler
 Fix For: Servlets Get 2.1.10


 If the property value to render is null, an NPE might occur:
 java.lang.NullPointerException: null
   at 
 org.apache.sling.servlets.get.impl.helpers.JsonObjectCreator.getValue(JsonObjectCreator.java:150)



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (SLING-3509) Add web console plugin to remove all compiled class files

2014-04-23 Thread Carsten Ziegeler (JIRA)
Carsten Ziegeler created SLING-3509:
---

 Summary: Add web console plugin to remove all compiled class files
 Key: SLING-3509
 URL: https://issues.apache.org/jira/browse/SLING-3509
 Project: Sling
  Issue Type: New Feature
  Components: Scripting
Reporter: Carsten Ziegeler
Assignee: Carsten Ziegeler
 Fix For: Scripting JSP 2.0.30


Recompilation of jsps is done based on observation and only by observing the 
source files. There are some rare cases where a user wants to force a 
recompilation, e.g. if the settings of the jsp engine are changed etc.
We should add a web console plugin which allows this.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Resolved] (SLING-3509) Add web console plugin to remove all compiled class files

2014-04-23 Thread Carsten Ziegeler (JIRA)

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

Carsten Ziegeler resolved SLING-3509.
-

Resolution: Fixed

I've added a very simple version of such a web console plugin

 Add web console plugin to remove all compiled class files
 -

 Key: SLING-3509
 URL: https://issues.apache.org/jira/browse/SLING-3509
 Project: Sling
  Issue Type: New Feature
  Components: Scripting
Reporter: Carsten Ziegeler
Assignee: Carsten Ziegeler
 Fix For: Scripting JSP 2.0.30


 Recompilation of jsps is done based on observation and only by observing the 
 source files. There are some rare cases where a user wants to force a 
 recompilation, e.g. if the settings of the jsp engine are changed etc.
 We should add a web console plugin which allows this.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


Re: Is Sling DevOps and Cluster friendly?

2014-04-23 Thread Bertrand Delacretaz
Hi,

On Sat, Nov 16, 2013 at 10:58 AM, Ian Boston i...@tfd.co.uk wrote:
 ...the repository under Sling would have to be
 reserved for data generated by the application or initial content,
 whilst application code and configuration is kept on the filesystem,
 so that a running instance could be upgraded entirely on the
 filesystem by configuration management and versioned in a single
 atomic operation...

FYI, in case anyone's interested we've been doing some experiments
along these lines with my intern Artyom. The experiments themselves
are at [1] and we'll be using the work-in-progress contrib/crankstart
module to continue experimenting.

This experimental crankstart launcher fully defines a Sling instance
in a text file like [2], which is useful in a devops/continuous
deployment context, especially if Sling instances can be considered
throwaway - in our experiments we never change the configuration of
a Sling instance (in a wide sense, configuration including bundles,
scripts, OSGi configs etc) but spin up and switch to new Sling
instances when the config changes. Careful coordination with the HTTP
front-end (mod_proxy or similar) allows for the switch from one
configuration to the next to be atomic, as seen from the outside.

This is all still very experimental...just wanted to share the rough
ideas in case people are interested in contributing or playing with
that stuff.

-Bertrand

[1] https://github.com/bdelacretaz/sling-devops-experiments (and
Artyom's fork might be more current,
https://github.com/ArtyomStetsenko/sling-devops-experiments)

[2] 
http://svn.apache.org/repos/asf/sling/trunk/contrib/crankstart/launcher/sling.crank.txt


Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Google Web Toolkit Sample #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.extensions.gwt.sample/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Rewriter #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.rewriter/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling FTP Server #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.ftpserver/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Scala Script Engine #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.scripting.scala.script/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Scala for Sling Demo Application - Forum #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.scripting.scala.forum/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling JCR Java Compiler #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.jcr.compiler/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling APT parser #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.extensions.apt.parser/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Commons Java Compiler #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.commons.compiler/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Resource Merger #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.resourcemerger/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Dojo Data Extension #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.extensions.dojo.sling/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Scripting JST Support #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.scripting.jst/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Replication #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.replication/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Scripting W3C XML Processing Support #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.scripting.xproc/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Commons FileSystem ClassLoader #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.commons.fsclassloader/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Script Console #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.scripting.console/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Scripting Velocity Support #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.scripting.velocity/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Tenant #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.tenant/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Contrib (Builder) #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$sling-contrib-builder/1122/changes



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling MongoDB Resource Provider #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.mongodb/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Resource Collection API #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.resourcecollection/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Commons HTML Utilities #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.commons.html/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Scripting Ruby Support #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.scripting.ruby/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Request Processing Analyzer #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.reqanalyzer/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Scala Scripting Configuration #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.scripting.scala.config/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Replication Integration Tests #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.replication.it/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Scripting Java Support #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.scripting.java/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Launchpad Karaf - Features #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.launchpad.karaf-features/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Google Web Toolkit Servlet Library #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.extensions.gwt.servlet/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Launchpad Karaf #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.launchpad.karaf/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling OSGi Bundle Repository #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.osgi.obr/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling JCR Prefs #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.jcr.prefs/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Scripting Python Support #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.scripting.python/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Scala for Sling Demo Application - Hello World #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.scripting.scala.hello-world/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling JCR Resource Security #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.jcr.resourcesecurity/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Atom Tag Library #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.atom.taglib/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Launchpad Karaf Builder #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$sling-launchpad-karaf-builder/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Dojo JavaScript Library #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.extensions.dojo/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling APT servlet #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.extensions.apt.servlet/1122/



Jenkins build is back to normal : sling-contrib-1.6 » Apache Sling Scripting Freemarker Support #1122

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-contrib-1.6/org.apache.sling$org.apache.sling.scripting.freemarker/1122/



Jenkins build became unstable: sling-trunk-1.7 » Apache Sling Installer Integration Tests #472

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.7/org.apache.sling$org.apache.sling.installer.it/472/



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

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.7/org.apache.sling$org.apache.sling.discovery.impl/472/



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

2014-04-23 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.7/changes



Jenkins build is back to stable : sling-trunk-1.6 » Apache Sling SLF4J Implementation (Logback) #2099

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.6/org.apache.sling$org.apache.sling.commons.log/2099/



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

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.6/org.apache.sling$org.apache.sling.discovery.impl/2099/



Jenkins build is still unstable: sling-trunk-1.6 » Apache Sling Event Support #2099

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.6/org.apache.sling$org.apache.sling.event/2099/



Jenkins build is still unstable: sling-trunk-1.6 #2099

2014-04-23 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.6/changes



[jira] [Created] (SLING-3510) Check for null classUrls and warn when no @Model classes found by Sling Models

2014-04-23 Thread Chris Pilsworth (JIRA)
Chris Pilsworth created SLING-3510:
--

 Summary: Check for null classUrls and warn when no @Model classes 
found by Sling Models
 Key: SLING-3510
 URL: https://issues.apache.org/jira/browse/SLING-3510
 Project: Sling
  Issue Type: Bug
  Components: Extensions
Affects Versions: Sling Models Implementation 1.0.2
Reporter: Chris Pilsworth


When a non-existent package is added to Sling-Model-Packages, then an NPE is 
thrown as there are no matching classes found. I guess the same would happen 
for existing packages that contain no @Model classes. Check for classUrls and 
warn, then continue if null.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[GitHub] sling pull request: SLING-3510 Check for null classUrls and warn w...

2014-04-23 Thread cpilsworth
GitHub user cpilsworth opened a pull request:

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

SLING-3510 Check for null classUrls and warn when no @Model classes found

When a non-existent package is added to Sling-Model-Packages, then an NPE 
is thrown as there are no matching classes found. I guess the same would happen 
for existing packages that contain no @Model classes. Check for classUrls and 
warn, then continue if null.

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

$ git pull https://github.com/cpilsworth/sling SLING-3510

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

https://github.com/apache/sling/pull/15.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 #15


commit 88e2a197c7fda2922244b42b77499f54ab6a503a
Author: Chris Pilsworth cpilswo...@gmail.com
Date:   2014-04-23T13:49:20Z

SLING-3510 Check for null classUrls and warn when no @Model classes found 
by Sling Models




---
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] [Commented] (SLING-3510) Check for null classUrls and warn when no @Model classes found by Sling Models

2014-04-23 Thread ASF GitHub Bot (JIRA)

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

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

GitHub user cpilsworth opened a pull request:

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

SLING-3510 Check for null classUrls and warn when no @Model classes found

When a non-existent package is added to Sling-Model-Packages, then an NPE 
is thrown as there are no matching classes found. I guess the same would happen 
for existing packages that contain no @Model classes. Check for classUrls and 
warn, then continue if null.

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

$ git pull https://github.com/cpilsworth/sling SLING-3510

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

https://github.com/apache/sling/pull/15.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 #15


commit 88e2a197c7fda2922244b42b77499f54ab6a503a
Author: Chris Pilsworth cpilswo...@gmail.com
Date:   2014-04-23T13:49:20Z

SLING-3510 Check for null classUrls and warn when no @Model classes found 
by Sling Models




 Check for null classUrls and warn when no @Model classes found by Sling Models
 --

 Key: SLING-3510
 URL: https://issues.apache.org/jira/browse/SLING-3510
 Project: Sling
  Issue Type: Bug
  Components: Extensions
Affects Versions: Sling Models Implementation 1.0.2
Reporter: Chris Pilsworth

 When a non-existent package is added to Sling-Model-Packages, then an NPE is 
 thrown as there are no matching classes found. I guess the same would happen 
 for existing packages that contain no @Model classes. Check for classUrls and 
 warn, then continue if null.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (SLING-3510) Check for null classUrls and warn when no @Model classes found by Sling Models

2014-04-23 Thread Chris Pilsworth (JIRA)

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

Chris Pilsworth commented on SLING-3510:


Fix in can be found in pull request here 
https://github.com/apache/sling/pull/15  with patch available here 
https://github.com/apache/sling/pull/15.patch

 Check for null classUrls and warn when no @Model classes found by Sling Models
 --

 Key: SLING-3510
 URL: https://issues.apache.org/jira/browse/SLING-3510
 Project: Sling
  Issue Type: Bug
  Components: Extensions
Affects Versions: Sling Models Implementation 1.0.2
Reporter: Chris Pilsworth

 When a non-existent package is added to Sling-Model-Packages, then an NPE is 
 thrown as there are no matching classes found. I guess the same would happen 
 for existing packages that contain no @Model classes. Check for classUrls and 
 warn, then continue if null.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


TagExtraInfo for sling:adaptTo/ tag

2014-04-23 Thread Julian Sedding
Hi all

It would be great to get the patch for SLING-3475 applied soon.

The added TagExtraInfo should be low risk, as it should not impact
run-time behavior at all.

However, enabling my IDE to help prevent small bugs would be very
helpful. Especially in conjunction with Sling Models, which make the
sling:adaptTo/ tag much more useful.

Thanks  regards
Julian

https://issues.apache.org/jira/browse/SLING-3475


Re: TagExtraInfo for sling:adaptTo/ tag

2014-04-23 Thread Konrad Windszus
I definitely agree here. Including the TEI is almost no risk but it helps a lot 
during development (at least with IntelliJ, because Eclipse still lacks decent 
EL code completion support)

On 23 Apr 2014, at 16:52, Julian Sedding jsedd...@gmail.com wrote:

 Hi all
 
 It would be great to get the patch for SLING-3475 applied soon.
 
 The added TagExtraInfo should be low risk, as it should not impact
 run-time behavior at all.
 
 However, enabling my IDE to help prevent small bugs would be very
 helpful. Especially in conjunction with Sling Models, which make the
 sling:adaptTo/ tag much more useful.
 
 Thanks  regards
 Julian
 
 https://issues.apache.org/jira/browse/SLING-3475



[jira] [Created] (SLING-3511) Support selectors for pipeline configuration

2014-04-23 Thread Dirk Rudolph (JIRA)
Dirk Rudolph created SLING-3511:
---

 Summary: Support selectors for pipeline configuration
 Key: SLING-3511
 URL: https://issues.apache.org/jira/browse/SLING-3511
 Project: Sling
  Issue Type: Improvement
  Components: Extensions
Affects Versions: Extensions Rewriter 1.0.4
Reporter: Dirk Rudolph
Priority: Minor
 Fix For: Extensions Rewriter 1.0.6


Currently paths, contentTypes, extensions and resourceTypes are available for 
filtering pipeline configurations. I would be appreciated when filtering by 
selector would also be possible.

We have an intranet/internet application that sends newsletters to different 
groups of users. Some of the users have to access the links provided in the 
generated mails trough a portal application. Due to some other rewriting we 
apply to the links it is necessary to append a prefix to the links in the last 
step of output rewriting but only for a special selector (we use 
someresource.mail.html as representation of the this is a mail view).



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (SLING-3511) Support selectors for pipeline configuration

2014-04-23 Thread Dirk Rudolph (JIRA)

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

Dirk Rudolph updated SLING-3511:


Affects Version/s: Extensions Rewriter 1.0.4

 Support selectors for pipeline configuration
 

 Key: SLING-3511
 URL: https://issues.apache.org/jira/browse/SLING-3511
 Project: Sling
  Issue Type: Improvement
  Components: Extensions
Affects Versions: Extensions Rewriter 1.0.4
Reporter: Dirk Rudolph
Priority: Minor
 Fix For: Extensions Rewriter 1.0.6


 Currently paths, contentTypes, extensions and resourceTypes are available for 
 filtering pipeline configurations. I would be appreciated when filtering by 
 selector would also be possible.
 We have an intranet/internet application that sends newsletters to different 
 groups of users. Some of the users have to access the links provided in the 
 generated mails trough a portal application. Due to some other rewriting we 
 apply to the links it is necessary to append a prefix to the links in the 
 last step of output rewriting but only for a special selector (we use 
 someresource.mail.html as representation of the this is a mail view).



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (SLING-3511) Support selectors for pipeline configuration

2014-04-23 Thread Dirk Rudolph (JIRA)

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

Dirk Rudolph updated SLING-3511:


Affects Version/s: (was: Extensions Rewriter 1.0.4)

 Support selectors for pipeline configuration
 

 Key: SLING-3511
 URL: https://issues.apache.org/jira/browse/SLING-3511
 Project: Sling
  Issue Type: Improvement
  Components: Extensions
Reporter: Dirk Rudolph
Priority: Minor
 Fix For: Extensions Rewriter 1.0.6


 Currently paths, contentTypes, extensions and resourceTypes are available for 
 filtering pipeline configurations. I would be appreciated when filtering by 
 selector would also be possible.
 We have an intranet/internet application that sends newsletters to different 
 groups of users. Some of the users have to access the links provided in the 
 generated mails trough a portal application. Due to some other rewriting we 
 apply to the links it is necessary to append a prefix to the links in the 
 last step of output rewriting but only for a special selector (we use 
 someresource.mail.html as representation of the this is a mail view).



--
This message was sent by Atlassian JIRA
(v6.2#6252)


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

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.7/org.apache.sling$org.apache.sling.installer.it/473/



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

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.7/org.apache.sling$org.apache.sling.discovery.impl/473/



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

2014-04-23 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.7/changes



[jira] [Updated] (SLING-3512) All dependencies referenced from TEI classes should have compile scope

2014-04-23 Thread Konrad Windszus (JIRA)

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

Konrad Windszus updated SLING-3512:
---

Description: 
Currently some classes which are referenced from TEI classes (e.g. 
DefineObjectsTEI) cannot be resolved within an IDE, because the according 
dependency is given with scope provided. Since provided dependencies are not 
evaluated if given in a transitive way [0], the classpath of the referencing 
JSP does not necessarily contain those transitive dependencies, but they are 
necessary for the TEI to be instanciated within the IDE.

For example the DefineObjectsTEI references classes from org.apache.sling.api 
and slf4j-api. Therefore both dependencies should have the compile scope.

[0] - 
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope

  was:
Currently some classes which are referenced from TEI classes (e.g. 
DefineObjectTEI) cannot be resolved within an IDE, because the according 
dependency is given with scope provided. Since provided dependencies are not 
evaluated if given in a transitive way [0], the classpath of the referencing 
JSP does not necessarily contain those transitive dependencies, but they are 
necessary for the TEI to be instanciated within the IDE.

For example the DefineObjectTEI references classes from org.apache.sling.api 
and slf4j-api. Therefore both dependencies should have the compile scope.

[0] - 
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope


 All dependencies referenced from TEI classes should have compile scope
 

 Key: SLING-3512
 URL: https://issues.apache.org/jira/browse/SLING-3512
 Project: Sling
  Issue Type: Bug
  Components: Scripting
Affects Versions: Scripting JSP-Taglib 2.2.0
Reporter: Konrad Windszus

 Currently some classes which are referenced from TEI classes (e.g. 
 DefineObjectsTEI) cannot be resolved within an IDE, because the according 
 dependency is given with scope provided. Since provided dependencies are 
 not evaluated if given in a transitive way [0], the classpath of the 
 referencing JSP does not necessarily contain those transitive dependencies, 
 but they are necessary for the TEI to be instanciated within the IDE.
 For example the DefineObjectsTEI references classes from org.apache.sling.api 
 and slf4j-api. Therefore both dependencies should have the compile scope.
 [0] - 
 http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (SLING-3512) All dependencies referenced from TEI classes should have compile scope

2014-04-23 Thread Konrad Windszus (JIRA)
Konrad Windszus created SLING-3512:
--

 Summary: All dependencies referenced from TEI classes should have 
compile scope
 Key: SLING-3512
 URL: https://issues.apache.org/jira/browse/SLING-3512
 Project: Sling
  Issue Type: Bug
  Components: Scripting
Affects Versions: Scripting JSP-Taglib 2.2.0
Reporter: Konrad Windszus


Currently some classes which are referenced from TEI classes (e.g. 
DefineObjectTEI) cannot be resolved within an IDE, because the according 
dependency is given with scope provided. Since provided dependencies are not 
evaluated if given in a transitive way [0], the classpath of the referencing 
JSP does not necessarily contain those transitive dependencies, but they are 
necessary for the TEI to be instanciated within the IDE.

For example the DefineObjectTEI references classes from org.apache.sling.api 
and slf4j-api. Therefore both dependencies should have the compile scope.

[0] - 
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope



--
This message was sent by Atlassian JIRA
(v6.2#6252)


Jenkins build became unstable: sling-trunk-1.6 » Apache Sling SLF4J Implementation (Logback) #2100

2014-04-23 Thread Apache Jenkins Server
See 
https://builds.apache.org/job/sling-trunk-1.6/org.apache.sling$org.apache.sling.commons.log/2100/



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

2014-04-23 Thread Apache Jenkins Server
See https://builds.apache.org/job/sling-trunk-1.6/2100/changes

Changes:

[cziegeler] Use latest classloader release

--
[...truncated 11136 lines...]
[INFO] --- maven-antrun-plugin:1.7:run 
(set-bundle-required-execution-environment) @ org.apache.sling.scripting.api ---
[INFO] Executing tasks

main:
Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.6 from sling.java.version=6
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ 
org.apache.sling.scripting.api ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
org.apache.sling.scripting.api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
https://builds.apache.org/job/sling-trunk-1.6/ws/trunk/bundles/scripting/api/src/main/resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (check-memory-task) @ 
org.apache.sling.scripting.api ---
[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.scripting.api ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 5 source files to 
https://builds.apache.org/job/sling-trunk-1.6/ws/trunk/bundles/scripting/api/target/classes
[INFO] 
[INFO] --- maven-scr-plugin:1.16.0:scr (generate-scr-scrdescriptor) @ 
org.apache.sling.scripting.api ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
org.apache.sling.scripting.api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
https://builds.apache.org/job/sling-trunk-1.6/ws/trunk/bundles/scripting/api/src/test/resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
org.apache.sling.scripting.api ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ 
org.apache.sling.scripting.api ---
[INFO] 
[JENKINS] Recording test results[INFO] --- 
animal-sniffer-maven-plugin:1.9:check (default) @ 
org.apache.sling.scripting.api ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java16:1.0

[INFO] 
[INFO] --- maven-bundle-plugin:2.4.0:bundle (default-bundle) @ 
org.apache.sling.scripting.api ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-java) @ 
org.apache.sling.scripting.api ---
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run 
(set-bundle-required-execution-environment) @ org.apache.sling.scripting.api ---
[INFO] Executing tasks

main:
Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.6 from sling.java.version=6
[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) @ 
org.apache.sling.scripting.api ---
[INFO] Building jar: 
https://builds.apache.org/job/sling-trunk-1.6/ws/trunk/bundles/scripting/api/target/org.apache.sling.scripting.api-2.1.7-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ 
org.apache.sling.scripting.api ---
[INFO] 
[INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @ 
org.apache.sling.scripting.api ---
[INFO] Checking legal files in: 
org.apache.sling.scripting.api-2.1.7-SNAPSHOT.jar
[INFO] Checking legal files in: 
org.apache.sling.scripting.api-2.1.7-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @ 
org.apache.sling.scripting.api ---
[INFO] Installing 
https://builds.apache.org/job/sling-trunk-1.6/ws/trunk/bundles/scripting/api/target/org.apache.sling.scripting.api-2.1.7-SNAPSHOT.jar
 to 
/home/jenkins/jenkins-slave/maven-repositories/1/org/apache/sling/org.apache.sling.scripting.api/2.1.7-SNAPSHOT/org.apache.sling.scripting.api-2.1.7-SNAPSHOT.jar
[INFO] Installing 
https://builds.apache.org/job/sling-trunk-1.6/ws/trunk/bundles/scripting/api/pom.xml
 to 
/home/jenkins/jenkins-slave/maven-repositories/1/org/apache/sling/org.apache.sling.scripting.api/2.1.7-SNAPSHOT/org.apache.sling.scripting.api-2.1.7-SNAPSHOT.pom
[INFO] Installing 
https://builds.apache.org/job/sling-trunk-1.6/ws/trunk/bundles/scripting/api/target/org.apache.sling.scripting.api-2.1.7-SNAPSHOT-sources.jar
 to 
/home/jenkins/jenkins-slave/maven-repositories/1/org/apache/sling/org.apache.sling.scripting.api/2.1.7-SNAPSHOT/org.apache.sling.scripting.api-2.1.7-SNAPSHOT-sources.jar
[INFO] 

[jira] [Updated] (SLING-3511) Support selectors for pipeline configuration

2014-04-23 Thread Dirk Rudolph (JIRA)

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

Dirk Rudolph updated SLING-3511:


Attachment: rewriter-selectors-support.patch

I implemented the feature for our project and created a patch for current trunk 
of contrib/extensions/rewriter. Any comments would be appreciated. 

 Support selectors for pipeline configuration
 

 Key: SLING-3511
 URL: https://issues.apache.org/jira/browse/SLING-3511
 Project: Sling
  Issue Type: Improvement
  Components: Extensions
Affects Versions: Extensions Rewriter 1.0.4
Reporter: Dirk Rudolph
Priority: Minor
 Fix For: Extensions Rewriter 1.0.6

 Attachments: rewriter-selectors-support.patch


 Currently paths, contentTypes, extensions and resourceTypes are available for 
 filtering pipeline configurations. I would be appreciated when filtering by 
 selector would also be possible.
 We have an intranet/internet application that sends newsletters to different 
 groups of users. Some of the users have to access the links provided in the 
 generated mails trough a portal application. Due to some other rewriting we 
 apply to the links it is necessary to append a prefix to the links in the 
 last step of output rewriting but only for a special selector (we use 
 someresource.mail.html as representation of the this is a mail view).



--
This message was sent by Atlassian JIRA
(v6.2#6252)