{"action":"opened","issue":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1323","labels_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1323/labels{/name}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1323/comments","events_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1323/events","html_url":"https://github.com/telefonicaid/fiware-orion/issues/1323","id":109816251,"number":1323,"title":"[BUG] if attr name has \".\" is replace by \"=\" in \"attrNames\" field after replace attribute by ID request","user":{"login":"iariasleon","id":4330098,"avatar_url":"https://avatars.githubusercontent.com/u/4330098?v=3","gravatar_id":"","url":"https://api.github.com/users/iariasleon","html_url":"https://github.com/iariasleon","followers_url":"https://api.github.com/users/iariasleon/followers","following_url":"https://api.github.com/users/iariasleon/following{/other_user}","gists_url":"https://api.github.com/users/iariasleon/gists{/gist_id}","starred_url":"https://api.github.com/users/iariasleon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iariasleon/subscriptions","organizations_url":"https://api.github.com/users/iariasleon/orgs","repos_url":"https://api.github.com/users/iariasleon/repos","events_url":"https://api.github.com/users/iariasleon/events{/privacy}","received_events_url":"https://api.github.com/users/iariasleon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/labels/APIv2","name":"APIv2","color":"5319e7"},{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/labels/P7","name":"P7","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/milestones/18","html_url":"https://github.com/telefonicaid/fiware-orion/milestones/0.25.0","labels_url":"https://api.github.com/repos/telefonicaid/fiware-orion/milestones/18/labels","id":1248196,"number":18,"title":"0.25.0","description":"","creator":{"login":"fgalan","id":1534240,"avatar_url":"https://avatars.githubusercontent.com/u/1534240?v=3","gravatar_id":"","url":"https://api.github.com/users/fgalan","html_url":"https://github.com/fgalan","followers_url":"https://api.github.com/users/fgalan/followers","following_url":"https://api.github.com/users/fgalan/following{/other_user}","gists_url":"https://api.github.com/users/fgalan/gists{/gist_id}","starred_url":"https://api.github.com/users/fgalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgalan/subscriptions","organizations_url":"https://api.github.com/users/fgalan/orgs","repos_url":"https://api.github.com/users/fgalan/repos","events_url":"https://api.github.com/users/fgalan/events{/privacy}","received_events_url":"https://api.github.com/users/fgalan/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":35,"state":"open","created_at":"2015-08-10T13:53:31Z","updated_at":"2015-10-05T15:01:27Z","due_on":"2015-10-30T23:00:00Z","closed_at":null},"comments":0,"created_at":"2015-10-05T15:01:27Z","updated_at":"2015-10-05T15:01:27Z","closed_at":null,"body":"If attribute name has a \".\"  in replace attributes by ID request `PUT /v2/entities/<entity_id>`, this char is replaced by \"=\" in a `\"attrNames\"` field in mongo.\r\n\r\n#### Create request:\r\n```\r\nPOST http://<host>:<port>/v2/entities\r\nContent-Type: application/json \r\nFiware-Service: happy_path\r\nFiware-ServicePath: /test\r\n{\"id\": \"room_0\", \"timestamp.0\": \"pepe\"}\r\n```\r\n\r\n#### Doc in mongo after of create the entity:\r\n```\r\n{ \"_id\" : { \"id\" : \"room_0\", \"servicePath\" : \"/test\" }, \"attrNames\" : [ \"timestamp.0\" ], \"attrs\" : { \"timestamp=0\" : { \"type\" : \"\", \"creDate\" : 1444055885, \"modDate\" : 1444055885, \"value\" : \"pepe\" } }, \"creDate\" : 1444055885, \"modDate\" : 1444055885 }\r\n```\r\n\r\n#### Replace request:\r\n```\r\nPUT http://<host>:<port>/v2/entities/room_0 \r\nContent-Type: application/json \r\nFiware-Service: happy_path\r\nFiware-ServicePath: /test\r\n{\"alarm.pepe\": true}\r\n```\r\n\r\n#### Doc im mongo after of replace the entity:\r\n```\r\n{ \"_id\" : { \"id\" : \"room_0\", \"servicePath\" : \"/test\" }, \"attrNames\" : [ \"alarm=pepe\" ], \"attrs\" : { \"alarm=pepe\" : { \"type\" : \"\", \"creDate\" : 1444056031, \"modDate\" : 1444056031, \"value\" : true, \"md\" : [ ] } }, \"creDate\" : 1444055885, \"modDate\" : 1444056031 }\r\n```"}}