Groups Search file issues on webdav
Discussions - subscribe and participate
file issues on webdav
2 messages    expand all | collapse all
Hi there,


I've got some questions regarding the webdav implementation.

Currently we are building a cms like system with folders, xml- and
binary-files.
So as of Davids Modell Rule #6 we use hierarchy nodes like nt:folders and
nt:files for structure and nt:unstructured for content nodes.

The repository has 2 interfaces:
- a webapp to add, edit and delete files
- standard webdav (jcr webapp 1.4)

I enabled versioning on the jcr:content node of nt:files and added some
mixin node definitions.

Ok, so I've got 2 questions.
I searched the web to get some information about autocommit and jcr
through webdav. I've found this issue
http://issues.apache.org/jira/browse/JCR-1348
Is there anything new to this?
I need this feature, maybe I could help?

Another issue is that all my content files have a zero file-size in
webdav.
The structure of these files is comparable to an XML-backed Content
Repository (JCR 170 Sec.5.4)
with a mapping of xml structure to a node-property structure.

I've tried the Windows Explorer, Novell Netdrive and DAVExplorer.
When I copy the file with the Windows Explorer from webdav to local, the
file gets a size and a content,
but editing the file on the server (NetDrive) there is no content.
I need the server editing feature, otherwise webdav doesn't make any sense
in this app.

Maybe the zero-file-size is a bug?

Tobias


_________________________________________________________________

Sachsen DV Betriebs- und Servicegesellschaft mbH
Täubchenweg 26
04317 Leipzig
Amtsgericht Leipzig, HRB 18545

Geschäftsführer: Herbert Roller Brandão, Dr. Jean-Michael Pfitzner

Aufsichtsratsvorsitzender: Andreas Benninger
hi tobias


> I searched the web to get some information about autocommit and jcr
> through webdav. I've found this issue
> http://issues.apache.org/jira/browse/JCR-1348
> Is there anything new to this?

no. this is still open.

> I need this feature, maybe I could help?

sure. there are some thoughts in the issue regarding
the resolution.
some prerequisites i didn't mention: in order to be able
to set custom properties on a webdav resource the underlying
jcr file node must not have it's jcr:content node being
nt:resource (by default it's nt:unstructured in the simple
dav server).

further more: if the DAV:auto-version property was
present in the JCR repository, performing the automated
checkout/checkin or lock/unlock could be done in the
handlers for resource updates/creation.

but note, that this is just a rough guideline. i didn't
carefully think about all the details of the implementation.

> Another issue is that all my content files have a zero file-size in
> webdav.
> The structure of these files is comparable to an XML-backed Content
> Repository (JCR 170 Sec.5.4)
> with a mapping of xml structure to a node-property structure.
[...]
> Maybe the zero-file-size is a bug?

currently the DAV:getcontentlength property is set if
a jcr:data property exists below fileNode/jcr:content.
-> see DefaultHandler#exportProperties (line 435)

if your content structured in a different way (no jcr:data
property) the content length is undefined (not easy to determine).

can you check if this is the reason for the missing
length?

if this is the case you may add your custom Handler
implementation that calculates the length.

hope that helps
angela
« back to discussions | PermaLink