Is in the CQ some best practice related to creation of node in the repository with some user data submitted in the form using POST by anonymous user?
I would like to create nodes under: /content/usergenerated/project/ .... , so for sure I need give a permissions for this location and then guarantee that anonymous user will have possibility to create a node with submitted data.
I see here two solutions. I've ever tried none of them.
First is to create a sling servlet that receive the content node creation. It will then open a CRX session for a precise user (not admin please) that creates the content.
The second is to create an area in the repository where anonymous user have write access and then using a workflow you move the required content to the desired location.