Re: Disabling node.infinity.json

2010-01-14 Thread Dominik Süß
Why would this require two runs. The data of depth could be collected while iterating through the levels. It would require some adjustments like prefetching for the current level to check if the result would get too big but appending this list to the other list should be a cheap operation. Best

Re: Disabling node.infinity.json

2010-01-14 Thread Ian Boston
I think, if you wanted to modify the response which is being streamed and may have already been committed then you would need to know in advance. However if the indication that the results were truncated was in the response itself (ie add a continuation URL) then a single pass is probably all

Re: Disabling node.infinity.json

2010-01-14 Thread Dominik Süß
Sure, this would require no direct streaming but buffering the result. But this would always be mandatory if the response code should vary from the determinded data. My idea was to collect data (prepare the response, not writing in the response) and check for depth in the same run. For HTTP this

[jira] Updated: (SLING-1285) Launchpad does not start under windows (launchpad.base.jar is not accessible)

2010-01-14 Thread Bertrand Delacretaz (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bertrand Delacretaz updated SLING-1285: --- Description: Trying to start the launchpad/app jar under Windows says:

[jira] Created: (SLING-1285) Launchpad does not start under windows (launchpad.base.jar is not accessible)

2010-01-14 Thread Bertrand Delacretaz (JIRA)
Launchpad does not start under windows (launchpad.base.jar is not accessible) - Key: SLING-1285 URL: https://issues.apache.org/jira/browse/SLING-1285 Project: Sling

Re: Selective SlingPostProcessors

2010-01-14 Thread Justin Edelson
+1 to the registering PostProcessor for specific resource types. I'm less sure of registering by property name and modification type, mostly because you'll still need to iterate through the modification list. Also, it seems like there could be ambiguous cases, e.g. If I register a

Re: [RT] Identity of resources and adaptables

2010-01-14 Thread Carsten Ziegeler
Mike Müller wrote: Nobody seems to be willing to burn his finger on this topic, nevertheless I try to jump in the hot pot... Hehe, thanks! If the following is given and we talk about the same request Resource a = resolver.getResource(/a/b); Resource b = resolver.getResource(/a/b); I

Re: Selective SlingPostProcessors

2010-01-14 Thread Vidar Ramdal
On Jan 14, 2010, at 7:30 AM, Vidar Ramdal vi...@idium.no wrote: I often write PostProcessors to catch a modification to a resource or property based on certain criteria. [...] On Thu, Jan 14, 2010 at 3:40 PM, Justin Edelson justinedel...@gmail.com wrote: +1 to the registering PostProcessor

Re: [RT] Identity of resources and adaptables

2010-01-14 Thread Justin Edelson
My initial reaction was basically what Mike wrote. But the more I think about it, the more I'm on the fence about: resolver.getResource(/a/b) == resolver.getResource(/a/b) My first instinct was basically what Mike wrote, this can be true, but isn't required to be so. But the more I think about

Re: Selective SlingPostProcessors

2010-01-14 Thread Justin Edelson
On Thu, Jan 14, 2010 at 10:03 AM, Vidar Ramdal vi...@idium.no wrote: On Jan 14, 2010, at 7:30 AM, Vidar Ramdal vi...@idium.no wrote: I often write PostProcessors to catch a modification to a resource or property based on certain criteria. [...] On Thu, Jan 14, 2010 at 3:40 PM, Justin

[jira] Created: (SLING-1286) Warning with invalid path during compilation

2010-01-14 Thread Carsten Ziegeler (JIRA)
Warning with invalid path during compilation Key: SLING-1286 URL: https://issues.apache.org/jira/browse/SLING-1286 Project: Sling Issue Type: Bug Components: Scripting Affects

[jira] Resolved: (SLING-1286) Warning with invalid path during compilation

2010-01-14 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carsten Ziegeler resolved SLING-1286. - Resolution: Fixed Fixed in Revision: 899552 Warning with invalid path during