Hi, when I copy a file, the file will be copied physical but the property "displayname" of the new file is still unchanged. Therefor you can't see the new file within the windows explore.
This is more a problem of Windows Explorer than of Slide. Explorer, like any other client, should not rely on the displayname property, but the actual URI of the resource. Moreover the COPY operation should preserve the values of the not live properties, so I think Slide behaves absolute correctly.
Hi, I reopen this issue because I want to add a patch that allows to configure whether the displayname is maintained while copy/move. The patch only changes MacroImpl.java. The patch introduces a namespace parameter "maintain-displayname". If the parameter is set to "true" than the displayname property is updated to the new filename if the displayname before the copy/move action was the filename. If the parameter is not "true" the displayname is not changed. The patch also adds the regeneration of the etag property as requested by bug 3925. Wich the patch all functional testcases work. I also add to testcases, one for copy, one for move. Both will fail without the patch, because of unexpected displayname value, and will path with the patch. Hopefully this met your approval. Stefan.
Created attachment 11412 [details] Patch as announced
Created attachment 11413 [details] testcase for copy with updated displayname
Created attachment 11414 [details] testcase for move with updated displayname
I'have now fixed this, but I have changed the approach. I have written a lister using the new event features of slide. The listener is org.apache.slide.macro.MacroPropertyUpdater. To enable this you have to add something like the following to the events section of yout domain.xml. <event classname="org.apache.slide.event.MacroEvent" enable="true"/> <listener classname="org.apache.slide.macro.MacroPropertyUpdater"> <configuration> <update-displayname>true</update-displayname> <update-etag>true</update-etag> <update-owner-on-move>false</update-owner-on-move> <update-owner-on-copy>true</update-owner-on-copy> </configuration> </listener> As you can see the DAV: properties displayname, etag and owner are updated (The sample shows the default parameters) Two testcases are added to verify the solution. functional\copy\copyChangedProperties.xml functional\move\moveChangedProperties.xml Regards, Stefan