RE: SlingPostServletClient, helper class?

2010-09-29 Thread Clemens Wyss
how do I enforce jcr:primaryType over SlingPostServlet? -Original Message- From: Clemens Wyss [mailto:clemens...@mysign.ch] Sent: Tuesday, September 28, 2010 5:12 PM To: 'dev@sling.apache.org' Subject: RE: SlingPostServletClient, helper class? SlingIntegrationTestClient doesn't

Re: SlingPostServletClient, helper class?

2010-09-29 Thread Bertrand Delacretaz
On Wed, Sep 29, 2010 at 9:24 AM, Clemens Wyss clemens...@mysign.ch wrote: how do I enforce jcr:primaryType over SlingPostServlet? not sure what you mean...enforcing apples over oranges? ;-) -Bertrand

RE: SlingPostServletClient, helper class?

2010-09-29 Thread Clemens Wyss
I am importing my legacy data using the SlingPostServlet and I would like to enforce the node's primary type I import (now all nodes end up as sling:Folder) -Original Message- From: Bertrand Delacretaz [mailto:bdelacre...@apache.org] Sent: Wednesday, September 29, 2010 9:36 AM To:

Re: SlingPostServletClient, helper class?

2010-09-29 Thread Bertrand Delacretaz
On Wed, Sep 29, 2010 at 9:46 AM, Clemens Wyss clemens...@mysign.ch wrote: I am importing my legacy data using the SlingPostServlet and I would like to enforce the node's primary type I import (now all nodes end up as sling:Folder) Adding a jcr:primaryType parameter to the POST should do it.

RE: SlingPostServletClient, helper class?

2010-09-29 Thread Clemens Wyss
thx, I, once again, tried to make two steps at once ;-) Had jcr:primaryType in the POST but provided a yet unknown type... Tried to register my own nodeType, but unfortunately /jcr:system/jcr/nodeTypes seems to be protected. Can I register my own nodeTypes using the SlingPostServlet at all?

Re: SlingPostServletClient, helper class?

2010-09-29 Thread Bertrand Delacretaz
On Wed, Sep 29, 2010 at 10:59 AM, Clemens Wyss clemens...@mysign.ch wrote: thx, I, once again, tried to make two steps at once ;-) Had jcr:primaryType in the POST but provided a yet unknown type... Tried to register my own nodeType, but unfortunately /jcr:system/jcr/nodeTypes seems to be

Re: SlingPostServletClient, helper class?

2010-09-29 Thread Felix Meschberger
Hi, On 29.09.2010 11:11, Bertrand Delacretaz wrote: On Wed, Sep 29, 2010 at 10:59 AM, Clemens Wyss clemens...@mysign.ch wrote: thx, I, once again, tried to make two steps at once ;-) Had jcr:primaryType in the POST but provided a yet unknown type... Tried to register my own nodeType, but

[jira] Resolved: (SLING-1806) Include helper classes in bundle

2010-09-29 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carsten Ziegeler resolved SLING-1806. - Resolution: Fixed I removed the usage of ResourceUtil completly as this check actually

[jira] Created: (SLING-1811) Use buffered input stream to read serialized information

2010-09-29 Thread Carsten Ziegeler (JIRA)
Use buffered input stream to read serialized information Key: SLING-1811 URL: https://issues.apache.org/jira/browse/SLING-1811 Project: Sling Issue Type: Improvement

[jira] Resolved: (SLING-1811) Use buffered input stream to read serialized information

2010-09-29 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carsten Ziegeler resolved SLING-1811. - Resolution: Fixed Use buffered input and output stream with revision 1002590 Use

Filters before SlingMainServlet

2010-09-29 Thread Ian Boston
Hi, Is it possible to register a filter before the SlingMainServlet ? I can register a filter via the extended http service (PAX Web WebContainer in my case) but I cant get the filter to bind to the SlingMainServlet, IIUC because I cant get hold SlingMainServlets HttpContext. For background

Re: Filters before SlingMainServlet

2010-09-29 Thread Justin Edelson
I guess there's no reason we couldn't expose the HttpContext as an OSGi service, but it seems odd that this would be necessary. It isn't with Felix's HttpService implementation - the default HttpContext is used and the filter is still invoked. Are you binding by pattern or servlet name? Justin