{"action":"created","issue":{"url":"https://api.github.com/repos/OData/WebApi/issues/1421","repository_url":"https://api.github.com/repos/OData/WebApi","labels_url":"https://api.github.com/repos/OData/WebApi/issues/1421/labels{/name}","comments_url":"https://api.github.com/repos/OData/WebApi/issues/1421/comments","events_url":"https://api.github.com/repos/OData/WebApi/issues/1421/events","html_url":"https://github.com/OData/WebApi/issues/1421","id":319099231,"node_id":"MDU6SXNzdWUzMTkwOTkyMzE=","number":1421,"title":"\"Does not support untyped value in non-open type.\" when structured type is received and properties are in incorrect case","user":{"login":"fpintos","id":4239171,"node_id":"MDQ6VXNlcjQyMzkxNzE=","avatar_url":"https://avatars2.githubusercontent.com/u/4239171?v=4","gravatar_id":"","url":"https://api.github.com/users/fpintos","html_url":"https://github.com/fpintos","followers_url":"https://api.github.com/users/fpintos/followers","following_url":"https://api.github.com/users/fpintos/following{/other_user}","gists_url":"https://api.github.com/users/fpintos/gists{/gist_id}","starred_url":"https://api.github.com/users/fpintos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpintos/subscriptions","organizations_url":"https://api.github.com/users/fpintos/orgs","repos_url":"https://api.github.com/users/fpintos/repos","events_url":"https://api.github.com/users/fpintos/events{/privacy}","received_events_url":"https://api.github.com/users/fpintos/received_events","type":"User","site_admin":false},"labels":[{"id":614080787,"node_id":"MDU6TGFiZWw2MTQwODA3ODc=","url":"https://api.github.com/repos/OData/WebApi/labels/P4","name":"P4","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/OData/WebApi/milestones/5","html_url":"https://github.com/OData/WebApi/milestone/5","labels_url":"https://api.github.com/repos/OData/WebApi/milestones/5/labels","id":930843,"node_id":"MDk6TWlsZXN0b25lOTMwODQz","number":5,"title":"vNext","description":"","creator":{"login":"LianwMS","id":9375712,"node_id":"MDQ6VXNlcjkzNzU3MTI=","avatar_url":"https://avatars3.githubusercontent.com/u/9375712?v=4","gravatar_id":"","url":"https://api.github.com/users/LianwMS","html_url":"https://github.com/LianwMS","followers_url":"https://api.github.com/users/LianwMS/followers","following_url":"https://api.github.com/users/LianwMS/following{/other_user}","gists_url":"https://api.github.com/users/LianwMS/gists{/gist_id}","starred_url":"https://api.github.com/users/LianwMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LianwMS/subscriptions","organizations_url":"https://api.github.com/users/LianwMS/orgs","repos_url":"https://api.github.com/users/LianwMS/repos","events_url":"https://api.github.com/users/LianwMS/events{/privacy}","received_events_url":"https://api.github.com/users/LianwMS/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":83,"state":"open","created_at":"2015-01-12T01:18:56Z","updated_at":"2018-06-29T22:40:31Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-05-01T02:36:29Z","updated_at":"2018-08-09T00:05:07Z","closed_at":null,"author_association":"NONE","body":"<!-- markdownlint-disable MD002 MD041 -->\r\n\r\nWhen I receive a JSON object representing a structured type in the payload and the property names have incorrect case, I get back an ODataException with the message \"Does not support untyped value in non-open type.\"\r\n\r\nThe error does not provide a good indication of which type/property is a cause of the error.\r\n\r\n### Assemblies affected\r\n\r\nSystem.Web.OData 6.01.0.10907\r\n\r\n### Reproduce steps\r\n\r\nSend a POST to an entity set and pass a property with incorrect case.\r\n\r\n### Expected result\r\n\r\nEither a better error message, indicating which property is at fault or for property names to be case insensitive.\r\n\r\n### Actual result\r\n\r\nIn DeserializationHelpers.ApplyProperty we receive an ODataProperty but we fail to find its edmProperty. If the structured type is not open, we get the error mentioned above. The client is left to wonder which property is causing trouble.\r\n\r\n### Additional detail\r\n\r\nI found this issue while trying to integrate a workload into MSGraph and sharing a type with Exchange.\r\nIn my schema the types were copied from Graph and have lowercase properties, but in Exchange (which is the source of the particular complex type) the properties are camel case.\r\nWhen sending a request directly to my workload with lowercase properties, things work as expected.\r\nWhen testing via Graph with just my workload in a test schema, things also worked.\r\nBut once I tried to test in Graph with Exchange in the schema, then the issue surfaced, because Graph changed the case of the properties in the payload and then my workload refuses them.\r\n"},"comment":{"url":"https://api.github.com/repos/OData/WebApi/issues/comments/411593369","html_url":"https://github.com/OData/WebApi/issues/1421#issuecomment-411593369","issue_url":"https://api.github.com/repos/OData/WebApi/issues/1421","id":411593369,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTU5MzM2OQ==","user":{"login":"swhillance-mphn","id":34429407,"node_id":"MDQ6VXNlcjM0NDI5NDA3","avatar_url":"https://avatars2.githubusercontent.com/u/34429407?v=4","gravatar_id":"","url":"https://api.github.com/users/swhillance-mphn","html_url":"https://github.com/swhillance-mphn","followers_url":"https://api.github.com/users/swhillance-mphn/followers","following_url":"https://api.github.com/users/swhillance-mphn/following{/other_user}","gists_url":"https://api.github.com/users/swhillance-mphn/gists{/gist_id}","starred_url":"https://api.github.com/users/swhillance-mphn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swhillance-mphn/subscriptions","organizations_url":"https://api.github.com/users/swhillance-mphn/orgs","repos_url":"https://api.github.com/users/swhillance-mphn/repos","events_url":"https://api.github.com/users/swhillance-mphn/events{/privacy}","received_events_url":"https://api.github.com/users/swhillance-mphn/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T00:05:07Z","updated_at":"2018-08-09T00:05:07Z","author_association":"NONE","body":"This issue is causing massive headaches for our team"}}
{"actor":{"display_login":"swhillance-mphn"}}