Hudson build is back to stable : sling-trunk-1.6 #567

2010-09-09 Thread Apache Hudson Server
See https://hudson.apache.org/hudson/job/sling-trunk-1.6/567/changes

Build failed in Hudson: sling-trunk-1.5 #878

2010-09-09 Thread Apache Hudson Server
See https://hudson.apache.org/hudson/job/sling-trunk-1.5/878/changes Changes: [cziegeler] Use latest javascript in builder - we plan to release and use this one for sling6 [enorman] SLING-1733 - fix potential ClassCastException -- Started by an SCM

[jira] Resolved: (SLING-1594) Support CommonJS Modules i.e. the require function

2010-09-09 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carsten Ziegeler resolved SLING-1594. - Resolution: Fixed Thanks for your patch, Lars - I've applied it in revision 995334. It

Build failed in Hudson: sling-trunk-1.5 #879

2010-09-09 Thread Apache Hudson Server
See https://hudson.apache.org/hudson/job/sling-trunk-1.5/879/changes Changes: [cziegeler] SLING-1594 : Support CommonJS Modules i.e. the require function. Apply patch from Lars Trieloff -- Started by an SCM change Building remotely on ubuntu1 Updating

[jira] Commented: (SLING-1739) Update Commons Log exported SLF4J version

2010-09-09 Thread Felix Meschberger (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12907555#action_12907555 ] Felix Meschberger commented on SLING-1739: -- Thanks for providing the patch. I

adding a subnode to a resource/node which has a dot('.') in its name does not work

2010-09-09 Thread Clemens Wyss
before entering a bug(?) in jira, I would like to discuss this issue here. When I (try) add a subnode to a resource which has a dot ('.') in its name, it doesn't work AND a 200-response is sent, indicating that content without the dot and extension was modified. E.g. (with Sling Explorer):

Build failed in Hudson: sling-trun k-1.5 » Apache Sling (Parent) #880

2010-09-09 Thread Apache Hudson Server
See https://hudson.apache.org/hudson/job/sling-trunk-1.5/org.apache.sling$sling/880/ -- ===[HUDSON REMOTING CAPACITY]===channel started Executing Maven: -B -f /home/hudson/hudson-slave/workspace/sling-trunk-1.5/trunk/pom.xml clean deploy

Build failed in Hudson: sling-trunk-1.5 #880

2010-09-09 Thread Apache Hudson Server
See https://hudson.apache.org/hudson/job/sling-trunk-1.5/880/changes Changes: [fmeschbe] Use Sling Settings 1.0.0 -- Started by an SCM change Building remotely on ubuntu1 Updating http://svn.apache.org/repos/asf/sling/trunk U

[jira] Created: (SLING-1740) Sling Explorer - Displaying/showing server side errors

2010-09-09 Thread Clemens Wyss (JIRA)
Sling Explorer - Displaying/showing server side errors -- Key: SLING-1740 URL: https://issues.apache.org/jira/browse/SLING-1740 Project: Sling Issue Type: Improvement Components:

[jira] Assigned: (SLING-1740) Sling Explorer - Displaying/showing server side errors

2010-09-09 Thread Clemens Wyss (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Clemens Wyss reassigned SLING-1740: --- Assignee: Clemens Wyss Sling Explorer - Displaying/showing server side errors

[jira] Updated: (SLING-1740) Sling Explorer - Displaying/showing server side errors

2010-09-09 Thread Clemens Wyss (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Clemens Wyss updated SLING-1740: Attachment: sling-1740.patch patch which resolves/implements the described improvement Sling

integration tests

2010-09-09 Thread Felix Meschberger
Hi all, Maybe its just me, but currently the Sling (main) integration tests run extremely unstable. Most of the time I only have one failure. But 1 out of 4 runs, I have a random (but rather high) number of test failures. I run mvn -o clean install in the launchpad/testing folder after a full

[jira] Created: (SLING-1741) An exception should be thrown when trying to add a subnode to an nt:file-node

2010-09-09 Thread Clemens Wyss (JIRA)
An exception should be thrown when trying to add a subnode to an nt:file-node - Key: SLING-1741 URL: https://issues.apache.org/jira/browse/SLING-1741 Project: Sling

RE: adding a subnode to a resource/node which has a dot('.') in its name does not work

2010-09-09 Thread Clemens Wyss
Coming back to my permission question: is there no way (no need) to determine whether a given nodetype allows adding subnodes? The nt:file nodetype (without any other mixin node types assigned to the node) only supports one single child node whose name is jcr:content. where/how is this

Re: adding a subnode to a resource/node which has a dot('.') in its name does not work

2010-09-09 Thread Felix Meschberger
Thanks. Regards Felix On 09.09.2010 15:29, Clemens Wyss wrote: -- https://issues.apache.org/jira/browse/SLING-1741 Regards Clemens -Original Message- From: Felix Meschberger [mailto:fmesc...@gmail.com] Sent: Thursday, September 09, 2010 3:17 PM To: dev@sling.apache.org

[DISCUSS] Handling of expired form authentication cookies

2010-09-09 Thread Felix Meschberger
Hi all, When a request is posted with an expired cookie for the form authentication handler, there are basically two options to continue with : (1) continue with the request as if no cookie was provided or (2) fail authentication and request username/password again. Default is the first behaviour

Re: adding a subnode to a resource/node which has a dot('.') in its name does not work

2010-09-09 Thread Justin Edelson
On 9/9/10 9:33 AM, Clemens Wyss wrote: Coming back to my permission question: is there no way (no need) to determine whether a given nodetype allows adding subnodes? You can get the NodeType from NodeTypeManager and call getChildNodeDefinitions(). Take a look at the jcr.webconsole module; it

Re: integration tests

2010-09-09 Thread Justin Edelson
I _was_ seeing this until about a week ago, but it was slightly different... a full reactor build would fail, but mvn clean install in launchpad/testing would always pass. Since about a week ago (sorry, don't know the revision), both have passed pretty consistently. Running a build now...

Re: adding a subnode to a resource/node which has a dot('.') in its name does not work

2010-09-09 Thread Felix Meschberger
Hi, There is but it is a bit complicated. You have to check the primary and mixin node types of the parent node to be. String childName; String childPrimaryNodeType; if (node.getPrimaryNodeType(). canAddChildNode(childName, childPrimaryNodeType)) { return yesWeCan; }

Re: integration tests

2010-09-09 Thread Felix Meschberger
Hi, Addendum: I am running on Linux with either Java 5 or Java 6. Also: The ContentLoaderMiscPropertyTest test on a virgin Sling instance (e.g. by running as a JUnit test from within Eclipse) will always fail. So I suspect the test to expect some left-over file from another test. Regards Felix

RE: adding a subnode to a resource/node which has a dot('.') in its name does not work

2010-09-09 Thread Clemens Wyss
there is also the NodeType#canAddChildNode(java.lang.String childNodeName) method. So, shouldn't/couldn't it be: if ( node.getPrimaryNodeType(). canAddChildNode(hello)) { for(NodeType mixin: node.getMixinNodeTypes()) { if (nodeType.canAddChildNode(hello)) { return

Re: [DISCUSS] Handling of expired form authentication cookies

2010-09-09 Thread Felix Meschberger
Hi, On 09.09.2010 15:41, Felix Meschberger wrote: Since most (if not all) Ajax frameworks (at least JQuery and ExtJS do) send an X-Requested-With set to XMLHttpRequest we could make use of this as follows: if (cookie is expired) { if (XMLHttpRequest.equals(

[jira] Created: (SLING-1742) Built-in HTTP Authentication Handler should use setStatus instead of sendError

2010-09-09 Thread Felix Meschberger (JIRA)
Built-in HTTP Authentication Handler should use setStatus instead of sendError -- Key: SLING-1742 URL: https://issues.apache.org/jira/browse/SLING-1742 Project: Sling

[jira] Resolved: (SLING-1742) Built-in HTTP Authentication Handler should use setStatus instead of sendError

2010-09-09 Thread Felix Meschberger (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger resolved SLING-1742. -- Resolution: Fixed Fixed in Rev. 995511. Built-in HTTP Authentication Handler should

Re: adding a subnode to a resource/node which has a dot('.') in its name does not work

2010-09-09 Thread Justin Edelson
On 9/9/10 10:28 AM, Clemens Wyss wrote: there is also the NodeType#canAddChildNode(java.lang.String childNodeName) method. So, shouldn't/couldn't it be: if ( node.getPrimaryNodeType(). canAddChildNode(hello)) { for(NodeType mixin: node.getMixinNodeTypes()) { if

[jira] Assigned: (SLING-1739) Update Commons Log exported SLF4J version

2010-09-09 Thread Felix Meschberger (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger reassigned SLING-1739: Assignee: Felix Meschberger Update Commons Log exported SLF4J version

[jira] Commented: (SLING-1739) Update Commons Log exported SLF4J version

2010-09-09 Thread Justin Edelson (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12907709#action_12907709 ] Justin Edelson commented on SLING-1739: --- -1 on exporting spi and helpers. These

[jira] Reopened: (SLING-1739) Update Commons Log exported SLF4J version

2010-09-09 Thread Felix Meschberger (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger reopened SLING-1739: -- Reopening to resolve this veto. Update Commons Log exported SLF4J version

Re: integration tests

2010-09-09 Thread Felix Meschberger
Hi, On 09.09.2010 19:56, Justin Edelson wrote: My full-reactor build failure problem is back and it seems to be related to the state of the sling directory in the root of the source tree. $ rm -rf sling $ mvn clean install consistently works Ok, I generally also remove the root sling

Re: integration tests

2010-09-09 Thread Justin Edelson
On 9/9/10 2:21 PM, Felix Meschberger wrote: Hi, On 09.09.2010 19:56, Justin Edelson wrote: My full-reactor build failure problem is back and it seems to be related to the state of the sling directory in the root of the source tree. $ rm -rf sling $ mvn clean install consistently works

Re: [jira] Commented: (SLING-845) Full build with integration test leaves sling folder in root

2010-09-09 Thread Felix Meschberger
Thanks. Regards Felix On 09.09.2010 20:29, Justin Edelson (JIRA) wrote: [ https://issues.apache.org/jira/browse/SLING-845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12907713#action_12907713 ] Justin Edelson commented on SLING-845:

Re: [DISCUSS] Handling of expired form authentication cookies

2010-09-09 Thread Justin Edelson
On 9/9/10 10:59 AM, Felix Meschberger wrote: Hi, On 09.09.2010 15:41, Felix Meschberger wrote: Since most (if not all) Ajax frameworks (at least JQuery and ExtJS do) send an X-Requested-With set to XMLHttpRequest we could make use of this as follows: if (cookie is expired) { if

[jira] Created: (SLING-1743) ${basedir}/sling should be the default value for sling.home in launchpad:run and launchpad:start

2010-09-09 Thread Justin Edelson (JIRA)
${basedir}/sling should be the default value for sling.home in launchpad:run and launchpad:start Key: SLING-1743 URL:

[jira] Resolved: (SLING-1743) ${basedir}/sling should be the default value for sling.home in launchpad:run and launchpad:start

2010-09-09 Thread Justin Edelson (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Justin Edelson resolved SLING-1743. --- Resolution: Fixed ${basedir}/sling should be the default value for sling.home in

RE: adding a subnode to a resource/node which has a dot('.') in its name does not work

2010-09-09 Thread Clemens Wyss
look at using the getChildNodeDefinitions() while drawing the form this is what I am/was after at. For example, on an nt:file node, the user simply shouldn't see the new sub-node button. again, this was my intention I will follwow your advice Thx Clemens -Original Message- From:

Build failed in Hudson: sling-contrib-1.5 » Apache Sling Launchpad Contrib Testing #594

2010-09-09 Thread Apache Hudson Server
See https://hudson.apache.org/hudson/job/sling-contrib-1.5/org.apache.sling$org.apache.sling.launchpad.contrib-testing/594/ -- [INFO] [INFO] Building Apache Sling Launchpad Contrib

[RESULT] [VOTE] Release Apache Sling JCR API, JCR Base, JCR Content Loader, and Jackrabbit Server 2.1.0

2010-09-09 Thread Justin Edelson
Hi, The vote has passed with the following result : +1 (binding): Ian Boston, Carsten Ziegeler, Felix Meschberger, Vidar Ramdal, Eric Norman, Justin Edelson +1 (non binding): Victor Taranenko, Mike Muller I will copy this release to the Sling dist directory and promote the artifacts to the