Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#467 closed Defect (fixed)

Error parsing the boinc_scheduler tag from master files

Reported by: Thyme Lawn Owned by: davea
Priority: Major Milestone: 5.10
Component: Client - Daemon Version:
Keywords: Cc:

Description (last modified by Nicolas)

There's a fault in the parsing of the "boinc_scheduler" syntax from project master files. It's been bugging me for ages that BOINC has to repeat every scheduler request to APS@home (the first request always gets an "HTTP file not found error").

I finally got round to investigating with Wireshark and found that the there is a difference in the POST lines. The first attempt is always

POST /APS_cgi/cgi"> HTTP/1.1

which always gets a 404 response. The second request is always

POST /APS_cgi/cgi HTTP/1.1

Investigation of the master file revealed that the error must be from the way the

<link rel="boinc_scheduler"href="http://www.apsathome.org/APS_cgi/cgi">

tag is being read, and here's the fix.

scheduler_op.C
309c309
<                 char* q2 = strchr(buf2, '\"');
---
>                 char* q2 = strchr(buf2, '"');

Change History (3)

comment:1 Changed 16 years ago by Nicolas

Description: modified (diff)

At last somebody found the cause! I was getting my server log full of those cgi"> entries.

comment:2 Changed 16 years ago by davea

Resolution: fixed
Status: newclosed

(In [14167]) - client: fix bug in parsing of <link rel=boinc_scheduler ...>

element in master files. fixes #467

comment:3 Changed 16 years ago by romw

(In [14179]) - client: fix bug in parsing of <link rel=boinc_scheduler ...>

element in master files. fixes #467

client/

scheduler_op.C

Note: See TracTickets for help on using tickets.