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 Summary: [WebDAV] in the file listing, all files have the .html file extension Product: Lenya Version: 1.4 Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Miscellaneous AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] ... 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? 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. 2) for xhtml docs, we want to be able to display the file extention "xhtml" in the webdav folder, and not "xml" Any hints? -- 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]
