geonetwork / core-geonetwork

GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world.
http://geonetwork-opensource.org/
GNU General Public License v2.0
430 stars 489 forks source link

Creation dates added to XML after editing approved records (workflow enabled) #8411

Open arhamqureshi opened 1 month ago

arhamqureshi commented 1 month ago

Describe the bug An additional creation date is added to the XML when a record is edited and saved with the metadata workflow enabled.

To Reproduce Steps to reproduce the behavior:

  1. Enable Metadata Workflow from the settings page
  2. Go to any record and view the XML. Do a CTRL + F for "creation". There should only be one result
  3. Click "Manage Record" -> enable workflow (if it isn't already)
  4. Click "Manage Record" -> "Directly approve metadata" -> "Approve"
  5. Edit the approved record, make a minor edit and save. There will now be a working copy of the record.
  6. View the XML for the working copy and do a CTRL + F for "creation". There will be an additional creation date with the time of when the edit was saved. Once the working copy is approved, the additional creation date still does not go away.

Expected behavior My team and I are not expecting an additional creation date and we are wondering if this is intended or not. If this is intended, is there a way to prevent the additional creation date from being added to the XML?

Screenshots

image

Desktop (please complete the following information):