{"action":"created","issue":{"url":"https://api.github.com/repos/cake-contrib/Cake.Issues.MsBuild/issues/80","repository_url":"https://api.github.com/repos/cake-contrib/Cake.Issues.MsBuild","labels_url":"https://api.github.com/repos/cake-contrib/Cake.Issues.MsBuild/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/cake-contrib/Cake.Issues.MsBuild/issues/80/comments","events_url":"https://api.github.com/repos/cake-contrib/Cake.Issues.MsBuild/issues/80/events","html_url":"https://github.com/cake-contrib/Cake.Issues.MsBuild/issues/80","id":419730922,"node_id":"MDU6SXNzdWU0MTk3MzA5MjI=","number":80,"title":"MSBuild log generated by StyleCop throws ArgumentOutOfRangeException","user":{"login":"brianfeucht","id":1063445,"node_id":"MDQ6VXNlcjEwNjM0NDU=","avatar_url":"https://avatars3.githubusercontent.com/u/1063445?v=4","gravatar_id":"","url":"https://api.github.com/users/brianfeucht","html_url":"https://github.com/brianfeucht","followers_url":"https://api.github.com/users/brianfeucht/followers","following_url":"https://api.github.com/users/brianfeucht/following{/other_user}","gists_url":"https://api.github.com/users/brianfeucht/gists{/gist_id}","starred_url":"https://api.github.com/users/brianfeucht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianfeucht/subscriptions","organizations_url":"https://api.github.com/users/brianfeucht/orgs","repos_url":"https://api.github.com/users/brianfeucht/repos","events_url":"https://api.github.com/users/brianfeucht/events{/privacy}","received_events_url":"https://api.github.com/users/brianfeucht/received_events","type":"User","site_admin":false},"labels":[{"id":681708298,"node_id":"MDU6TGFiZWw2ODE3MDgyOTg=","url":"https://api.github.com/repos/cake-contrib/Cake.Issues.MsBuild/labels/Bug","name":"Bug","color":"ee0701","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/cake-contrib/Cake.Issues.MsBuild/milestones/10","html_url":"https://github.com/cake-contrib/Cake.Issues.MsBuild/milestone/10","labels_url":"https://api.github.com/repos/cake-contrib/Cake.Issues.MsBuild/milestones/10/labels","id":4132334,"node_id":"MDk6TWlsZXN0b25lNDEzMjMzNA==","number":10,"title":"0.6.3","description":"","creator":{"login":"pascalberger","id":2190718,"node_id":"MDQ6VXNlcjIxOTA3MTg=","avatar_url":"https://avatars1.githubusercontent.com/u/2190718?v=4","gravatar_id":"","url":"https://api.github.com/users/pascalberger","html_url":"https://github.com/pascalberger","followers_url":"https://api.github.com/users/pascalberger/followers","following_url":"https://api.github.com/users/pascalberger/following{/other_user}","gists_url":"https://api.github.com/users/pascalberger/gists{/gist_id}","starred_url":"https://api.github.com/users/pascalberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pascalberger/subscriptions","organizations_url":"https://api.github.com/users/pascalberger/orgs","repos_url":"https://api.github.com/users/pascalberger/repos","events_url":"https://api.github.com/users/pascalberger/events{/privacy}","received_events_url":"https://api.github.com/users/pascalberger/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2019-03-12T07:59:46Z","updated_at":"2019-03-12T07:59:55Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2019-03-11T23:25:54Z","updated_at":"2019-03-12T14:19:55Z","closed_at":null,"author_association":"NONE","body":"The following Xml MSBuild log causes an `System.ArgumentOutOfRangeException` : `startIndex cannot be larger than length of string.` \r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<build started=\"3/11/2019 22:29:45\">\r\n  <warning code=\"SA1633\" file=\"File.cs\" line=\"1\" column=\"1\" started=\"3/11/2019 22:29:59\"><![CDATA[The file header is missing or not located at the top of the file.]]></warning>\r\n</build>\r\n```"},"comment":{"url":"https://api.github.com/repos/cake-contrib/Cake.Issues.MsBuild/issues/comments/472020385","html_url":"https://github.com/cake-contrib/Cake.Issues.MsBuild/issues/80#issuecomment-472020385","issue_url":"https://api.github.com/repos/cake-contrib/Cake.Issues.MsBuild/issues/80","id":472020385,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3MjAyMDM4NQ==","user":{"login":"brianfeucht","id":1063445,"node_id":"MDQ6VXNlcjEwNjM0NDU=","avatar_url":"https://avatars3.githubusercontent.com/u/1063445?v=4","gravatar_id":"","url":"https://api.github.com/users/brianfeucht","html_url":"https://github.com/brianfeucht","followers_url":"https://api.github.com/users/brianfeucht/followers","following_url":"https://api.github.com/users/brianfeucht/following{/other_user}","gists_url":"https://api.github.com/users/brianfeucht/gists{/gist_id}","starred_url":"https://api.github.com/users/brianfeucht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianfeucht/subscriptions","organizations_url":"https://api.github.com/users/brianfeucht/orgs","repos_url":"https://api.github.com/users/brianfeucht/repos","events_url":"https://api.github.com/users/brianfeucht/events{/privacy}","received_events_url":"https://api.github.com/users/brianfeucht/received_events","type":"User","site_admin":false},"created_at":"2019-03-12T14:19:55Z","updated_at":"2019-03-12T14:19:55Z","author_association":"NONE","body":"@pascalberger PR created.  \r\n\r\nI may get time to implement a fix today, but poking at it last night it wasn't 100% clear the best way to achieve that yet.\r\n\r\nIt is throwing due to the repository URL being longer than the local file path at https://github.com/cake-contrib/Cake.Issues.MsBuild/blob/22adbbb3e4ab8e85bb4b2bb32768d3ce4d300bf3/src/Cake.Issues.MsBuild/BaseMsBuildLogFileFormat.cs#L80\r\n\r\nI think this code would need to check that the string starts with the repository url before doing the `substring`.  However, we'd need to standardize the path separators before doing as one string has `/` and the other has `\\\\`"}}
{"actor":{"display_login":"brianfeucht"}}