Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change reflection methods to only report on methods that are being pu…

…blished to the inquiring host (instead of all methods that could be published). MDL-10214, MDL-10174, MDL-10172, MDL-10171
  • Loading branch information...
commit eb1bf095948afc027f05f60d3476e6ff475c6405 1 parent 6fdadd1
donal72 authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 mnet/xmlrpc/server.php
View
7 mnet/xmlrpc/server.php
@@ -542,7 +542,8 @@ function mnet_system($method, $params, $hostinfo) {
WHERE
s2r.rpcid = rpc.id AND
h2s.serviceid = s2r.serviceid AND
- h2s.hostid in ('.$id_list .')
+ h2s.hostid in ('.$id_list .') AND
+ h2s.publish =\'1\'
ORDER BY
rpc.xmlrpc_path ASC';
@@ -563,6 +564,7 @@ function mnet_system($method, $params, $hostinfo) {
s2r.rpcid = rpc.id AND
h2s.serviceid = s2r.serviceid AND
h2s.hostid in ('.$id_list .') AND
+ h2s.publish =\'1\' AND
svc.id = h2s.serviceid AND
svc.name = \''.$params[0].'\'
ORDER BY
@@ -591,6 +593,7 @@ function mnet_system($method, $params, $hostinfo) {
rpc.xmlrpc_path = \''.$params[0].'\' AND
s2r.rpcid = rpc.id AND
h2s.serviceid = s2r.serviceid AND
+ h2s.publish =\'1\' AND
h2s.hostid in ('.$id_list .')';
$result = get_records_sql($query);
@@ -618,6 +621,7 @@ function mnet_system($method, $params, $hostinfo) {
WHERE
rpc.xmlrpc_path = \''.$params[0].'\' AND
s2r.rpcid = rpc.id AND
+ h2s.publish =\'1\' AND
h2s.serviceid = s2r.serviceid AND
h2s.hostid in ('.$id_list .')';
@@ -639,6 +643,7 @@ function mnet_system($method, $params, $hostinfo) {
'.$CFG->prefix.'mnet_service s
WHERE
h2s.serviceid = s.id AND
+ (h2s.publish =\'1\' OR h2s.subscribe =\'1\') AND
h2s.hostid in ('.$id_list .')
ORDER BY
s.name ASC';
Please sign in to comment.
Something went wrong with that request. Please try again.