[jira] Commented: (SLING-651) Extending the SlingPostServlet with SlingPostOperations

2009-02-27 Thread Felix Meschberger (JIRA)

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

Felix Meschberger commented on SLING-651:
-

Thanks Eric for the fixed patch. I have applied it in Rev. 748426.

 Extending the SlingPostServlet with SlingPostOperations
 ---

 Key: SLING-651
 URL: https://issues.apache.org/jira/browse/SLING-651
 Project: Sling
  Issue Type: Bug
  Components: Servlets Post
Affects Versions: Servlets Post 2.0.2
Reporter: Bertil Chapuis
Assignee: Felix Meschberger
Priority: Minor
 Attachments: FixedSlingPostServlet.diff, samples.diff, samples.diff, 
 SlingPostServlet.diff


 As described in the documentation 
 (http://incubator.apache.org/sling/site/manipulating-content-the-slingpostservlet.html),
  it should be possible to extend the SlingPostServlet with 
 SlingPostOperations. However, in the SlingPostServlet, no methods allow to 
 bind new operations.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (SLING-651) Extending the SlingPostServlet with SlingPostOperations

2009-02-27 Thread Felix Meschberger (JIRA)

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

Felix Meschberger commented on SLING-651:
-

Added the sample post servlet extension to the samples in Rev. 748433 (thanks 
bertil)

Since our restructuration, the launchpad/testing only contains the tests for 
the bundles in the bundles subtree. I cannot
apply the test extensions to the contrib/launchpad/testing either, since the 
samples may or may not be present during a contrib build.

Maybe we might have to add a separate integration testing for the samples ??

 Extending the SlingPostServlet with SlingPostOperations
 ---

 Key: SLING-651
 URL: https://issues.apache.org/jira/browse/SLING-651
 Project: Sling
  Issue Type: Bug
  Components: Servlets Post
Affects Versions: Servlets Post 2.0.2
Reporter: Bertil Chapuis
Assignee: Felix Meschberger
Priority: Minor
 Fix For: Servlets Post 2.0.4

 Attachments: FixedSlingPostServlet.diff, samples.diff, samples.diff, 
 SlingPostServlet.diff


 As described in the documentation 
 (http://incubator.apache.org/sling/site/manipulating-content-the-slingpostservlet.html),
  it should be possible to extend the SlingPostServlet with 
 SlingPostOperations. However, in the SlingPostServlet, no methods allow to 
 bind new operations.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (SLING-651) Extending the SlingPostServlet with SlingPostOperations

2009-02-27 Thread Felix Meschberger (JIRA)

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

Felix Meschberger updated SLING-651:


Fix Version/s: Servlets Post 2.0.4

 Extending the SlingPostServlet with SlingPostOperations
 ---

 Key: SLING-651
 URL: https://issues.apache.org/jira/browse/SLING-651
 Project: Sling
  Issue Type: Bug
  Components: Servlets Post
Affects Versions: Servlets Post 2.0.2
Reporter: Bertil Chapuis
Assignee: Felix Meschberger
Priority: Minor
 Fix For: Servlets Post 2.0.4

 Attachments: FixedSlingPostServlet.diff, samples.diff, samples.diff, 
 SlingPostServlet.diff


 As described in the documentation 
 (http://incubator.apache.org/sling/site/manipulating-content-the-slingpostservlet.html),
  it should be possible to extend the SlingPostServlet with 
 SlingPostOperations. However, in the SlingPostServlet, no methods allow to 
 bind new operations.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Assigned: (SLING-875) New Bundle for a ResourceProvider and Sling Post Operations for interacting with the jackrabbit UserManager

2009-02-27 Thread Felix Meschberger (JIRA)

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

Felix Meschberger reassigned SLING-875:
---

Assignee: Felix Meschberger

 New Bundle for a ResourceProvider and Sling Post Operations for interacting 
 with the jackrabbit UserManager
 ---

 Key: SLING-875
 URL: https://issues.apache.org/jira/browse/SLING-875
 Project: Sling
  Issue Type: New Feature
  Components: Servlets Post
Reporter: Eric Norman
Assignee: Felix Meschberger
 Attachments: org.apache.sling.jackrabbit.usermanager.zip, 
 samples.html.esp, usermanager_integrationtests.zip


 This is a new bundle that provides a custom ResourceProvider and 
 SlingPostOperations for interacting with the Jackrabbit UserManager.
 The ResourceProvider exposes users at this path 
 /system/userManager/user/[userName] and groups at this path 
 /system/userManager/group/[groupName]
 In order for the custom SlingPostOperations to work, the patch for SLING-651 
 must be applied first.
 These custom SlingPostOperations are provided:
 1. createUser
 2. createGroup
 3. changePassword
 4. updateAuthorizable
 5. deleteAuthorizable
 Sample usage of the operations is in the samples.html.esp attachment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (SLING-875) New Bundle for a ResourceProvider and Sling Post Operations for interacting with the jackrabbit UserManager

2009-02-27 Thread Felix Meschberger (JIRA)

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

Felix Meschberger commented on SLING-875:
-

Thanks for supplying these patches, after having applied the last path for the 
SlingPostServlet of SLING-651 I am now going to apply these patches.

 New Bundle for a ResourceProvider and Sling Post Operations for interacting 
 with the jackrabbit UserManager
 ---

 Key: SLING-875
 URL: https://issues.apache.org/jira/browse/SLING-875
 Project: Sling
  Issue Type: New Feature
  Components: Servlets Post
Reporter: Eric Norman
Assignee: Felix Meschberger
 Attachments: org.apache.sling.jackrabbit.usermanager.zip, 
 samples.html.esp, usermanager_integrationtests.zip


 This is a new bundle that provides a custom ResourceProvider and 
 SlingPostOperations for interacting with the Jackrabbit UserManager.
 The ResourceProvider exposes users at this path 
 /system/userManager/user/[userName] and groups at this path 
 /system/userManager/group/[groupName]
 In order for the custom SlingPostOperations to work, the patch for SLING-651 
 must be applied first.
 These custom SlingPostOperations are provided:
 1. createUser
 2. createGroup
 3. changePassword
 4. updateAuthorizable
 5. deleteAuthorizable
 Sample usage of the operations is in the samples.html.esp attachment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (SLING-875) New Bundle for a ResourceProvider and Sling Post Operations for interacting with the jackrabbit UserManager

2009-02-27 Thread Felix Meschberger (JIRA)

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

Felix Meschberger commented on SLING-875:
-

Added the user manager as bundles/jcr/jackrabbit-usermanager in Rev. 748454.

I think, that this is a substantial addition to Sling which is warranted to 
immediately be promoted to being included in the next full build release. For 
this reason I added it to bundles instead of contrib.

 New Bundle for a ResourceProvider and Sling Post Operations for interacting 
 with the jackrabbit UserManager
 ---

 Key: SLING-875
 URL: https://issues.apache.org/jira/browse/SLING-875
 Project: Sling
  Issue Type: New Feature
  Components: Servlets Post
Reporter: Eric Norman
Assignee: Felix Meschberger
 Attachments: org.apache.sling.jackrabbit.usermanager.zip, 
 samples.html.esp, usermanager_integrationtests.zip


 This is a new bundle that provides a custom ResourceProvider and 
 SlingPostOperations for interacting with the Jackrabbit UserManager.
 The ResourceProvider exposes users at this path 
 /system/userManager/user/[userName] and groups at this path 
 /system/userManager/group/[groupName]
 In order for the custom SlingPostOperations to work, the patch for SLING-651 
 must be applied first.
 These custom SlingPostOperations are provided:
 1. createUser
 2. createGroup
 3. changePassword
 4. updateAuthorizable
 5. deleteAuthorizable
 Sample usage of the operations is in the samples.html.esp attachment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (SLING-875) New Bundle for a ResourceProvider and Sling Post Operations for interacting with the jackrabbit UserManager

2009-02-27 Thread Felix Meschberger (JIRA)

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

Felix Meschberger commented on SLING-875:
-

Added the integration tests to launchpad/testing in Rev. 748459 and added the 
jackrabbit-usermanager bundle to launchpad/bundles in Rev. 748457

 New Bundle for a ResourceProvider and Sling Post Operations for interacting 
 with the jackrabbit UserManager
 ---

 Key: SLING-875
 URL: https://issues.apache.org/jira/browse/SLING-875
 Project: Sling
  Issue Type: New Feature
  Components: Servlets Post
Reporter: Eric Norman
Assignee: Felix Meschberger
 Attachments: org.apache.sling.jackrabbit.usermanager.zip, 
 samples.html.esp, usermanager_integrationtests.zip


 This is a new bundle that provides a custom ResourceProvider and 
 SlingPostOperations for interacting with the Jackrabbit UserManager.
 The ResourceProvider exposes users at this path 
 /system/userManager/user/[userName] and groups at this path 
 /system/userManager/group/[groupName]
 In order for the custom SlingPostOperations to work, the patch for SLING-651 
 must be applied first.
 These custom SlingPostOperations are provided:
 1. createUser
 2. createGroup
 3. changePassword
 4. updateAuthorizable
 5. deleteAuthorizable
 Sample usage of the operations is in the samples.html.esp attachment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (SLING-875) New Bundle for a ResourceProvider and Sling Post Operations for interacting with the jackrabbit UserManager

2009-02-27 Thread Felix Meschberger (JIRA)

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

Felix Meschberger commented on SLING-875:
-

Hi Eric,

thanks again for contributing this extension. I have added it to our source 
with the exception of the sample script. I am not sure, where to put it.

Would this be intended to go somewhere on the documentation wiki ?

Regards
Felix

 New Bundle for a ResourceProvider and Sling Post Operations for interacting 
 with the jackrabbit UserManager
 ---

 Key: SLING-875
 URL: https://issues.apache.org/jira/browse/SLING-875
 Project: Sling
  Issue Type: New Feature
  Components: Servlets Post
Reporter: Eric Norman
Assignee: Felix Meschberger
 Attachments: org.apache.sling.jackrabbit.usermanager.zip, 
 samples.html.esp, usermanager_integrationtests.zip


 This is a new bundle that provides a custom ResourceProvider and 
 SlingPostOperations for interacting with the Jackrabbit UserManager.
 The ResourceProvider exposes users at this path 
 /system/userManager/user/[userName] and groups at this path 
 /system/userManager/group/[groupName]
 In order for the custom SlingPostOperations to work, the patch for SLING-651 
 must be applied first.
 These custom SlingPostOperations are provided:
 1. createUser
 2. createGroup
 3. changePassword
 4. updateAuthorizable
 5. deleteAuthorizable
 Sample usage of the operations is in the samples.html.esp attachment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (SLING-875) New Bundle for a ResourceProvider and Sling Post Operations for interacting with the jackrabbit UserManager

2009-02-27 Thread Felix Meschberger (JIRA)

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

Felix Meschberger commented on SLING-875:
-

This is in fact an extension to the SlingPostServlet in the form of 
SlingPostOperations, the default servlet is not touched nor modified.

 New Bundle for a ResourceProvider and Sling Post Operations for interacting 
 with the jackrabbit UserManager
 ---

 Key: SLING-875
 URL: https://issues.apache.org/jira/browse/SLING-875
 Project: Sling
  Issue Type: New Feature
  Components: Servlets Post
Reporter: Eric Norman
Assignee: Felix Meschberger
 Attachments: org.apache.sling.jackrabbit.usermanager.zip, 
 samples.html.esp, usermanager_integrationtests.zip


 This is a new bundle that provides a custom ResourceProvider and 
 SlingPostOperations for interacting with the Jackrabbit UserManager.
 The ResourceProvider exposes users at this path 
 /system/userManager/user/[userName] and groups at this path 
 /system/userManager/group/[groupName]
 In order for the custom SlingPostOperations to work, the patch for SLING-651 
 must be applied first.
 These custom SlingPostOperations are provided:
 1. createUser
 2. createGroup
 3. changePassword
 4. updateAuthorizable
 5. deleteAuthorizable
 Sample usage of the operations is in the samples.html.esp attachment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



SLING-857 patch

2009-02-27 Thread Vidar Ramdal
Any change of having the SLING-857 patch (reviewed and possibly)
commited any day soon? Pretty-please-with-sugar-on-top?
We're preparing an internal release of our product, and it would make
it easier for us to be able to run on a non-modified Sling base.

-- 
Vidar S. Ramdal vi...@idium.no - http://www.idium.no
Akersgata 16, N-0158 Oslo, Norway


Re: SLING-857 patch

2009-02-27 Thread Felix Meschberger
Hi Vidar,

Vidar Ramdal schrieb:
 Any change of having the SLING-857 patch (reviewed and possibly)
 commited any day soon? Pretty-please-with-sugar-on-top?
 We're preparing an internal release of our product, and it would make
 it easier for us to be able to run on a non-modified Sling base.

Yes, I planned it for today -- or this weekend. Would this suite your
needs ?

Regards
Felix



Re: SLING-857 patch

2009-02-27 Thread Vidar Ramdal
On Fri, Feb 27, 2009 at 3:47 PM, Felix Meschberger fmesc...@gmail.com wrote:
 Hi Vidar,

 Vidar Ramdal schrieb:
 Any change of having the SLING-857 patch (reviewed and possibly)
 commited any day soon? Pretty-please-with-sugar-on-top?
 We're preparing an internal release of our product, and it would make
 it easier for us to be able to run on a non-modified Sling base.

 Yes, I planned it for today -- or this weekend. Would this suite your
 needs ?

Absolutely. I was just afraid it was lost in the system somewhere.
Thanks, and have a great weekend!

-- 
Vidar S. Ramdal vi...@idium.no - http://www.idium.no
Akersgata 16, N-0158 Oslo, Norway


Re: SLING-857 patch

2009-02-27 Thread Torgeir Veimo


On 27 Feb 2009, at 16:24, Vidar Ramdal wrote:


As for Torgeir's request [1] for a custom entity resolver, I haven't
had time to look at it for now, but I believe it should be doable.



This would just be a simple dependency injection? Aren't there  
standard ways of doing this in osgi?


--
Torgeir Veimo
torg...@pobox.com






Re: SLING-857 patch

2009-02-27 Thread Torgeir Veimo


On 27 Feb 2009, at 19:44, Torgeir Veimo wrote:



On 27 Feb 2009, at 16:24, Vidar Ramdal wrote:


As for Torgeir's request [1] for a custom entity resolver, I haven't
had time to look at it for now, but I believe it should be doable.



This would just be a simple dependency injection? Aren't there  
standard ways of doing this in osgi?



It's not so much a generic entity resolver that I'm in need of, more a  
way to include files which would also be inside a bundle. But the  
possibility to resolve eg html style entities would be very useful.


--
Torgeir Veimo
torg...@pobox.com






[jira] Resolved: (SLING-857) Support XSL transformations when importing XML for initial-content

2009-02-27 Thread Felix Meschberger (JIRA)

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

Felix Meschberger resolved SLING-857.
-

Resolution: Fixed

Thanks for supplying the patch. I have applied it in Rev. 748677.

Please close this bug, if this is ok for you.

 Support XSL transformations when importing XML for initial-content
 --

 Key: SLING-857
 URL: https://issues.apache.org/jira/browse/SLING-857
 Project: Sling
  Issue Type: New Feature
  Components: JCR Contentloader
Reporter: Vidar S. Ramdal
Assignee: Felix Meschberger
Priority: Minor
 Fix For: JCR Contentloader 2.0.4

 Attachments: SLING-857.diff


 As described at http://markmail.org/thread/qxi6qw77vgymrdim
 Implementing support for XSL transformations while loading initial-content 
 XML, by looking for the xml-stylesheet processing instruction.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



Re: SLING-857 patch

2009-02-27 Thread Felix Meschberger
Hi Vidar,

Vidar Ramdal schrieb:
 On Fri, Feb 27, 2009 at 3:47 PM, Felix Meschberger fmesc...@gmail.com wrote:
 Hi Vidar,

 Vidar Ramdal schrieb:
 Any change of having the SLING-857 patch (reviewed and possibly)
 commited any day soon? Pretty-please-with-sugar-on-top?
 We're preparing an internal release of our product, and it would make
 it easier for us to be able to run on a non-modified Sling base.
 Yes, I planned it for today -- or this weekend. Would this suite your
 needs ?
 
 Absolutely. I was just afraid it was lost in the system somewhere.
 Thanks, and have a great weekend!

I have applied the patch as you might have seen in the issue mail.

Regards and a great weekend to you, too
Felix


Re: SLING-857 patch

2009-02-27 Thread Felix Meschberger
Hi Torgeir,

Torgeir Veimo schrieb:
 
 On 27 Feb 2009, at 19:44, Torgeir Veimo wrote:
 

 On 27 Feb 2009, at 16:24, Vidar Ramdal wrote:

 As for Torgeir's request [1] for a custom entity resolver, I haven't
 had time to look at it for now, but I believe it should be doable.


 This would just be a simple dependency injection? Aren't there
 standard ways of doing this in osgi?
 
 
 It's not so much a generic entity resolver that I'm in need of, more a
 way to include files which would also be inside a bundle. But the
 possibility to resolve eg html style entities would be very useful.
 

I have applied the patch as is. I think we may still extend the XML
import functionality, but we should do this with separate issues.

Dependency Injection: I would think, that we could support adding custom
entity resolvers by leveraging the OSGi Service Registry: Resolvers are
registered as services and consumed by the content loader.

Regarding include files: Not exactly sure, what you mean here...

Regards
Felix


Re: sling built error(test fail)

2009-02-27 Thread Felix Meschberger
Hmm. This is strange. Can you create issues and attach the surefire
reports ? Thanks.

Regards
Felix

yanjie schrieb:
 HI everyone:
 I use the newest sling mvn clean:install , test fail as follow:
 my system is windowsXP , anyone know why?
 
 thanks.
 
 Results :
 Failed tests:
   testNoRotateSize(org.apache.sling.commons.log.slf4j.SlingLogWriterTest)
   testRotate0Size(org.apache.sling.commons.log.slf4j.SlingLogWriterTest)
   testRotate1Size(org.apache.sling.commons.log.slf4j.SlingLogWriterTest)
 Tests run: 10, Failures: 3, Errors: 0, Skipped: 0
 [INFO] 
 
 [ERROR] BUILD FAILURE
 [INFO] 
 
 [INFO] There are test failures.
 
 2009-02-27 
 
 
 
 yanjie 
 


Re: How can I realize authentication in sling?

2009-02-27 Thread Felix Meschberger
Hi,

yanjie schrieb:
 Hi everyone:
 I want to give a user some policy to handle a node(read or write or modify..) 
 , and other users don't have the policy . Or a group has the policy and the 
 users in the group all have the authentication . how can I use sling to 
 realize it? 

Sling employs the authentication and access control functionality of the
underlying JCR repository (Jackrabbit by default).

So you have to create users and groups in Jackrabbit (I have applied the
SLING-875 patches by Eric Norman today to enable user/group management
in Sling.

In addition you have to set access control in the repository. This is
more problematic at the moment because Jackrabbit 1.5 embedded in Sling
only contains partial support for JSR-283 (aka JCR 2.0) access control
support.

Maybe others on the list are more knowledgeable in this respect...

Regards
Felix



Re: [jira] Created: (SLING-873) Create Sling Commons Java Compiler bundle

2009-02-27 Thread Felix Meschberger
Would it make sense to also use this compiler bundle for the JSP and
Java Servlet scripting ?

Regards
Felix


Stefan Guggisberg (JIRA) schrieb:
 Create Sling Commons Java Compiler bundle 
 --
 
  Key: SLING-873
  URL: https://issues.apache.org/jira/browse/SLING-873
  Project: Sling
   Issue Type: Improvement
   Components: Commons
 Reporter: Stefan Guggisberg
 Priority: Minor
 
 
 The Sling Commons Java Compiler bundle (org.apache.sling.commons.compiler) 
 provides platform independant Java Compilation support using the Eclipse Java 
 Compiler (org.eclipse.jdt).
 
 


[jira] Commented: (SLING-875) New Bundle for a ResourceProvider and Sling Post Operations for interacting with the jackrabbit UserManager

2009-02-27 Thread Eric Norman (JIRA)

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

Eric Norman commented on SLING-875:
---

Hi Felix, thanks for applying the changes.  Regarding the sample script, the 
documentation wiki would probably be a good place for it.  I just thought it 
would be useful to see the usage when evaluating the patch.


Alexander,
I understand your point.  Actually, my first approach was to use a set of 
custom servlets that were bound to the user/group resource types, but I was 
running into some issues and still digesting the how sling works.  Now that I 
think I have a better grasp of things, I'd be willing to submit an updated 
patch that uses that approach if you think that is better.

 New Bundle for a ResourceProvider and Sling Post Operations for interacting 
 with the jackrabbit UserManager
 ---

 Key: SLING-875
 URL: https://issues.apache.org/jira/browse/SLING-875
 Project: Sling
  Issue Type: New Feature
  Components: Servlets Post
Reporter: Eric Norman
Assignee: Felix Meschberger
 Attachments: org.apache.sling.jackrabbit.usermanager.zip, 
 samples.html.esp, usermanager_integrationtests.zip


 This is a new bundle that provides a custom ResourceProvider and 
 SlingPostOperations for interacting with the Jackrabbit UserManager.
 The ResourceProvider exposes users at this path 
 /system/userManager/user/[userName] and groups at this path 
 /system/userManager/group/[groupName]
 In order for the custom SlingPostOperations to work, the patch for SLING-651 
 must be applied first.
 These custom SlingPostOperations are provided:
 1. createUser
 2. createGroup
 3. changePassword
 4. updateAuthorizable
 5. deleteAuthorizable
 Sample usage of the operations is in the samples.html.esp attachment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.