Hi Felix,
I did that in webdav. ;)
And of course, my.app is a nt:folder. I just use /apps/my.app as an
example.
thank you for you response.
-----
Jack
在 2008-10-28,下午7:18, Felix Meschberger 写道:
Hi Jack,
付 尧 schrieb:
But I went to an error when I try to add a child node to the node
that
has an dot in its name.
Let's suppose this, there is a node /apps/my.app/resources with
type of
nt:unstructured.
When I post a file to the folder, sling post servlet will give me a
surprise of adding the node to /apps/my/resources, just because the
PathIterator behave like that(It takes .app as an extension).
I am not sure, whether I understand you. How did you create the
/apps/my.app/resources node ? Did you use the SlingPostServlet to
create
it like this ?
POST /apps/my.app/resources ?
It might be possible (I cannot exactly remember the code right now)
that
the SlingPostServlet has a bug creating the required node and cutting
off the extension here.
If you could list the exact steps you do to try to create your nodes,
this might help. Thanks.
Maybe let the PathIterator check the resource's existence (or
escape the
dot in the path?) is the solution here, what do you think?
Folders has one or more dot for name is so natural to me, cause
I'm a
Mac. :)
Yes, names with dots should be possible, I agree.
Regards
Felix