Atom format and stuffing library into bundle

2008-07-31 Thread Marc Speck
Hi folks, I'm just getting to know Sling and have a few questions. These are rather "user" than devl questions but there seems to be no mailing list for dumb user yet. 1. Do I understand your roadmap correctly: Integrating the Atom syndication format is an issue but for priority reasons, it won't

Re: Atom format and stuffing library into bundle

2008-07-31 Thread Marc Speck
Hi Bertrand Thanks for the very quick answer. On Thu, Jul 31, 2008 at 4:30 PM, Bertrand Delacretaz <[EMAIL PROTECTED] > wrote: > Hi Marc, > > On Thu, Jul 31, 2008 at 3:35 PM, Marc Speck <[EMAIL PROTECTED]> wrote: > > ...I'm just getting to know Sling and have a f

Re: Atom format and stuffing library into bundle

2008-07-31 Thread Marc Speck
On Thu, Jul 31, 2008 at 7:06 PM, Carsten Ziegeler <[EMAIL PROTECTED]>wrote: > Marc Speck wrote > >> >> ok, let's walk that path. One state I reached was for example with adding >> the following to the pom (besides the depe

Re: Atom format and stuffing library into bundle

2008-08-04 Thread Marc Speck
Thanks for your time, Carsten and Christopher. I used Christopher's pom.xml for the sling.samples.simple-demo as described above. This gives me still errors in the console, see pom and output below. On a general note, I have serious doubts about this approach of OSGi. I mean, we are talking here o

Re: Atom format and stuffing library into bundle

2008-08-04 Thread Marc Speck
> > I have to admit, this starts looking very nasty. For a starter you might > just do something like this: > > *;resolution:=optional Well, that's one thing out of 1000 I've already tried. It deploys without grumbling but as soon as I use org.apache.abdera.parser.stax.util.PrettyWriter, I get

Re: Atom format and stuffing library into bundle

2008-08-05 Thread Marc Speck
Your comments are very valuable, Christopher! After setting the scope of abdera-i18n from runtime to compile, everything works. Thanks all for helping going through this extremely painful process.

Sling-Initial-Content and WebDav with custom node type

2008-08-08 Thread Marc Speck
1. Is it possible to load files with into a custom node type? When I try it with foo.png and foo.xml (which contains the definitions), jcr:data is always 0. 1.1 How can I debug the loading of initial content? I install the bundle from Eclipse with maven autoInstallBundle but breakpoints e.g. in o

Re: Sling-Initial-Content and WebDav with custom node type

2008-08-11 Thread Marc Speck
Thanks for the quick response. node type? When I try it with foo.png and foo.xml (which contains the >> definitions), jcr:data is always 0. >> > > 1. Is it possible to load files with into a custom > This is definitely not good. My question: should the node be called foo or > foo.png ? In case it

Re: Sling-Initial-Content and WebDav with custom node type

2008-08-11 Thread Marc Speck
> 1. Is it possible to load files with into a custom >> node type? When I try it with foo.png and foo.xml (which contains the >> definitions), jcr:data is always 0. >> >> Which version of the contentloader are you using? This functionality has > been added after the 2.0.2-incubator release. > I

Related to SLING-613: tunnel exceptions in HTTP status 200 responses

2008-08-25 Thread Marc Speck
I've just read about SLING-613 and thought it's the right moment to raise awareness about Flash/Flex limitations. Besides other limitations, Flash cannot handle any HTTP status besides 200. A solution that has established is to tunnel every response in status 200. For example, Alfresco Webscripts h

Re: Related to SLING-613: tunnel exceptions in HTTP status 200 responses

2008-08-25 Thread Marc Speck
> > > Personally, I don't really think that a client side application running > havock on non-200 response is well behaving ... But given reality, we might > want to support such things. fully agree. Vote for http://bugs.adobe.com/jira/browse/FP-251 ... > > In addition, we will only be able to

Re: Related to SLING-613: tunnel exceptions in HTTP status 200 responses

2008-08-25 Thread Marc Speck
Hi Felix > > We support a special header asking for 200-only responses. The >>> SlingMaingServlet wraps the response such, that the setStatus code is >>> ignored. In this case, the response would also be set non-cacheable and a >>> log message (maybe even a request progress tracker entry) would

Minor bug in SimpleWebDavServlet

2008-09-02 Thread Marc Speck
When PathInfo is null or "/", a response is already created and it makes no sense to call super.service() anymore: Index: SimpleWebDavServlet.java === --- SimpleWebDavServlet.java(revision 691120) +++ SimpleWebDavServlet.java

Re: Minor bug in SimpleWebDavServlet

2008-09-02 Thread Marc Speck
Thanks for patching, it's fine for me. Marc

PlainTextExtractor in repository.xml

2008-10-29 Thread Marc Speck
Is there a reason that org.apache.jackrabbit.extractor.PlainTextExtractor is not registered in the default repository.xml? I took me a while to find this out... A related question is how can I define a custom repository.xml without all the bells and whistle. Is there a configuration path somewhere

Re: PlainTextExtractor in repository.xml

2008-11-04 Thread Marc Speck
Hi Bertrand, On Mon, Nov 3, 2008 at 10:39 PM, Bertrand Delacretaz <[EMAIL PROTECTED] > wrote: > Hi, > > On Wed, Oct 29, 2008 at 5:06 AM, Marc Speck <[EMAIL PROTECTED]> wrote: > > ...Is there a reason that > org.apache.jackrabbit.extractor.PlainTextExtractor is >

Re: PlainTextExtractor in repository.xml

2008-11-05 Thread Marc Speck
On Wed, Nov 5, 2008 at 2:45 AM, Felix Meschberger <[EMAIL PROTECTED]>wrote: > Hi Marc, > > Marc Speck schrieb: > > Is there a reason that org.apache.jackrabbit.extractor.PlainTextExtractor > is > > not registered in the default repository.xml? I took me a while to fi

multitenancy

2008-11-07 Thread Marc Speck
We are evaluating Sling for a multitenancy app. Nothing is shared between tenants and we need to be able to move tenants across servers. So we plan to create a workspace for each tenant. In order not to interfere with Sling paths, the workspace is coded into the host name, e.g. hugosworkspace.examp

Re: multitenancy

2008-11-11 Thread Marc Speck
n the proposal and implement it in the next weeks, I'm fine with waiting for it. Marc On Tue, Nov 11, 2008 at 12:10 PM, Bertrand Delacretaz < [EMAIL PROTECTED]> wrote: > Hi Marc, > > On Fri, Nov 7, 2008 at 3:39 PM, Marc Speck <[EMAIL PROTECTED]> wrote: > > > W

Re: multitenancy

2008-11-11 Thread Marc Speck
Hi Felix > > > Marc Speck schrieb: > > Thanks for the feedback, Bertrand. I'm happy to provide this minor patch. > > However, it seems the new proposal of Felix about > ResourceResolverFactory, > > > http://cwiki.apache.org/SLING/add-resourceresolverfacto

AccessControlUtil.addEntry(), @scr private=, deactivate bundles in mvn?

2009-02-18 Thread Marc Speck
1. AccessControlUtil.addEntry() throws "java.lang.NoSuchMethodException: org.apache.jackrabbit.core.security.authorization.acl.ACLTemplate.addEntry()" as rootCause. I use *;resolution:=optional for that bundle and the following code. accessController = AccessControlUtil.getAccessControlManager(ses

Re: AccessControlUtil.addEntry(), @scr private=, deactivate bundles in mvn?

2009-02-18 Thread Marc Speck
Thanks for the answer, Juanjo. I use acl.addAccessControlEntry(userPrincipal, supportedPrivileges); in other places and it works fine. However, I want to add restrictions to nodes (isAllow=false) . Is this possible with addAccessControlEntry()? Marc On Wed, Feb 18, 2009 at 1:44 PM, Juan José Váz

Re: AccessControlUtil.addEntry(), @scr private=, deactivate bundles in mvn?

2009-02-23 Thread Marc Speck
> > > > I want to add restrictions to nodes > > (isAllow=false) . Is this possible with addAccessControlEntry()? > > I´m sorry Marc, for the time being this feature is not supported. > There are some problems with building a jackrabbit-core osgizied > bundle [1]. AFAIK, It´s planned to erase this r

Re: AccessControlUtil.addEntry(), @scr private=, deactivate bundles in mvn?

2009-02-23 Thread Marc Speck
Thanks for the quick fix, Juanjo. Once I update to the new Sling structure, I'll test it. Marc On Mon, Feb 23, 2009 at 2:14 PM, Juan José Vázquez Delgado < juanjo.vazq...@gmail.com> wrote: > > You mean it's not supported with addAccessControlEntry()? At least > > AccessControlUtil.addEntry() o

SlingWebDavServlet serves resource not only below /dav?

2009-03-17 Thread Marc Speck
While testing a custom bundle, I found that the SlingWebDavServlet also handles HTTP POST requests which are not below the root path (default "/dav"). Is this expected or a bug? To test this behavior, stop o.a.s.server.post bundle and send a POST request. ResourceCollector.getServelts() finds the

Re: AccessControlUtil.addEntry(), @scr private=, deactivate bundles in mvn?

2009-03-17 Thread Marc Speck
I've just tested the patch and got the following error message: ... javax.jcr.RepositoryException: addEntry: org.apache.jackrabbit.core.security.authorization.acl.ACLTemplate.addEntry(): org.apache.jackrabbit.core.security.authorization.acl.ACLTemplate.addEntry() at org.apache.sling.jcr.base.u

Re: AccessControlUtil.addEntry(), @scr private=, deactivate bundles in mvn?

2009-03-18 Thread Marc Speck
r 17, 2009 at 7:33 AM, Marc Speck wrote: > > > I've just tested the patch and got the following error message: > > > > ... javax.jcr.RepositoryException: addEntry: > > > > > org.apache.jack

Re: Configure HTTPS on sling (on top of jetty)

2009-04-06 Thread Marc Speck
We have a minor app proxied through Apache. However, WebDav does not work [1]. Marc [1] https://issues.apache.org/jira/browse/JCR-1873 On Mon, Apr 6, 2009 at 2:41 PM, Bertrand Delacretaz wrote: > Hi, > > On Wed, Apr 1, 2009 at 3:52 PM, Sujoy Bhattacharjee > wrote: > > ...I have a requirement

Re: UserManager

2009-04-21 Thread Marc Speck
Hi Ian On Tue, Apr 21, 2009 at 7:45 PM, Ian Boston wrote: > I have been looking at user manager and the way in which it stores users in > the JCR. > > Is there a suitable place to perform a storage abstraction. At the moment > users all go into 1 folder, and this might be ok for up to a few 1000

Best way to set UTF-8 as default encoding?

2009-05-27 Thread Marc Speck
Besides HTML, we use Flash Player and Adobe Air to connect to Sling. By default, Flash encodes everything in UTF-8. I saw that https://issues.apache.org/jira/browse/SLING-559 resets the UTF-8 default of Jetty back to ISO-8859-1. Only HTML forms can set charset=UTF-8, all other posts are always enco

Re: Queries with large result sets and sorting.

2009-06-15 Thread Marc Speck
I've just read the thread http://markmail.org/message/wnn2bfwzwx2hn6v4 . Maybe it helps, Marc On Mon, Jun 15, 2009 at 6:52 PM, Ian Boston wrote: > Hi, > > I want to perform a query where the full result set could be millions of > items. That set needs to be sorted by the lastModified attribute