List Info

Thread: DO NOT REPLY in the file listing, all files have the .html file extension




DO NOT REPLY in the file listing, all files have the .html file extension
user name
2006-03-13 08:26:53
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=38
926>.
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 andreasapache.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/opendocu
ment)
> 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 devlenya ("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 -> devlenya.

-- Andreas



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

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )