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/23 22:56:50 UTC

DO NOT REPLY [Bug 39019] - [WebDAV] Files open as read-only in Word 2003

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=39019>.
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=39019





------- Additional Comments From jonathan.addison@wyona.com  2006-03-23 21:56 -------
Created an attachment (id=17961)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17961&action=view)
Patch removes read-only restriction for files opened in Word 2003

The owner field in webdav/xslt/lock.xsl was set to always return
<D:owner><D:href><xsl:value-of select="$userid" /></D:href></D:owner> in the
response to a LOCK request.  For the LOCK to work the owner elements must match
in the request/response.  Since the format of the owner element varies by
application some of those applications would assume the file was already
checked out and open it read-only.

This patch echoes the owner from the request to the response so that they will
match regardless of which client is being used.  At first I thought the removal
of the $userid from lock.xsl would interfere with file locking, but after
testing it turns out that the owner field is only used by the client
application  and not by Lenya itself, so file locking is not affected.

To verify this, open a file for editing with BXE as one user, and then try to
open that same file with Word 2003 (or another editor) as a different user. 
Word will prompt that the file is already checked out and give 3 options for
what to do next (I chose 'Notify when file is unlocked').  Exiting from BXE
releases the lock and Word prompts again that the file can now be opened for
editing.  Quite handy.

In summary, Word 2003 can now be used to open, edit, and save content files
from Lenya.  The files currently open in XML view, but I am working on creating
some simple stylesheets to roundtrip from XHTML to WordML to XHTML for a more
Word-like experience.  

Opening in XML view seems necessary at this point to preserve well-formedness,
but any suggestions are welcome.

I will add these notes to the WebDAV wiki page as well.

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