Please have a look at this very simple patch. I have set the display
name of the VHR to the displayname of the resource that gets versioned.
This makes it easier to find the versions of the resource in the history
folder with non-DeltaV-aware clients like the Windows Explorer as they
are no longer called '4711', but rahter 'Important.doc'. Please note
that this does not effect the path of the VHR, but only the displayname.
What do you folks say? Should we keep it this way or shall I undo my change?
Oliver
[EMAIL PROTECTED] wrote:
ozeigermann 2004/07/15 06:46:21
Modified: src/webdav/server/org/apache/slide/webdav/util
VersioningHelper.java
Log:
Set the display name of the VHR to the name of the resource that gets
versioned to make it a easier to find versions with clients
that do not support DeltaV (like MS Explorer).
Revision Changes Path
1.104 +5 -4 jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/VersioningHelper.java
Index: VersioningHelper.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/VersioningHelper.java,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -r1.103 -r1.104
--- VersioningHelper.java 24 Jun 2004 13:18:52 -0000 1.103
+++ VersioningHelper.java 15 Jul 2004 13:46:21 -0000 1.104
@@ -328,7 +328,8 @@
vhrNrd.setLastModified( new Date() ); // P_GETLASTMODIFIED
vhrNrd.setContentLength( 0 ); // P_GETCONTENTLENGTH
vhrNrd.setETag( PropertyHelper.computeEtag(vhrUri, vhrNrd) ); // P_GETETAG
- vhrNrd.setName( vhrUh.getHistoryName() ); // P_DISPLAYNAME
+// vhrNrd.setName( vhrUh.getHistoryName() ); // P_DISPLAYNAME
+ vhrNrd.setName( rNrd.getName() ); // P_DISPLAYNAME
vhrNrd.setProperty(
new NodeProperty(P_VERSION_SET, pHelp.createHrefValue(vrUri)) );
vrNrd.setCreationDate( new Date() ); // P_CREATIONDATE
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]