{"action":"created","issue":{"url":"https://api.github.com/repos/mapserver/mapserver/issues/5404","repository_url":"https://api.github.com/repos/mapserver/mapserver","labels_url":"https://api.github.com/repos/mapserver/mapserver/issues/5404/labels{/name}","comments_url":"https://api.github.com/repos/mapserver/mapserver/issues/5404/comments","events_url":"https://api.github.com/repos/mapserver/mapserver/issues/5404/events","html_url":"https://github.com/mapserver/mapserver/issues/5404","id":212559295,"number":5404,"title":"add metadata to optionally not emit root layer name in WMS Capabilities XML","user":{"login":"tomkralidis","id":910430,"avatar_url":"https://avatars0.githubusercontent.com/u/910430?v=3","gravatar_id":"","url":"https://api.github.com/users/tomkralidis","html_url":"https://github.com/tomkralidis","followers_url":"https://api.github.com/users/tomkralidis/followers","following_url":"https://api.github.com/users/tomkralidis/following{/other_user}","gists_url":"https://api.github.com/users/tomkralidis/gists{/gist_id}","starred_url":"https://api.github.com/users/tomkralidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomkralidis/subscriptions","organizations_url":"https://api.github.com/users/tomkralidis/orgs","repos_url":"https://api.github.com/users/tomkralidis/repos","events_url":"https://api.github.com/users/tomkralidis/events{/privacy}","received_events_url":"https://api.github.com/users/tomkralidis/received_events","type":"User","site_admin":false},"labels":[{"id":2557002,"url":"https://api.github.com/repos/mapserver/mapserver/labels/WMS%20Server","name":"WMS Server","color":"d7e102","default":false}],"state":"open","locked":false,"assignee":{"login":"tomkralidis","id":910430,"avatar_url":"https://avatars0.githubusercontent.com/u/910430?v=3","gravatar_id":"","url":"https://api.github.com/users/tomkralidis","html_url":"https://github.com/tomkralidis","followers_url":"https://api.github.com/users/tomkralidis/followers","following_url":"https://api.github.com/users/tomkralidis/following{/other_user}","gists_url":"https://api.github.com/users/tomkralidis/gists{/gist_id}","starred_url":"https://api.github.com/users/tomkralidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomkralidis/subscriptions","organizations_url":"https://api.github.com/users/tomkralidis/orgs","repos_url":"https://api.github.com/users/tomkralidis/repos","events_url":"https://api.github.com/users/tomkralidis/events{/privacy}","received_events_url":"https://api.github.com/users/tomkralidis/received_events","type":"User","site_admin":false},"assignees":[{"login":"tomkralidis","id":910430,"avatar_url":"https://avatars0.githubusercontent.com/u/910430?v=3","gravatar_id":"","url":"https://api.github.com/users/tomkralidis","html_url":"https://github.com/tomkralidis","followers_url":"https://api.github.com/users/tomkralidis/followers","following_url":"https://api.github.com/users/tomkralidis/following{/other_user}","gists_url":"https://api.github.com/users/tomkralidis/gists{/gist_id}","starred_url":"https://api.github.com/users/tomkralidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomkralidis/subscriptions","organizations_url":"https://api.github.com/users/tomkralidis/orgs","repos_url":"https://api.github.com/users/tomkralidis/repos","events_url":"https://api.github.com/users/tomkralidis/events{/privacy}","received_events_url":"https://api.github.com/users/tomkralidis/received_events","type":"User","site_admin":false}],"milestone":null,"comments":16,"created_at":"2017-03-07T21:09:05Z","updated_at":"2017-03-18T11:28:34Z","closed_at":null,"body":"A sample GetCapabilities request shows the following:\r\n\r\n```xml\r\n...\r\n<Capability>\r\n...\r\n<Layer>\r\n <Name>foo</Name>\r\n <Title>bar</Title>\r\n...\r\n```\r\n\r\nThe root layer element's `foo` value is derived from the mapfile's `MAP.NAME` value.  WMS says any `Layer` with a `Name` element should be `GetMap` capable.  In our case this requests all layers in the WMS, which may prove problematic for a number of reasons:\r\n\r\n1. potential performance issue\r\n1. if one layer is broken/not functioning, will result in error\r\n1. even on a successful request, the result is not meaningful/valuable\r\n\r\nThe workaround is to set `MAP.NAME` to `\"\"`.  The proper fix is to tell MapServer to not emit the root layer name via something like `\"wms_rootlayer_name_enabled\" \"false\"`"},"comment":{"url":"https://api.github.com/repos/mapserver/mapserver/issues/comments/287537889","html_url":"https://github.com/mapserver/mapserver/issues/5404#issuecomment-287537889","issue_url":"https://api.github.com/repos/mapserver/mapserver/issues/5404","id":287537889,"user":{"login":"tomkralidis","id":910430,"avatar_url":"https://avatars0.githubusercontent.com/u/910430?v=3","gravatar_id":"","url":"https://api.github.com/users/tomkralidis","html_url":"https://github.com/tomkralidis","followers_url":"https://api.github.com/users/tomkralidis/followers","following_url":"https://api.github.com/users/tomkralidis/following{/other_user}","gists_url":"https://api.github.com/users/tomkralidis/gists{/gist_id}","starred_url":"https://api.github.com/users/tomkralidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomkralidis/subscriptions","organizations_url":"https://api.github.com/users/tomkralidis/orgs","repos_url":"https://api.github.com/users/tomkralidis/repos","events_url":"https://api.github.com/users/tomkralidis/events{/privacy}","received_events_url":"https://api.github.com/users/tomkralidis/received_events","type":"User","site_admin":false},"created_at":"2017-03-18T11:28:34Z","updated_at":"2017-03-18T11:28:34Z","body":"@jratike80 thanks, merging."}}
{"actor":{"display_login":"tomkralidis"}}