mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=4313
This commit is contained in:
parent
01786cde87
commit
fd195c642d
|
@ -18239,3 +18239,16 @@ David 9 Oct 2004
|
||||||
assimilator.C
|
assimilator.C
|
||||||
db_purge.C
|
db_purge.C
|
||||||
validator.C
|
validator.C
|
||||||
|
|
||||||
|
David 9 Oct 2004
|
||||||
|
- When parsing a FILE_INFO, always copy the XML to "signed_xml".
|
||||||
|
Otherwise, when the core client tries to upload the file,
|
||||||
|
it sends an empty <file_info> element.
|
||||||
|
|
||||||
|
This fixes a problem in which all uploads fail if a project
|
||||||
|
uses the <dont_generate_upload_certificates/> config option
|
||||||
|
|
||||||
|
client/
|
||||||
|
client_types.C,h
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -501,9 +501,7 @@ int FILE_INFO::parse(MIOFILE& in, bool from_server) {
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (from_server) {
|
strcat(signed_xml, buf);
|
||||||
strcat(signed_xml, buf);
|
|
||||||
}
|
|
||||||
if (parse_str(buf, "<name>", name, sizeof(name))) continue;
|
if (parse_str(buf, "<name>", name, sizeof(name))) continue;
|
||||||
else if (parse_str(buf, "<url>", url.text, sizeof(url.text))) {
|
else if (parse_str(buf, "<url>", url.text, sizeof(url.text))) {
|
||||||
urls.push_back(url);
|
urls.push_back(url);
|
||||||
|
|
|
@ -80,6 +80,8 @@ public:
|
||||||
char signed_xml[MAX_BLOB_LEN];
|
char signed_xml[MAX_BLOB_LEN];
|
||||||
// if the file_info is signed (for uploadable files)
|
// if the file_info is signed (for uploadable files)
|
||||||
// this is the text that is signed
|
// this is the text that is signed
|
||||||
|
// Otherwise it is the FILE_INFO's XML descriptor
|
||||||
|
// (without enclosing <file_info> tags)
|
||||||
char xml_signature[MAX_BLOB_LEN];
|
char xml_signature[MAX_BLOB_LEN];
|
||||||
// ... and this is the signature
|
// ... and this is the signature
|
||||||
char file_signature[MAX_BLOB_LEN];
|
char file_signature[MAX_BLOB_LEN];
|
||||||
|
|
Loading…
Reference in New Issue