Re: Trusted credentials and loginByService

2014-01-14 Thread Carsten Ziegeler
I think using OSGi subsystems would bring at least some points of isolation and control - it's clearly not designed for security but leveraging it is a step closer to the goal. Carsten 2014/1/14 Chetan Mehrotra chetan.mehro...@gmail.com 1a and 1b would enable us to sandbox scripts and would

[jira] [Commented] (SLING-3315) Refactor replication HTTP API

2014-01-14 Thread Marius Petria (JIRA)
[ https://issues.apache.org/jira/browse/SLING-3315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13870529#comment-13870529 ] Marius Petria commented on SLING-3315: -- [~bdelacretaz] another potential issue with

[jira] [Commented] (SLING-3315) Refactor replication HTTP API

2014-01-14 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-3315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13870540#comment-13870540 ] Carsten Ziegeler commented on SLING-3315: - We can't use the configurations stored

Re: Integration of Sling remote tests into a maven build

2014-01-14 Thread Jörg Hoh
Hi Betrand, I took your approach using SlingRemoteTestRunner and maven-failsafe-plugin, and I got pretty far. The problem is now, that I SlingTestBase forks a new server-process which runs the server-side tests. But on my side I have an already running Sling instance (CQ) and I want to leverage

Re: Integration of Sling remote tests into a maven build

2014-01-14 Thread Bertrand Delacretaz
Hi Jörg, On Tue, Jan 14, 2014 at 10:13 AM, Jörg Hoh jhoh...@googlemail.com wrote: ...I took your approach using SlingRemoteTestRunner and maven-failsafe-plugin, and I got pretty far. The problem is now, that I SlingTestBase forks a new server-process which runs the server-side tests. But on

[jira] [Commented] (SLING-3315) Refactor replication HTTP API

2014-01-14 Thread Bertrand Delacretaz (JIRA)
[ https://issues.apache.org/jira/browse/SLING-3315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13870620#comment-13870620 ] Bertrand Delacretaz commented on SLING-3315: My suggestion was indeed to

[jira] [Commented] (SLING-3315) Refactor replication HTTP API

2014-01-14 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-3315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13870624#comment-13870624 ] Carsten Ziegeler commented on SLING-3315: - We have the resource access gate and an

Re: Integration of Sling remote tests into a maven build

2014-01-14 Thread Jörg Hoh
Hi Bertrand, yes, the initialisation of the JarExecutor fails. But I figured out howto workaround it. You need to provide these statements as configuration to your maven-failsafe-plugin: systemPropertyVariables test.server.urlhttp://localhost:8080/test.server.url

[jira] [Created] (SLING-3316) Add auto-stop behavior to topology connector if pinging self

2014-01-14 Thread Stefan Egli (JIRA)
Stefan Egli created SLING-3316: -- Summary: Add auto-stop behavior to topology connector if pinging self Key: SLING-3316 URL: https://issues.apache.org/jira/browse/SLING-3316 Project: Sling

[ANN] Welcome Tommaso Teofili as a Sling committer!

2014-01-14 Thread Bertrand Delacretaz
Hi, Based on his ongoing and valuable contributions, the Apache Sling Project Management Committee (PMC) has voted to invite Tommaso as a Sling committer, and he has accepted the invitation. According to http://people.apache.org/committer-index.html that makes him a committer in *eleven* Apache

Re: HealthCheckExecutor.execute(ServiceReference) ??

2014-01-14 Thread Carsten Ziegeler
Answering my own question, I think its good if we always return the elapsed time, but return null for getFinishedDate. I'll do the change Carsten 2014/1/10 Carsten Ziegeler cziege...@apache.org I'Ve done the suggested changes: - moved jmx stuff into the core - changed the signature to

[jira] [Commented] (SLING-3278) Provide a HealthCheckExecutor service

2014-01-14 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-3278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13870750#comment-13870750 ] Carsten Ziegeler commented on SLING-3278: - As discussed in the mailing list, we

Sling API Release

2014-01-14 Thread Carsten Ziegeler
Hi, I think we're pending a new Sling API release (followed by various implementation releases). If no one objects I'll cut the release in the next days. Regards Carsten -- Carsten Ziegeler cziege...@apache.org

[jira] [Resolved] (SLING-2944) Replace administrative login by service-based login

2014-01-14 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-2944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carsten Ziegeler resolved SLING-2944. - Resolution: Fixed Replace administrative login by service-based login

Re: [ANN] Welcome Tommaso Teofili as a Sling committer!

2014-01-14 Thread Tommaso Teofili
Thanks a lot to the whole Sling PMC for your trust, I look forward to keep working and having fun in Sling. Regards, Tommaso 2014/1/14 Bertrand Delacretaz bdelacre...@apache.org Hi, Based on his ongoing and valuable contributions, the Apache Sling Project Management Committee (PMC) has

Re: HealthCheckExecutor.execute(ServiceReference) ??

2014-01-14 Thread Carsten Ziegeler
Hmm, that doesn't look right to me - in that case I would need to compare the date with an (arbitrary) fixed value. I see the point for the null check So what about adding a boolean method, hasTimedOut() instead and always return a correct date? Carsten 2014/1/14 Bertrand Delacretaz

[jira] [Resolved] (SLING-3310) Use a released parent POM in Sling Replication

2014-01-14 Thread Tommaso Teofili (JIRA)
[ https://issues.apache.org/jira/browse/SLING-3310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tommaso Teofili resolved SLING-3310. Resolution: Fixed fixed in r1558045 Use a released parent POM in Sling Replication

Re: HealthCheckExecutor.execute(ServiceReference) ??

2014-01-14 Thread Bertrand Delacretaz
On Tue, Jan 14, 2014 at 3:34 PM, Carsten Ziegeler cziege...@apache.org wrote: ...what about adding a boolean method, hasTimedOut() instead and always return a correct date?... why not but then hasTimedOut() really means no result available so isn't the NO_RESULT status that we discussed earlier

Re: HealthCheckExecutor.execute(ServiceReference) ??

2014-01-14 Thread Carsten Ziegeler
Adding a value to the enum would be a change in the api, which I would like to avoid. And if you're just interested if execution is successful, returning a warn looks like a good idea to me. Carsten 2014/1/14 Bertrand Delacretaz bdelacre...@apache.org On Tue, Jan 14, 2014 at 3:34 PM, Carsten

[jira] [Commented] (SLING-1158) page.....html resolves to same resource as page.html

2014-01-14 Thread Mark Baker (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13870812#comment-13870812 ] Mark Baker commented on SLING-1158: --- Hi Felix. That's all true, but it does cause harm,

Re: [ANN] Welcome Tommaso Teofili as a Sling committer!

2014-01-14 Thread Chetan Mehrotra
Welcome Tommaso!! Chetan Mehrotra On Tue, Jan 14, 2014 at 7:56 PM, Tommaso Teofili tommaso.teof...@gmail.com wrote: Thanks a lot to the whole Sling PMC for your trust, I look forward to keep working and having fun in Sling. Regards, Tommaso 2014/1/14 Bertrand Delacretaz

Re: HealthCheckExecutor.execute(ServiceReference) ??

2014-01-14 Thread Bertrand Delacretaz
On Tue, Jan 14, 2014 at 3:49 PM, Carsten Ziegeler cziege...@apache.org wrote: Adding a value to the enum would be a change in the api, which I would like to avoid. ok, let's stay with boolean hasTimedOut() as is now. -Bertrand

[jira] [Commented] (SLING-3315) Refactor replication HTTP API

2014-01-14 Thread Marius Petria (JIRA)
[ https://issues.apache.org/jira/browse/SLING-3315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13870816#comment-13870816 ] Marius Petria commented on SLING-3315: -- [~bdelacretaz] the current implementation

[jira] [Commented] (SLING-1158) page.....html resolves to same resource as page.html

2014-01-14 Thread Bertrand Delacretaz (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13870820#comment-13870820 ] Bertrand Delacretaz commented on SLING-1158: This is similar to requesting

[jira] [Comment Edited] (SLING-1158) page.....html resolves to same resource as page.html

2014-01-14 Thread Bertrand Delacretaz (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13870820#comment-13870820 ] Bertrand Delacretaz edited comment on SLING-1158 at 1/14/14 3:37 PM:

Re: [ANN] Welcome Tommaso Teofili as a Sling committer!

2014-01-14 Thread Antonio Sanso
+1 On Jan 14, 2014, at 4:24 PM, Chetan Mehrotra chetan.mehro...@gmail.com wrote: Welcome Tommaso!! Chetan Mehrotra On Tue, Jan 14, 2014 at 7:56 PM, Tommaso Teofili tommaso.teof...@gmail.com wrote: Thanks a lot to the whole Sling PMC for your trust, I look forward to keep working and

[jira] [Commented] (SLING-1158) page.....html resolves to same resource as page.html

2014-01-14 Thread Justin Edelson (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13870866#comment-13870866 ] Justin Edelson commented on SLING-1158: --- And such a filter already exists:

Re: rename YAMF to Sling Models

2014-01-14 Thread Justin Edelson
Hi Brenn, I'd suggest starting a new thread with your question. Regards, Justin On Mon, Jan 13, 2014 at 4:58 PM, Brenn Hill brenn.h...@omnigon.com wrote: Hi guys, From past projects I've seen Sling used as more of a front controller (with lots of perks) and then the resource as the

Re: [ANN] Welcome Tommaso Teofili as a Sling committer!

2014-01-14 Thread Felix Meschberger
Congratulations, welcome and keep up the good work Tommaso ! Regards Felix Am 14.01.2014 um 07:26 schrieb Tommaso Teofili tommaso.teof...@gmail.com: Thanks a lot to the whole Sling PMC for your trust, I look forward to keep working and having fun in Sling. Regards, Tommaso 2014/1/14

Re: Reconsidering when to apply resource access security

2014-01-14 Thread Felix Meschberger
Hi Am 14.01.2014 um 00:27 schrieb Carsten Ziegeler cziege...@apache.org: Ok, so let's seprate the two things for the sake of th discussion - as soon as someone wants to have a resource access gate applied to all resource providers (for whatever reason), this really becomes tedious, especially

Re: Lost parameter order for form POSTs

2014-01-14 Thread Felix Meschberger
Hi Another thing: Currently ParameterSupport is an internal part of the Sling Engine. How about we move the ParameterSupport into a separate bundle and expose the ParameterSupport class as a utility class. This can then be leveraged by the Sling Engine itself but also by other pieces not

Re: Lost parameter order for form POSTs

2014-01-14 Thread Alexander Klimetschek
On 13.01.2014, at 21:17, Felix Meschberger fmesc...@adobe.com wrote: Having said this, I could imagine taking a hybrid approach: (1) For url-encoded POST request, check whether InputStream is available (1a) if available: - decode query string - decode input stream (1b) if not

Re: Lost parameter order for form POSTs

2014-01-14 Thread Alexander Klimetschek
On 14.01.2014, at 09:59, Felix Meschberger fmesc...@adobe.com wrote: How about we move the ParameterSupport into a separate bundle and expose the ParameterSupport class as a utility class. This can then be leveraged by the Sling Engine itself but also by other pieces not running inside the

Re: Trusted credentials and loginByService

2014-01-14 Thread Alexander Klimetschek
On 13.01.2014, at 21:15, Chetan Mehrotra chetan.mehro...@gmail.com wrote: However the problem with sandboxing untrusted code in any form requires quite a bit of an effort. Just to start with a. Disable access to Java reflection API b. Limit access to OSGi service registry c. Limit access

[jira] [Commented] (SLING-1158) page.....html resolves to same resource as page.html

2014-01-14 Thread Alexander Klimetschek (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13871082#comment-13871082 ] Alexander Klimetschek commented on SLING-1158: -- It should also be possible

[jira] [Commented] (SLING-1158) page.....html resolves to same resource as page.html

2014-01-14 Thread Justin Edelson (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13871118#comment-13871118 ] Justin Edelson commented on SLING-1158: --- @alexander.klimetschek not necessarily.

Re: [ANN] Welcome Tommaso Teofili as a Sling committer!

2014-01-14 Thread Robert Munteanu
Welcome, Tommaso! On Tue, Jan 14, 2014 at 7:15 PM, Felix Meschberger fmesc...@adobe.com wrote: Congratulations, welcome and keep up the good work Tommaso ! Regards Felix Am 14.01.2014 um 07:26 schrieb Tommaso Teofili tommaso.teof...@gmail.com: Thanks a lot to the whole Sling PMC for your

Re: Integration of Sling remote tests into a maven build

2014-01-14 Thread Mark Adamcin
Hi Jörg, I've created a maven plugin [1] and some common test classes [2] specifically to make this easier for CQ5. The Granite IT maven plugin is designed to work with the maven-failsafe-plugin by provided the readiness check functionality and by exporting HTTP configuration properties using the

Re: Lost parameter order for form POSTs

2014-01-14 Thread Felix Meschberger
Hi Am 14.01.2014 um 12:37 schrieb Alexander Klimetschek aklim...@adobe.com: On 13.01.2014, at 21:17, Felix Meschberger fmesc...@adobe.com wrote: Having said this, I could imagine taking a hybrid approach: (1) For url-encoded POST request, check whether InputStream is available (1a) if

Re: Trusted credentials and loginByService

2014-01-14 Thread Felix Meschberger
Hi Am 13.01.2014 um 15:26 schrieb Alexander Klimetschek aklim...@adobe.com: Right, good analysis! I have further important additions to #1 and #2: #1 of course is difficult. It should be split up: - 1a. malicious JSP/script code

Re: Trusted credentials and loginByService

2014-01-14 Thread Felix Meschberger
Hi Ok, right, subsystem is one approach. Another, quite intrusive one, might be a class loader hook: This would allow us to filter visible classes per bundle Yet, while this would get us the java.lang.System allowed or not ? But it not get us prevent System.exit. But it would get us no

Re: Lost parameter order for form POSTs

2014-01-14 Thread Alexander Klimetschek
I forgot 2 important points ;) (see below for responses to the existing discussion) (1) Just using an ordered map instead of a hash map doesn't solve the problem, as multi-value parameters still get merged and their invidual position lost. For example, an URL like this (which is similar to my

Re: Lost parameter order for form POSTs

2014-01-14 Thread Felix Meschberger
Hi Am 14.01.2014 um 18:44 schrieb Alexander Klimetschek aklim...@adobe.com: I forgot 2 important points ;) (see below for responses to the existing discussion) (1) Just using an ordered map instead of a hash map doesn't solve the problem, as multi-value parameters still get merged and

Re: Lost parameter order for form POSTs

2014-01-14 Thread Alexander Klimetschek
On 14.01.2014, at 18:05, Felix Meschberger fmesc...@adobe.com wrote: Am 14.01.2014 um 18:44 schrieb Alexander Klimetschek aklim...@adobe.com: /do?move=10stepsturnLeft=45degmove=20steps [...] This could be easily solved by extending Sling's RequestParameterMap [0], e.g. with a method

Re: Reconsidering when to apply resource access security

2014-01-14 Thread Carsten Ziegeler
2014/1/14 Felix Meschberger fmesc...@adobe.com Hi Am 14.01.2014 um 00:27 schrieb Carsten Ziegeler cziege...@apache.org: Ok, so let's seprate the two things for the sake of th discussion - as soon as someone wants to have a resource access gate applied to all resource providers (for