- MGR: Account for new error code returned by the CC in response

to a get_project_config.php request.  It was causing the
        wizards to throw a temp unavailable error page instead
        of the not a boinc project page. Fixes #640
        
    clientgui/
        AccountManagerPropertiesPage.cpp
        ProjectPropertiesPage.cpp

svn path=/trunk/boinc/; revision=17512
This commit is contained in:
Rom Walton 2009-03-05 21:14:40 +00:00
parent c2bccd57ed
commit d6cab7309e
3 changed files with 14 additions and 0 deletions

View File

@ -2731,3 +2731,13 @@ Rom 5 Mar 2009
WizardAttachProject.cpp, .h
win_build/
boincmgr_curl.vcproj
Rom 5 Mar 2009
- MGR: Account for new error code returned by the CC in response
to a get_project_config.php request. It was causing the
wizards to throw a temp unavailable error page instead
of the not a boinc project page. Fixes #640
clientgui/
AccountManagerPropertiesPage.cpp
ProjectPropertiesPage.cpp

View File

@ -326,6 +326,7 @@ void CAccountManagerPropertiesPage::OnStateChange( CAccountManagerPropertiesPage
bSuccessfulCondition =
(!iReturnValue) && (ERR_FILE_NOT_FOUND == pc->error_num) ||
(!iReturnValue) && (ERR_GETHOSTBYNAME == pc->error_num) ||
(!iReturnValue) && (ERR_CONNECT == pc->error_num) ||
(!iReturnValue) && (ERR_XML_PARSE == pc->error_num);
if (bSuccessfulCondition || CHECK_DEBUG_FLAG(WIZDEBUG_ERRPROJECTPROPERTIESURL)) {
SetProjectPropertiesURLFailure(true);
@ -336,6 +337,7 @@ void CAccountManagerPropertiesPage::OnStateChange( CAccountManagerPropertiesPage
bSuccessfulCondition =
((!iReturnValue) && (ERR_FILE_NOT_FOUND != pc->error_num)) &&
((!iReturnValue) && (ERR_GETHOSTBYNAME != pc->error_num)) &&
((!iReturnValue) && (ERR_CONNECT != pc->error_num)) &&
((!iReturnValue) && (ERR_XML_PARSE != pc->error_num)) &&
(!iReturnValue);
if (bSuccessfulCondition || CHECK_DEBUG_FLAG(WIZDEBUG_ERRPROJECTPROPERTIESURL)) {

View File

@ -450,6 +450,7 @@ void CProjectPropertiesPage::OnStateChange( CProjectPropertiesPageEvent& WXUNUSE
bSuccessfulCondition =
(!iReturnValue) && (ERR_FILE_NOT_FOUND == pc->error_num) ||
(!iReturnValue) && (ERR_GETHOSTBYNAME == pc->error_num) ||
(!iReturnValue) && (ERR_CONNECT == pc->error_num) ||
(!iReturnValue) && (ERR_XML_PARSE == pc->error_num);
if (bSuccessfulCondition || CHECK_DEBUG_FLAG(WIZDEBUG_ERRPROJECTPROPERTIESURL)) {
SetProjectPropertiesURLFailure(true);
@ -460,6 +461,7 @@ void CProjectPropertiesPage::OnStateChange( CProjectPropertiesPageEvent& WXUNUSE
bSuccessfulCondition =
((!iReturnValue) && (ERR_FILE_NOT_FOUND != pc->error_num)) &&
((!iReturnValue) && (ERR_GETHOSTBYNAME != pc->error_num)) &&
((!iReturnValue) && (ERR_CONNECT != pc->error_num)) &&
((!iReturnValue) && (ERR_XML_PARSE != pc->error_num)) &&
(!iReturnValue);
if (bSuccessfulCondition || CHECK_DEBUG_FLAG(WIZDEBUG_ERRPROJECTPROPERTIESURL)) {