cancel
Showing results for 
Search instead for 
Did you mean: 

Metadata not updated when a file is redropped from WebDAV

ping
Champ in-the-making
Champ in-the-making
When I update an existing file (overwrite an existing file using WebDAV), the metadata is not getting updated.

Below is what I'm doing:
1. Defined an aspect with custom attributes (as mentioned in http://wiki.alfresco.com/wiki/Displaying_Custom_Metadata).
Turned on the versioning using: <aspect>cm:versionable</aspect>
2. Defined a rule to add the custom aspect to all "inbound" XML files
3. Wrote implementation for MetadataExtracter for XML mime-types and registered the same.
4. Defined a rule to "Extract common metadata fields from content" on "inbound" files.
5. When an XML file is dropped from WebDAV, the metadata is extracted and the custom attributes are displayed correctly (from View Details page).

6. If I modify the XML locally and redrop the file from WebDAV, the rule is not getting fired.
To fix this, I have created another similar rule for "update"
7. Now the rule is called but the custom attributes are not getting saved (when I view the details, it displays the old values for custom attributes). However the content itself is getting updated but not the metadata

Please let me know if I'm doing any mistake here.

Environment:
Alfresco 2.0; Windows XP; MySQL; JDK1.5.0_05
1 REPLY 1

derek
Star Contributor
Star Contributor
Hi,
Try this with the latest code - (http://issues.alfresco.com/browse/AR-1303).

Regards