Hi, On 11.10.2010 00:47, JCR wrote: > Hi all, > > I have an HTML form with > > <input ... name="a/b" value="..." > > > POSTing this form the first time, apache sling will create a child node > of type nt:unstructured, and a string property b. > Sending it subsequently, sling will mutate the string type into > string[], and add the respective value at b[n]. > > Now, that's nice, but not really what I wanted. I really need b > single-valued and overwrite its value in JCR with the latest POST value.
Hmm, this sounds like a bug to me. I would assume that repeatedly posting to a/b should always overwrite the b property. > > What will do the trick? Actually, I cannot reproduce this issue with the latest POST Servlet bundle release 2.1.0. What version are you trying ? What exact POST request do you send ? I tested with: $ curl -uadmin:pass -Fa/b=test http://localhost:8888/content Regards Felix > > Thanks, > Jurg >
