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/11 02:32:30 UTC

DO NOT REPLY [Bug 38926] New: - [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

           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: dev@lenya.apache.org
        ReportedBy: renaud.richardet@wyona.com


... 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: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


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

Posted by bu...@apache.org.
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


thorsten@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From thorsten@apache.org  2006-03-14 11:09 -------
Applied, thx Renaud. :)

Commit de la revisi�n 385788.


-- 
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


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

Posted by bu...@apache.org.
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


thorsten@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|1.4                         |2.0
            Version|1.4                         |2.0




------- Additional Comments From thorsten@apache.org  2007-07-16 01:59 -------
Renaming Lenya 1.4 to 2.0

-- 
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


edit odt with web

Posted by Thorsten Scherler <th...@wyona.com>.
El lun, 13-03-2006 a las 17:37 +0000, bugzilla@apache.org escribió:
...
> http://issues.apache.org/bugzilla/show_bug.cgi?id=38926
...
> ------- Additional Comments From renaud.richardet@wyona.com  2006-03-13 17:37 -------
> Created an attachment (id=17888)
>  --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17888&action=view)
> unified diff against trunk
> 
> - WebDAV file listing shows the real file extension of the content.
> - Added meta extension to .odt sample documents
> - Fixed matcher for /PUT in webdav/sitemap.xmap
> 
> To open an odt with cadaver:
> - cd doctypes
> - set editor ooffice2 
> - edit opendocument_en.odt

I have tried to access the odt file directly with the open dialog of oo
but that is not working.

I as well tried with cadaver. It seems it works for localhost but I did
not had look to connect with my laptop and download and edit it.

It got stucked:
dav:/default/webdav/doctypes/> set editor ooffice2
dav:/default/webdav/doctypes/>  edit opendocument_en.odt
Downloading `/default/webdav/doctypes/opendocument_en.odt'
to /tmp/cadaver-edit-2q1aca.odt connection timed out.

Any ideas?


> 
> TODO:
> - save odt's (and any file type). you can only save xhtml docs ATM
> - not tested on XP
> - Add meta tag <lenya:extension> at document creation
> - add meta tag <lenya:extension>xhtml<lenya:extension> for the current xhtml
> content (not sure this will work??)

-- 
Thorsten Scherler
COO Spain
Wyona Inc.  -  Open Source Content Management  -  Apache Lenya
http://www.wyona.com                   http://lenya.apache.org
thorsten.scherler@wyona.com                thorsten@apache.org


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


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

Posted by bu...@apache.org.
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 renaud.richardet@wyona.com  2006-03-13 17:37 -------
Created an attachment (id=17888)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17888&action=view)
unified diff against trunk

- WebDAV file listing shows the real file extension of the content.
- Added meta extension to .odt sample documents
- Fixed matcher for /PUT in webdav/sitemap.xmap

To open an odt with cadaver:
- cd doctypes
- set editor ooffice2 
- edit opendocument_en.odt

TODO:
- save odt's (and any file type). you can only save xhtml docs ATM
- not tested on XP
- Add meta tag <lenya:extension> at document creation
- add meta tag <lenya:extension>xhtml<lenya:extension> for the current xhtml
content (not sure this will work??)

-- 
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


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

Posted by bu...@apache.org.
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