{"action":"created","issue":{"url":"https://api.github.com/repos/BOINC/boinc-ng/issues/565","labels_url":"https://api.github.com/repos/BOINC/boinc-ng/issues/565/labels{/name}","comments_url":"https://api.github.com/repos/BOINC/boinc-ng/issues/565/comments","events_url":"https://api.github.com/repos/BOINC/boinc-ng/issues/565/events","html_url":"https://github.com/BOINC/boinc-ng/issues/565","id":56462624,"number":565,"title":"Unescaped ampersands in client_state.xml","user":{"login":"romw","id":985772,"avatar_url":"https://avatars.githubusercontent.com/u/985772?v=3","gravatar_id":"","url":"https://api.github.com/users/romw","html_url":"https://github.com/romw","followers_url":"https://api.github.com/users/romw/followers","following_url":"https://api.github.com/users/romw/following{/other_user}","gists_url":"https://api.github.com/users/romw/gists{/gist_id}","starred_url":"https://api.github.com/users/romw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romw/subscriptions","organizations_url":"https://api.github.com/users/romw/orgs","repos_url":"https://api.github.com/users/romw/repos","events_url":"https://api.github.com/users/romw/events{/privacy}","received_events_url":"https://api.github.com/users/romw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BOINC/boinc-ng/labels/C:%20Client%20-%20Daemon","name":"C: Client - Daemon","color":"0000aa"},{"url":"https://api.github.com/repos/BOINC/boinc-ng/labels/P:%20Minor","name":"P: Minor","color":"dcffff"},{"url":"https://api.github.com/repos/BOINC/boinc-ng/labels/R:%20fixed","name":"R: fixed","color":"55ff55"},{"url":"https://api.github.com/repos/BOINC/boinc-ng/labels/T:%20Defect","name":"T: Defect","color":"cccccc"}],"state":"closed","locked":false,"assignee":{"login":"davidpanderson","id":985729,"avatar_url":"https://avatars.githubusercontent.com/u/985729?v=3","gravatar_id":"","url":"https://api.github.com/users/davidpanderson","html_url":"https://github.com/davidpanderson","followers_url":"https://api.github.com/users/davidpanderson/followers","following_url":"https://api.github.com/users/davidpanderson/following{/other_user}","gists_url":"https://api.github.com/users/davidpanderson/gists{/gist_id}","starred_url":"https://api.github.com/users/davidpanderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidpanderson/subscriptions","organizations_url":"https://api.github.com/users/davidpanderson/orgs","repos_url":"https://api.github.com/users/davidpanderson/repos","events_url":"https://api.github.com/users/davidpanderson/events{/privacy}","received_events_url":"https://api.github.com/users/davidpanderson/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/BOINC/boinc-ng/milestones/3","labels_url":"https://api.github.com/repos/BOINC/boinc-ng/milestones/3/labels","id":964209,"number":3,"title":"Undetermined","description":"Features for this release:\r\n\r\n * WIN: Streamline installer for mass deployments using either Installshield or WiX\r\n","creator":{"login":"romw","id":985772,"avatar_url":"https://avatars.githubusercontent.com/u/985772?v=3","gravatar_id":"","url":"https://api.github.com/users/romw","html_url":"https://github.com/romw","followers_url":"https://api.github.com/users/romw/followers","following_url":"https://api.github.com/users/romw/following{/other_user}","gists_url":"https://api.github.com/users/romw/gists{/gist_id}","starred_url":"https://api.github.com/users/romw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romw/subscriptions","organizations_url":"https://api.github.com/users/romw/orgs","repos_url":"https://api.github.com/users/romw/repos","events_url":"https://api.github.com/users/romw/events{/privacy}","received_events_url":"https://api.github.com/users/romw/received_events","type":"User","site_admin":false},"open_issues":361,"closed_issues":770,"state":"open","created_at":"2015-02-03T19:47:35Z","updated_at":"2015-02-04T06:29:55Z","due_on":"1970-01-01T00:00:00Z","closed_at":null},"comments":12,"created_at":"2015-02-04T00:36:35Z","updated_at":"2015-02-04T15:56:00Z","closed_at":"2015-02-04T00:36:46Z","body":"**Reported by Nicolas on 29 May 38245088 22:13 UTC**\n!PrimeGrid uses scripts to generate input files on the fly. This makes the input files have question marks and ampersands on the URL. The scheduler reply correctly escapes these ampersands as ```&amp;```. But when the client saves the file information on ```client_state.xml```, they get unescaped:\r\n```xml\r\n<file_info>\r\n    <name>psp_sr2sieve_2837737_cmd</name>\r\n    <nbytes>59.000000</nbytes>\r\n    <max_nbytes>0.000000</max_nbytes>\r\n    <status>1</status>\r\n    <url>http://www.primegrid.com/download/psp_sr2sieve_workunit.php?from=3029916000&to=3029916500</url>\r\n</file_info>\r\n```\r\n\r\nThis makes client_state non-wellformed XML. (note even Trac XML syntax highlighting is showing the ampersand in red).\r\n"},"comment":{"url":"https://api.github.com/repos/BOINC/boinc-ng/issues/comments/72879950","html_url":"https://github.com/BOINC/boinc-ng/issues/565#issuecomment-72879950","issue_url":"https://api.github.com/repos/BOINC/boinc-ng/issues/565","id":72879950,"user":{"login":"romw","id":985772,"avatar_url":"https://avatars.githubusercontent.com/u/985772?v=3","gravatar_id":"","url":"https://api.github.com/users/romw","html_url":"https://github.com/romw","followers_url":"https://api.github.com/users/romw/followers","following_url":"https://api.github.com/users/romw/following{/other_user}","gists_url":"https://api.github.com/users/romw/gists{/gist_id}","starred_url":"https://api.github.com/users/romw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romw/subscriptions","organizations_url":"https://api.github.com/users/romw/orgs","repos_url":"https://api.github.com/users/romw/repos","events_url":"https://api.github.com/users/romw/events{/privacy}","received_events_url":"https://api.github.com/users/romw/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T15:56:00Z","updated_at":"2015-02-04T15:56:00Z","body":"**Commented by Nicolas on 1 Mar 39740319 01:20 UTC**\nOriginal problem fixed in [18915]."}}