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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] ("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 -> [EMAIL PROTECTED] -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
