Storing anonymous user data

2010-01-29 Thread Ben Short
Hi, I want to store data for anonymous users, such as the contents of a shopping cart. When the user comes to the site a script will look for a path contained in a cookie. If this cookie present then any 'add to basket' forms will post to it and any requests to show the basket will pull content

Re: Storing anonymous user data

2010-01-29 Thread Vidar Ramdal
On Fri, Jan 29, 2010 at 12:25 PM, Ben Short b...@benshort.co.uk wrote: I want to store data for anonymous users, such as the contents of a shopping cart. When the user comes to the site a script will look for a path contained in a cookie. If this cookie present then any 'add to basket' forms

Re: Storing anonymous user data

2010-01-29 Thread Bertrand Delacretaz
On Fri, Jan 29, 2010 at 12:55 PM, Vidar Ramdal vi...@idium.no wrote:      Node basketsParent = session.getItem(req.getResource().getPath());      Node basket = basketsParent.addNode(/* generate a unique name */); ... To unique name I'd add impossible to guess to prevent people from messing

Re: Storing anonymous user data

2010-01-29 Thread Ben Short
Thank you for the response. I have the following rough class. package com.daisytechnologies.basket; import org.apache.sling.api.SlingHttpServletRequest; import org.apache.sling.api.servlets.HtmlResponse; import org.apache.sling.servlets.post.SlingPostOperation; import

Re: Storing anonymous user data

2010-01-29 Thread Justin Edelson
On Jan 29, 2010, at 8:51 AM, Ben Short b...@benshort.co.uk wrote: Thank you for the response. I have the following rough class. package com.daisytechnologies.basket; import org.apache.sling.api.SlingHttpServletRequest; import org.apache.sling.api.servlets.HtmlResponse; import

Re: Storing anonymous user data

2010-01-29 Thread Ben Short
Seems to deploy fine.. 29.01.2010 14:06:52.747 *INFO* [FelixDispatchQueue] com.daisytechnologies.spike.website-spike BundleEvent STOPPED 29.01.2010 14:06:52.762 *INFO* [FelixDispatchQueue] com.daisytechnologies.spike.website-spike BundleEvent UNRESOLVED 29.01.2010 14:06:52.762 *INFO*

Re: Storing anonymous user data

2010-01-29 Thread Felix Meschberger
Hi, If you are using the @scr.* tags you have to use the maven-scr-plugin to generate the SCR descriptor file. Otherwise the component will not be known and registered This is what I interpret from the log actually. Regards Felix On 29.01.2010 15:08, Ben Short wrote: Seems to deploy

Re: Storing anonymous user data

2010-01-29 Thread Bertrand Delacretaz
On Fri, Jan 29, 2010 at 2:59 PM, Vidar Ramdal vi...@idium.no wrote: ...Check the Felix web console (http://localhost:8080/system/console/bundles) and see that your bundle is listed there, and is active. If it is not, click to expand it and check if any of the imports are listed in red. You

Re: Storing anonymous user data

2010-01-29 Thread Ben Short
OK I have been looking at the Sample Post Servlet Extensions and my pom is pretty much the same. build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration

Re: Storing anonymous user data

2010-01-29 Thread Ben Short
Altering the scr plugin config to the following makes it generate the Service Component Descriptors and add them to the pom. plugin groupIdorg.apache.felix/groupId artifactIdmaven-scr-plugin/artifactId version1.4.2/version executions

Re: Storing anonymous user data

2010-01-29 Thread Felix Meschberger
Hi, It works without the executions stuff, because we have the plugin in the pluginManagement of the parent POM in Sling, while I assume you don't have such a configuration. Therefore you have to explicitly configure it in your project. Regards Felix On 29.01.2010 15:43, Ben Short wrote:

[jira] Created: (SLING-1342) Enable bundle profile active by default in jcr.jackrabbit-server

2010-01-29 Thread Justin Edelson (JIRA)
Enable bundle profile active by default in jcr.jackrabbit-server -- Key: SLING-1342 URL: https://issues.apache.org/jira/browse/SLING-1342 Project: Sling Issue Type: Improvement

[VOTE RESULT] Release Sling JCR API 2.0.6

2010-01-29 Thread Carsten Ziegeler
The vote passed with four binding +1 votes from Bertrand Delacretaz, Felix Meschberger, Ian Boston, and Carsten Ziegeler No other votes have been cast. Thanks vor voting - I'll upload the artifacts asap. Regards Carsten -- Carsten Ziegeler cziege...@apache.org

[jira] Closed: (SLING-1313) API should be exported as 2.0.2

2010-01-29 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-1313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carsten Ziegeler closed SLING-1313. --- API should be exported as 2.0.2 --- Key:

Domain mappings are not updated

2010-01-29 Thread Vidar Ramdal
Our project is stuck with old versions of some Sling bundles for the time being, not having the nerve to update them just weeks before our release. We just discovered that domain mappings are not being picked up, that is, a restart is required before any changes under /etc/map are being

Re: Domain mappings are not updated

2010-01-29 Thread Vidar Ramdal
On Fri, Jan 29, 2010 at 5:37 PM, Vidar Ramdal vi...@idium.no wrote: [...] We just discovered that domain mappings are not being picked up, that is, a restart is required before any changes under /etc/map are being recognized by JcrResourceResolver. [...] Ah, never mind. I see now that the

Dumb question about LoginModulePlugins

2010-01-29 Thread Ian Boston
Hi, IIRC, LoginModules are bound to a session, hence one is created with the session to service its needs, and then destroyed when the session is destroyed. On creation the doInit(CallbackHandler callbackHandler, Session session, Map options) with the session that the LoginModule is bound to.

Hudson build became unstable: sling-trunk -1.5 » Apache Sling Launchpad Testing #524

2010-01-29 Thread Apache Hudson Server
See http://hudson.zones.apache.org/hudson/job/sling-trunk-1.5/org.apache.sling$org.apache.sling.launchpad.testing/524/

Hudson build became unstable: sling-trunk-1.5 #524

2010-01-29 Thread Apache Hudson Server
See http://hudson.zones.apache.org/hudson/job/sling-trunk-1.5/524/changes