{"action":"created","issue":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1403","labels_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1403/labels{/name}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1403/comments","events_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1403/events","html_url":"https://github.com/telefonicaid/fiware-orion/issues/1403","id":112971554,"number":1403,"title":"Too long tenant names","user":{"login":"kzangeli","id":5338380,"avatar_url":"https://avatars.githubusercontent.com/u/5338380?v=3","gravatar_id":"","url":"https://api.github.com/users/kzangeli","html_url":"https://github.com/kzangeli","followers_url":"https://api.github.com/users/kzangeli/followers","following_url":"https://api.github.com/users/kzangeli/following{/other_user}","gists_url":"https://api.github.com/users/kzangeli/gists{/gist_id}","starred_url":"https://api.github.com/users/kzangeli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzangeli/subscriptions","organizations_url":"https://api.github.com/users/kzangeli/orgs","repos_url":"https://api.github.com/users/kzangeli/repos","events_url":"https://api.github.com/users/kzangeli/events{/privacy}","received_events_url":"https://api.github.com/users/kzangeli/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/labels/should","name":"should","color":"fef2c0"},{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/labels/techdebt","name":"techdebt","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-23T08:03:57Z","updated_at":"2015-12-01T10:06:12Z","closed_at":"2015-12-01T10:06:12Z","body":"The max length of a tenant is set to 50 characters.\r\nIf a request comes in with a tenant name that is longer than 50, it is just silently shortened to 50.\r\nThis is pretty dangerous as this could give complications.\r\nIf somebody uses the broker with 2 \"different\" tenants that are equal until byte 50 and then different in byte 51, this user will believe he's working on two different tenants when really he has only one tenant:\r\n\r\n    tenant1 = this_is_the_very_long_name_of_my_tenant_more_than_fifty_chars_01\r\n    tenant2 = this_is_the_very_long_name_of_my_tenant_more_than_fifty_chars_02\r\n\r\nBoth these tenants will have the name \"this_is_the_very_long_name_of_my_tenant_more_than_\", and only **one** database will be used.\r\n\r\nThe broker should detect this and return an error.\r\n\r\n**Effort: 1 man day** \r\n"},"comment":{"url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/comments/160921807","html_url":"https://github.com/telefonicaid/fiware-orion/issues/1403#issuecomment-160921807","issue_url":"https://api.github.com/repos/telefonicaid/fiware-orion/issues/1403","id":160921807,"user":{"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},"created_at":"2015-12-01T10:06:12Z","updated_at":"2015-12-01T10:06:12Z","body":"Fixed in https://github.com/telefonicaid/fiware-orion/pull/1572."}}