Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-stable
Commits
34f19ee9
Commit
34f19ee9
authored
Aug 14, 2007
by
David Johnson
Browse files
Catch another strange xmlrpc error.
parent
f8792e85
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/plabmetrics.php3
View file @
34f19ee9
...
...
@@ -11,7 +11,6 @@ include("showstuff.php3");
$DEF_LIMIT
=
20
;
$DEF_NUMPAGENO
=
10
;
#$FLEXLAB_XMLRPC_SRV = '@USERSNODE@';
$FLEXLAB_XMLRPC_SRV
=
'ops.emulab.net'
;
$FLEXLAB_XMLRPC_SRV_PORT
=
3993
;
...
...
@@ -900,7 +899,8 @@ function pm_filterdata($data) {
}
$response
=
do_xmlrpc
(
$FLEXLAB_XMLRPC_SRV
,
$FLEXLAB_XMLRPC_SRV_PORT
,
'flexlab.getFullyConnectedSet'
,
$xargs
);
if
(
$response
[
0
]
&&
!
xmlrpc_is_fault
(
$response
[
1
]))
{
if
(
is_array
(
$response
)
&&
is_array
(
$response
[
1
])
&&
$response
[
0
]
&&
!
xmlrpc_is_fault
(
$response
[
1
]))
{
#echo "xresp = '" . implode(',',$response[1]) . "'<br>\n";
$rnatmp
=
array
();
$flexlabfcnodes
=
array
();
...
...
@@ -913,22 +913,26 @@ function pm_filterdata($data) {
}
}
}
elseif
(
!
$response
[
0
])
{
$rnatmp
=
$remaining_nodes
;
array_push
(
$opterrs
,
"Error in XMLRPC transport: "
.
$response
[
1
]);
$flexlabfcnodes
=
array
();
}
elseif
(
xmlrpc_is_fault
(
$response
[
1
]))
{
else
{
if
(
is_array
(
$response
)
||
!
is_array
(
$response
[
1
]))
{
array_push
(
$opterrs
,
"XMLRPC Server Error: "
.
$response
[
1
]
.
"!
\n
"
);
}
elseif
(
!
$response
[
0
])
{
array_push
(
$opterrs
,
"Error in XMLRPC transport: "
.
$response
[
1
]);
}
elseif
(
xmlrpc_is_fault
(
$response
[
1
]))
{
array_push
(
$opterrs
,
"XMLRPC fault: code="
.
$response
[
1
][
'faultCode'
]
.
"; msg="
.
$response
[
1
][
'faultString'
]);
}
else
{
array_push
(
$opterrs
,
"Completely unknown XMLRPC error!"
);
}
$rnatmp
=
$remaining_nodes
;
array_push
(
$opterrs
,
"XMLRPC fault: code="
.
$response
[
1
][
'faultCode'
]
.
"; msg="
.
$response
[
1
][
'faultString'
]);
$flexlabfcnodes
=
array
();
}
else
{
}
# Now make sure that the save checkbox gets marked, and that
# recompute is off (try to save computation and keep result set
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment