{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-storage-python/issues/141","repository_url":"https://api.github.com/repos/Azure/azure-storage-python","labels_url":"https://api.github.com/repos/Azure/azure-storage-python/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-storage-python/issues/141/comments","events_url":"https://api.github.com/repos/Azure/azure-storage-python/issues/141/events","html_url":"https://github.com/Azure/azure-storage-python/issues/141","id":140322554,"number":141,"title":"Get/Set metadata story is a bummer","user":{"login":"emgerner-msft","id":5225146,"avatar_url":"https://avatars.githubusercontent.com/u/5225146?v=3","gravatar_id":"","url":"https://api.github.com/users/emgerner-msft","html_url":"https://github.com/emgerner-msft","followers_url":"https://api.github.com/users/emgerner-msft/followers","following_url":"https://api.github.com/users/emgerner-msft/following{/other_user}","gists_url":"https://api.github.com/users/emgerner-msft/gists{/gist_id}","starred_url":"https://api.github.com/users/emgerner-msft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emgerner-msft/subscriptions","organizations_url":"https://api.github.com/users/emgerner-msft/orgs","repos_url":"https://api.github.com/users/emgerner-msft/repos","events_url":"https://api.github.com/users/emgerner-msft/events{/privacy}","received_events_url":"https://api.github.com/users/emgerner-msft/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Azure/azure-storage-python/labels/Migrated%20from%20Azure%20SDK","name":"Migrated from Azure SDK","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-12T00:05:23Z","updated_at":"2016-03-14T17:12:13Z","closed_at":"2016-03-14T17:12:13Z","body":"The following code should 'just work', in my opinion:\r\nmetadata = blob_service.get_container_metadata(state)\r\nblob_service.set_container_metadata(state, metadata)\r\n\r\nWhat I am expecting to happen here is that I retrieve the metadata, and then re-write it. At the moment this isn't possible and returns with the following error:\r\nazure.common.AzureHttpError: The metadata specified is invalid. It has characters that are not permitted.\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>InvalidMetadata</Code><Message>The metadata specified is invalid. It has characters that are not permitted.\r\nRequestId:a91a1861-0001-0067-3cf0-7b83d1000000\r\nTime:2016-03-11T23:47:14.5882290Z</Message></Error>\r\n\r\n\r\nThis EXACT scenario isn't required/necessary, but it is the crux of the problem where I'd simply like to 'append' metadata to existing metadata. In order to work around this I suspect (unless someone points out otherwise) I will need to strip out the x-ms-meta- prefix out of the keys and THEN I can resubmit. That's a lot of extra cycles for the developer, as well as the computer that do nothing but get in the way.\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-storage-python/issues/comments/196416762","html_url":"https://github.com/Azure/azure-storage-python/issues/141#issuecomment-196416762","issue_url":"https://api.github.com/repos/Azure/azure-storage-python/issues/141","id":196416762,"user":{"login":"emgerner-msft","id":5225146,"avatar_url":"https://avatars.githubusercontent.com/u/5225146?v=3","gravatar_id":"","url":"https://api.github.com/users/emgerner-msft","html_url":"https://github.com/emgerner-msft","followers_url":"https://api.github.com/users/emgerner-msft/followers","following_url":"https://api.github.com/users/emgerner-msft/following{/other_user}","gists_url":"https://api.github.com/users/emgerner-msft/gists{/gist_id}","starred_url":"https://api.github.com/users/emgerner-msft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emgerner-msft/subscriptions","organizations_url":"https://api.github.com/users/emgerner-msft/orgs","repos_url":"https://api.github.com/users/emgerner-msft/repos","events_url":"https://api.github.com/users/emgerner-msft/events{/privacy}","received_events_url":"https://api.github.com/users/emgerner-msft/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T17:12:13Z","updated_at":"2016-03-14T17:12:13Z","body":"Haha, thanks, glad you're happy! Will close the issue then."}}