you may need to force the basic authenticator to fire. (Not certain if that is still the case with trunk as of a few days ago.

Try:
curl -Ftitle="some title text" -Ftext="some body text content" 
http://admin:ad...@localhost:8888/my/new/content?sling:authRequestLogin=1

Ian

On 5 May 2009, at 19:17, Glenn Silverman wrote:

When i use curl to add repository content, everything works fine

curl -Ftitle="some title text" -Ftext="some body text content" 
http://admin:ad...@localhost:8888/my/new/content

But when I use an html form:

<form method="POST" action="http://admin:ad...@localhost:8888/my/new/content "> <label>Title: </label><input type="text" name="title" value=""/ ><br/> <label>Text: </label><input type="text" name="text" value=""/ ><br/>
                <input type="Submit" />
            </form>

I get this:

Error while processing /my/new/content
Status  
500
Message         
javax.jcr.AccessDeniedException: /: not allowed to modify item
Location        /my/new/content
Parent Location         /my/new
Path    
/my/new/content
Referer         
ChangeLog       

created("/my");
created("/my/new");
created("/my/new/content");
modified("/my/new/content/title");
modified("/my/new/content/text");


Why is this happening?

Glenn Silverman

Reply via email to