You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by bu...@apache.org on 2006/03/13 09:26:53 UTC

DO NOT REPLY [Bug 38926] - [WebDAV] in the file listing, all files have the .html file extension

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38926>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38926





------- Additional Comments From andreas@apache.org  2006-03-13 08:26 -------
(In reply to comment #0)
> ... even if it is an .odt document (e.g.
> http://localhost:8888/default/webdav/doctypes/opendocument)
> This is because doc.getExtension() (as used in
> modules/webdav/usecases/webdav/propfind.jx) is hardcoded to return html. 
> 
> So, *what is the best way to get the "real" file extention of a file?* There is
> a method document.getSourceExtension(), which returns the value of the metadata
> <lenya:extension>. Adding this metadata to a document, and then using
> ${doc.getSourceExtension()} instead of ${doc.getExtension()} in
> modules/webdav/usecases/webdav/propfind.jx will display the correct extension.
> Is it the way to go?

Yes.

> I see the following issues:
> 1) you need to add the metadata to each document. IMHO the source extension
> should be specified at the ressource-type level, and not document level.

No (see my mail on dev@lenya ("Include file extension in document ID / meta
data?"). Imagine an image resource type (.jpg, .png, .bmp, ...)

> 2) for xhtml docs, we want to be able to display the file extention "xhtml" in
> the webdav folder, and not "xml" 

No idea -> dev@lenya.

-- Andreas



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org