Opened 14 years ago
Closed 14 years ago
Error reporting for invalid xml
The current datadirect handler assumes that the XML data received from schedulesdirect is valid, and silently ignores when it fails to parse the file correctly. I have spent the past 4 days trying to determine why mythfilldatabase was failing to grab data. After examining the raw data from schedulesdirect, I discovered that the XML data was missing an opening tag (causing a tag mismatch, which causes the parser to exit). The attached patch causes an error line to be printed when the parser returns false (occurs when the parser encounters an unexpected EOF or invalid XML).
Change History (4)
Changed 14 years ago by Nick King <penguin@…>
Owner: |
changed from stuartm to robertm
|
Status: |
new →
assigned
|
Milestone: |
unknown →
0.24
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
(In [25999]) If Schedules Direct XML downloaded fails to properly parse, output an error message and mark return as not ok. Could probably use a better error handler to indicate where the parse error is, but I don't have time to look at it right now. Fixes #8686.