{"action":"closed","issue":{"url":"https://api.github.com/repos/geonetwork/core-geonetwork/issues/291","labels_url":"https://api.github.com/repos/geonetwork/core-geonetwork/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/geonetwork/core-geonetwork/issues/291/comments","events_url":"https://api.github.com/repos/geonetwork/core-geonetwork/issues/291/events","html_url":"https://github.com/geonetwork/core-geonetwork/issues/291","id":21826576,"number":291,"title":"UUIDs are not being generated on metadata that is inserted with a stylesheet","user":{"login":"austinkeeley","id":2593741,"avatar_url":"https://avatars.githubusercontent.com/u/2593741?v=3","gravatar_id":"","url":"https://api.github.com/users/austinkeeley","html_url":"https://github.com/austinkeeley","followers_url":"https://api.github.com/users/austinkeeley/followers","following_url":"https://api.github.com/users/austinkeeley/following{/other_user}","gists_url":"https://api.github.com/users/austinkeeley/gists{/gist_id}","starred_url":"https://api.github.com/users/austinkeeley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austinkeeley/subscriptions","organizations_url":"https://api.github.com/users/austinkeeley/orgs","repos_url":"https://api.github.com/users/austinkeeley/repos","events_url":"https://api.github.com/users/austinkeeley/events{/privacy}","received_events_url":"https://api.github.com/users/austinkeeley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2013-10-30T14:04:10Z","updated_at":"2015-01-21T07:14:09Z","closed_at":"2015-01-21T07:14:09Z","body":"I wrote a pull request to fix this at https://github.com/geonetwork/core-geonetwork/pull/290. \r\n\r\nWhen the Insert service is called with a stylesheet, it applies the stylesheet without parameters.  One of the expected parameters is the uuid.  Because it's not passed in, it defaults to the string \"uuid\".  Later, after the stylesheet has been applied, a new UUID isn't generated because the length of \"uuid\" > 0.  \r\n\r\nThe easiest fix is to just remove the default value so that a new UUID can be generated."}}