{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/hawkbit/issues/179","repository_url":"https://api.github.com/repos/eclipse/hawkbit","labels_url":"https://api.github.com/repos/eclipse/hawkbit/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/hawkbit/issues/179/comments","events_url":"https://api.github.com/repos/eclipse/hawkbit/issues/179/events","html_url":"https://github.com/eclipse/hawkbit/issues/179","id":155235986,"number":179,"title":"Download URLs for HTTP or HTTPS differently structured","user":{"login":"Silvanoc","id":8374400,"avatar_url":"https://avatars.githubusercontent.com/u/8374400?v=3","gravatar_id":"","url":"https://api.github.com/users/Silvanoc","html_url":"https://github.com/Silvanoc","followers_url":"https://api.github.com/users/Silvanoc/followers","following_url":"https://api.github.com/users/Silvanoc/following{/other_user}","gists_url":"https://api.github.com/users/Silvanoc/gists{/gist_id}","starred_url":"https://api.github.com/users/Silvanoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Silvanoc/subscriptions","organizations_url":"https://api.github.com/users/Silvanoc/orgs","repos_url":"https://api.github.com/users/Silvanoc/repos","events_url":"https://api.github.com/users/Silvanoc/events{/privacy}","received_events_url":"https://api.github.com/users/Silvanoc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eclipse/hawkbit/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/eclipse/hawkbit/labels/task","name":"task","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-17T11:22:39Z","updated_at":"2016-05-18T06:13:26Z","closed_at":"2016-05-18T06:13:26Z","body":"With the merge of [pull 120](https://github.com/eclipse/hawkbit/pull/120) the structure of the JSON providing the download URLs for HTTP has changed the field \"download\" to \"download-http\". But nothing changed for HTTPS, meaning that the download URL remains in the field \"download\".\r\n\r\nIs it a desired behavior? What's the rational behind it?\r\n\r\nThe undesired consequence is that the existence of the field \"download\" or \"download-http\" has to be checked before getting the value.\r\n\r\nHave a look at the code after [this line](https://github.com/eclipse/hawkbit/pull/120/files#diff-47bc1d2d2668aeac239a89de04bd9a5cR90) to better understand what I mean."},"comment":{"url":"https://api.github.com/repos/eclipse/hawkbit/issues/comments/219934459","html_url":"https://github.com/eclipse/hawkbit/issues/179#issuecomment-219934459","issue_url":"https://api.github.com/repos/eclipse/hawkbit/issues/179","id":219934459,"user":{"login":"michahirsch","id":10206349,"avatar_url":"https://avatars.githubusercontent.com/u/10206349?v=3","gravatar_id":"","url":"https://api.github.com/users/michahirsch","html_url":"https://github.com/michahirsch","followers_url":"https://api.github.com/users/michahirsch/followers","following_url":"https://api.github.com/users/michahirsch/following{/other_user}","gists_url":"https://api.github.com/users/michahirsch/gists{/gist_id}","starred_url":"https://api.github.com/users/michahirsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michahirsch/subscriptions","organizations_url":"https://api.github.com/users/michahirsch/orgs","repos_url":"https://api.github.com/users/michahirsch/repos","events_url":"https://api.github.com/users/michahirsch/events{/privacy}","received_events_url":"https://api.github.com/users/michahirsch/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T06:13:26Z","updated_at":"2016-05-18T06:13:26Z","body":"@Silvanoc now I recognized that the link to the documentation is directed to the `SoftwareModuleResource` by means this is not the download resource for the `Direct Device Integration API`. I checked the documentation for the `DDI` and there the `download` and `download-http` links are documented as expected :)\r\n\r\nThe `SoftwareModuleResource` is based on the  `Management API` which I currently does not generate download URLs e.g. for external use to a download-server for devices. \r\n\r\nHere the link to the [Direct Device API Documentation!](http://sp.apps.bosch-iot-cloud.com/documentation/developerguide/apispecifications/directdeviceintegrationapi.html)"}}