{"action":"opened","issue":{"url":"https://api.github.com/repos/telefonicaid/fiware-cygnus/issues/592","labels_url":"https://api.github.com/repos/telefonicaid/fiware-cygnus/issues/592/labels{/name}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-cygnus/issues/592/comments","events_url":"https://api.github.com/repos/telefonicaid/fiware-cygnus/issues/592/events","html_url":"https://github.com/telefonicaid/fiware-cygnus/issues/592","id":114626321,"number":592,"title":"[OrionCKANSink] Update the resource name creation, deleting the reference to the old \"default destination\"","user":{"login":"frbattid","id":3865056,"avatar_url":"https://avatars.githubusercontent.com/u/3865056?v=3","gravatar_id":"","url":"https://api.github.com/users/frbattid","html_url":"https://github.com/frbattid","followers_url":"https://api.github.com/users/frbattid/followers","following_url":"https://api.github.com/users/frbattid/following{/other_user}","gists_url":"https://api.github.com/users/frbattid/gists{/gist_id}","starred_url":"https://api.github.com/users/frbattid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frbattid/subscriptions","organizations_url":"https://api.github.com/users/frbattid/orgs","repos_url":"https://api.github.com/users/frbattid/repos","events_url":"https://api.github.com/users/frbattid/events{/privacy}","received_events_url":"https://api.github.com/users/frbattid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/telefonicaid/fiware-cygnus/labels/must","name":"must","color":"f7c6c7"},{"url":"https://api.github.com/repos/telefonicaid/fiware-cygnus/labels/techdebt","name":"techdebt","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"frbattid","id":3865056,"avatar_url":"https://avatars.githubusercontent.com/u/3865056?v=3","gravatar_id":"","url":"https://api.github.com/users/frbattid","html_url":"https://github.com/frbattid","followers_url":"https://api.github.com/users/frbattid/followers","following_url":"https://api.github.com/users/frbattid/following{/other_user}","gists_url":"https://api.github.com/users/frbattid/gists{/gist_id}","starred_url":"https://api.github.com/users/frbattid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frbattid/subscriptions","organizations_url":"https://api.github.com/users/frbattid/orgs","repos_url":"https://api.github.com/users/frbattid/repos","events_url":"https://api.github.com/users/frbattid/events{/privacy}","received_events_url":"https://api.github.com/users/frbattid/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/telefonicaid/fiware-cygnus/milestones/20","html_url":"https://github.com/telefonicaid/fiware-cygnus/milestones/release/0.10.0","labels_url":"https://api.github.com/repos/telefonicaid/fiware-cygnus/milestones/20/labels","id":1318162,"number":20,"title":"release/0.10.0","description":"","creator":{"login":"frbattid","id":3865056,"avatar_url":"https://avatars.githubusercontent.com/u/3865056?v=3","gravatar_id":"","url":"https://api.github.com/users/frbattid","html_url":"https://github.com/frbattid","followers_url":"https://api.github.com/users/frbattid/followers","following_url":"https://api.github.com/users/frbattid/following{/other_user}","gists_url":"https://api.github.com/users/frbattid/gists{/gist_id}","starred_url":"https://api.github.com/users/frbattid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frbattid/subscriptions","organizations_url":"https://api.github.com/users/frbattid/orgs","repos_url":"https://api.github.com/users/frbattid/repos","events_url":"https://api.github.com/users/frbattid/events{/privacy}","received_events_url":"https://api.github.com/users/frbattid/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":12,"state":"open","created_at":"2015-09-22T10:59:01Z","updated_at":"2015-11-02T16:09:29Z","due_on":"2015-11-03T23:00:00Z","closed_at":null},"comments":0,"created_at":"2015-11-02T16:09:29Z","updated_at":"2015-11-02T16:09:29Z","closed_at":null,"body":"Current code is:\r\n\r\n```\r\n    private String buildResName(String destination) throws Exception {\r\n        boolean isDefDestination = destination.startsWith(\"def_\");\r\n        String resName = isDefDestination ? destination.substring(4) : destination;\r\n        \r\n        if (resName.length() > Constants.MAX_NAME_LEN) {\r\n            throw new CygnusBadConfiguration(\"Building resName=destination (\" + resName + \") and its length is greater \"\r\n                    + \"than \" + Constants.MAX_NAME_LEN);\r\n        } // if\r\n\r\n        return resName;\r\n    } // buildResName\r\n```\r\n\r\nIt should be simply:\r\n\r\n```\r\n   private String buildResName(String destination) throws Exception {\r\n        String resName = destination;\r\n        \r\n        if (resName.length() > Constants.MAX_NAME_LEN) {\r\n            throw new CygnusBadConfiguration(\"Building resName=destination (\" + resName + \") and its length is greater \"\r\n                    + \"than \" + Constants.MAX_NAME_LEN);\r\n        } // if\r\n\r\n        return resName;\r\n    } // buildResName\r\n```"}}