{"action":"created","issue":{"url":"https://api.github.com/repos/geoadmin/mf-chsdi3/issues/2018","repository_url":"https://api.github.com/repos/geoadmin/mf-chsdi3","labels_url":"https://api.github.com/repos/geoadmin/mf-chsdi3/issues/2018/labels{/name}","comments_url":"https://api.github.com/repos/geoadmin/mf-chsdi3/issues/2018/comments","events_url":"https://api.github.com/repos/geoadmin/mf-chsdi3/issues/2018/events","html_url":"https://github.com/geoadmin/mf-chsdi3/issues/2018","id":146295230,"number":2018,"title":"Strange behaviour of baseURL by printing WMS layers ","user":{"login":"AFoletti","id":691243,"avatar_url":"https://avatars.githubusercontent.com/u/691243?v=3","gravatar_id":"","url":"https://api.github.com/users/AFoletti","html_url":"https://github.com/AFoletti","followers_url":"https://api.github.com/users/AFoletti/followers","following_url":"https://api.github.com/users/AFoletti/following{/other_user}","gists_url":"https://api.github.com/users/AFoletti/gists{/gist_id}","starred_url":"https://api.github.com/users/AFoletti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AFoletti/subscriptions","organizations_url":"https://api.github.com/users/AFoletti/orgs","repos_url":"https://api.github.com/users/AFoletti/repos","events_url":"https://api.github.com/users/AFoletti/events{/privacy}","received_events_url":"https://api.github.com/users/AFoletti/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/geoadmin/mf-chsdi3/labels/2nd%20prio","name":"2nd prio","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"oterral","id":621420,"avatar_url":"https://avatars.githubusercontent.com/u/621420?v=3","gravatar_id":"","url":"https://api.github.com/users/oterral","html_url":"https://github.com/oterral","followers_url":"https://api.github.com/users/oterral/followers","following_url":"https://api.github.com/users/oterral/following{/other_user}","gists_url":"https://api.github.com/users/oterral/gists{/gist_id}","starred_url":"https://api.github.com/users/oterral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oterral/subscriptions","organizations_url":"https://api.github.com/users/oterral/orgs","repos_url":"https://api.github.com/users/oterral/repos","events_url":"https://api.github.com/users/oterral/events{/privacy}","received_events_url":"https://api.github.com/users/oterral/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-04-06T12:09:49Z","updated_at":"2016-04-06T14:21:37Z","closed_at":null,"body":"The baseURL for WMS layers in the request payload by printing behaves strangely with some staging/wms combinations\r\n\r\n**WMS set to wms-bgdi_prod. Layer staging = int**\r\nProtocol is cut from baseURL. WMS used is on dev. --> NOK\r\n```\r\n \"layer\": \"org.epsg.grid_4326\",\r\n      \"opacity\": 1,\r\n      \"type\": \"WMS\",\r\n      \"baseURL\": \"//wms-bgdi.dev.bgdi.ch/?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.0.0\",\r\n      \"layers\": [\r\n        \"org.epsg.grid_4326\"\r\n      ]\r\n```\r\n\r\n**WMS set to wms-bgdi_dev. Layer staging = prod**\r\nProtocol is there again. WMs level is correct. --> OK\r\n```\r\n\"layer\": \"org.epsg.grid_2056\",\r\n      \"opacity\": 1,\r\n      \"type\": \"WMS\",\r\n      \"baseURL\": \"https://wms-bgdi.dev.bgdi.ch/?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.0.0\",\r\n      \"layers\": [\r\n        \"org.epsg.grid_2056\"\r\n      ]\r\n```\r\n\r\n**WMS set to wms-bgdi_prod. Layer staging = prod**\r\nProtocol is there again. WMs level is correct. --> OK\r\n```\r\n\"layer\": \"org.epsg.grid_4326\",\r\n      \"opacity\": 1,\r\n      \"type\": \"WMS\",\r\n      \"baseURL\": \"https://wms.geo.admin.ch/?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.0.0\",\r\n      \"layers\": [\r\n        \"org.epsg.grid_4326\"\r\n      ],\r\n```\r\n\r\nWith staging=int the baseURL misses the protocol, and the wms level used is not what defined in BOD"},"comment":{"url":"https://api.github.com/repos/geoadmin/mf-chsdi3/issues/comments/206396071","html_url":"https://github.com/geoadmin/mf-chsdi3/issues/2018#issuecomment-206396071","issue_url":"https://api.github.com/repos/geoadmin/mf-chsdi3/issues/2018","id":206396071,"user":{"login":"loicgasser","id":3306154,"avatar_url":"https://avatars.githubusercontent.com/u/3306154?v=3","gravatar_id":"","url":"https://api.github.com/users/loicgasser","html_url":"https://github.com/loicgasser","followers_url":"https://api.github.com/users/loicgasser/followers","following_url":"https://api.github.com/users/loicgasser/following{/other_user}","gists_url":"https://api.github.com/users/loicgasser/gists{/gist_id}","starred_url":"https://api.github.com/users/loicgasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loicgasser/subscriptions","organizations_url":"https://api.github.com/users/loicgasser/orgs","repos_url":"https://api.github.com/users/loicgasser/repos","events_url":"https://api.github.com/users/loicgasser/events{/privacy}","received_events_url":"https://api.github.com/users/loicgasser/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T14:21:37Z","updated_at":"2016-04-06T14:21:37Z","body":"I'll investigate"}}