geonetwork/core-geonetwork — pull request #290 by austinkeeley (2013-10-30 01:02:42+00:00)
Title: Default UUID values affecting data insertions by not generating a random UUID when null parameters are passed

I noticed when I attempt to insert a WMS GetCapabilities XML, it calls the XSL file without a uuid parameter set. This results in the metadata ID being set to the string literal "uuid". Because this string's length > 0, it never gets a new randomly generated UUID in the Java code (in the Insert class). An easy fix is to just remove the placeholder value so that it is set to the empty string in the XSL and then assigned a random value after the transformation.