{"action":"closed","issue":{"url":"https://api.github.com/repos/dita-ot/dita-ot/issues/1801","labels_url":"https://api.github.com/repos/dita-ot/dita-ot/issues/1801/labels{/name}","comments_url":"https://api.github.com/repos/dita-ot/dita-ot/issues/1801/comments","events_url":"https://api.github.com/repos/dita-ot/dita-ot/issues/1801/events","html_url":"https://github.com/dita-ot/dita-ot/issues/1801","id":49943094,"number":1801,"title":"Space in URL leads to duplicate entry for key-based file reference","user":{"login":"drmacro","id":1004229,"avatar_url":"https://avatars.githubusercontent.com/u/1004229?v=3","gravatar_id":"","url":"https://api.github.com/users/drmacro","html_url":"https://github.com/drmacro","followers_url":"https://api.github.com/users/drmacro/followers","following_url":"https://api.github.com/users/drmacro/following{/other_user}","gists_url":"https://api.github.com/users/drmacro/gists{/gist_id}","starred_url":"https://api.github.com/users/drmacro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drmacro/subscriptions","organizations_url":"https://api.github.com/users/drmacro/orgs","repos_url":"https://api.github.com/users/drmacro/repos","events_url":"https://api.github.com/users/drmacro/events{/privacy}","received_events_url":"https://api.github.com/users/drmacro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dita-ot/dita-ot/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dita-ot/dita-ot/labels/preprocess/keyref","name":"preprocess/keyref","color":"84b6e8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-11-24T21:12:51Z","updated_at":"2015-11-21T22:48:59Z","closed_at":"2015-11-21T22:48:59Z","body":"For OT 1.8.5 under OS X:\r\n\r\nSee https://dl.dropboxusercontent.com/u/20078596/dita-ot-bugs/escaped-url-mismatch.zip for sample data, including generated output and job.xml file.\r\n\r\nGiven these two topicrefs in a map:\r\n\r\n~~~~\r\n    <keydef keys=\"topic-01\" href=\"../topics/DITAComm%20Topic-dtd.xml\"/>\r\n   <topicref keyref=\"topic-01\" keys=\"chapter-01\"/>\r\n~~~~\r\n\r\nWhere \"DITAComm Topic-dtd.xml\" is the only topic referenced by the map, the job.xml file has two entries, one with the escaped space in the URL, flagged as resource-only, and one without, flagged as not resource only.\r\n\r\nThe resulting HTML output has no topic.\r\n\r\nSo either the URI is not being escaped during the resource-only processing or it's being inappropriately unescaped during key resolution to determine normal-mode topics, resulting in a mismatch that leads to the topic being incorrectly handled as resource-only.\r\n\r\n"}}