Opened 16 years ago

Last modified 15 years ago

#703 reopened Defect

BOINC should check for errors in xml files without unparsed_xml flag on.

Reported by: Ageless Owned by: davea
Priority: Major Milestone: Undetermined
Component: Client - Daemon Version: 6.2.14
Keywords: Cc: Ageless, Pepo

Description

This bug came up through Michael Tughan, who found that his self-built Macintosh application for one of the projects was dropped by BOINC 6.2.14 as soon as it started.

Both Rom and I checked his app_info.xml file and we could find nothing wrong with it at first. Eventually after checking all other possibilities, our attention returned to the app_info.xml file, where we did find a missing / in an end tag.

So the question is, shouldn't BOINC be checking for things like this, especially when using user supplied applications? Perhaps <unparsed_xml> should be on all the time?

Change History (6)

comment:1 Changed 16 years ago by romw

I'm thinking that user modifiable files should report XML parsing errors even if the unparsed_xml flag isn't defined.

cc_config.xml and app_info.xml are pretty good canidates.

comment:2 Changed 16 years ago by davea

Resolution: fixed
Status: newclosed

(In [15670]) - client: report all errors in parsing app_info.xml files

Fixes #703

comment:3 in reply to:  1 Changed 16 years ago by Pepo

Cc: Pepo added

Replying to romw:

I'm thinking that user modifiable files should report XML parsing errors even if the unparsed_xml flag isn't defined.

cc_config.xml and app_info.xml are pretty good canidates.

If these two, then IMO global_prefs_override.xml too.

comment:4 Changed 16 years ago by Ageless

Resolution: fixed
Status: closedreopened

Reopening and requesting that global_prefs.xml and global_prefs_override.xml are also added to the check.

Having just checked whether or not global_prefs_override.xml is checked for any errors or false flags, I found it isn't being checked.

For testing I added <bongo_jerry>1</bongo_jerry> to the file.
I then went to Read local prefs file from the Advanced menu, it isn't registered as a wrong tag.
Trying to stop&restart BOINC, it isn't registered as a wrong tag.

So what if someone has his file full of typos? Not everyone uses BOINC Manager, which may spell it correctly.

comment:5 Changed 16 years ago by Nicolas

Malformed XML should give errors. Unrecognized tags should give errors only if you ask for it.

Otherwise, a new preference will annoy the user with errors if he has an older BOINC.

comment:6 Changed 16 years ago by romw

Milestone: 6.6Undetermined
Note: See TracTickets for help on using tickets.