Skip to content

Prevent TypeError when generating XML reports#2856

Merged
muglug merged 3 commits intovimeo:masterfrom
JaredCDN:xml-report-fix
Feb 21, 2020
Merged

Prevent TypeError when generating XML reports#2856
muglug merged 3 commits intovimeo:masterfrom
JaredCDN:xml-report-fix

Conversation

@JaredCDN
Copy link
Copy Markdown
Contributor

The XML generator currently in use (LSS\Array2XML) expects a nested array structure. However, due to the recent introduction of the IssueData type to replace what was previously shaped arrays, Array2XML was getting an array of objects instead. It then proceeds to crash from (eventually) passing null to DOMNode->appendChild(). This commit maps the IssueData array back into the array of shaped arrays that Array2XML knew and loved.

Feel free to edit as desired. This is an admittedly rudimentary fix; just wanted to make an attempt at helping in some capacity. 😅

JaredCDN and others added 3 commits February 20, 2020 19:14
The XML generator currently in use (LSS\Array2XML) expects a nested array structure. However, due to the recent introduction of the IssueData type to replace what was previously shaped arrays, Array2XML was getting an array of objects instead. It then proceeds to crash from (eventually) passing null to DOMNode->appendChild(). This commit maps the IssueData array back into the array of shaped arrays that Array2XML knew and loved.
@muglug muglug merged commit 3b2c9bb into vimeo:master Feb 21, 2020
@muglug
Copy link
Copy Markdown
Collaborator

muglug commented Feb 21, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants