50 Commits

Author SHA1 Message Date
Penny Leach
d234faf3a4 mnet MDL-22267 updated mnet_server_faultand mnet_server_exception string handling
This is so that mnet_server_fault doesn't have to call get_string (in
case of coding exception)
2010-05-01 15:53:45 +00:00
Penny Leach
71f61c41f3 mnet MDL-15505 added new mnet_debug function and started migrating to it 2010-02-05 03:56:45 +00:00
Penny Leach
287efec6f6 mnet MDL-21276 get rid of all the $MNET* globals 2010-02-02 03:13:40 +00:00
Penny Leach
de260e0f7b mnet MDL-21261 large overhaul. This commit changes:
- The way that mnet rpc functions are registered.  Plugins must now
  create db/mnet.php which is an array, similar to services.php.  This
  *replaces* the old mnet_publishes() functions.  version.php must be
  bumped to trigger this.

- More information about each rpc-available function is stored in the
  database, including the class it belongs to, the file it is found in,
  and whether or not it is static.  Methods that are not static must be
  in a class with a constructor that takes no arguments (this can easily
  be achieved with a small wrapper if necessary)

- The xmlrpc dispatcher has been rewritten to remove all the
  dependencies on hardcoded information about auth,mnet,portfolio and
  repository, and just use the information in the database.

- The old hardcoded hidden mnet/testclient.php has been moved to the
  Admin menu under "Development" and rewritten.

- The xmlrpc introspection method profiling is now using php and zend
  reflection - which is a lot nicer than the old way, which was using a
  php-based php parser.  This fixes some inconsistent handling of
  methods without arguments that were advertising their return value as
  the only method parameter.  While this is a *fix*, it breaks BC
  slightly - the old 1.9 broken mnet/testclient.php will now not work
  properly with 2.0

- Dangerous mode is still supported, but old mod/*/rpclib.php is
  now unsupported, due to the fact that any plugin can export mnet
  functions with db/mnet.php.  This is a slight BC break.

Still TODO:

- TEST TEST TEST
- Document the two small BC breaks in release notes
- Document the contract for db/mnet.php
2010-01-28 05:25:50 +00:00
Penny Leach
c0b22a3f96 mnet MDL-21294 fixed some errors in the new mnet exception stuff
I think I must have tested mnet client/server around the wrong way
2010-01-13 03:46:45 +00:00
Penny Leach
939ea0bc44 mnet MDL-21294 change errors to exceptions in mnet server 2010-01-13 01:08:38 +00:00
Petr Skoda
af0e9032f9 MDL-21319 preventing debug output and cookies in mnet xmlrpc server script 2010-01-12 10:59:08 +00:00
Penny Leach
edf1fc350a portfolio: MDL-20892 moved portfolio/type/* plugins to portfolio/* 2009-11-18 13:27:38 +00:00
Andrew Davis
6959330979 all MDL-20821 Removed more deprecated functions 2009-11-18 06:05:10 +00:00
Petr Skoda
1d42298086 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 12:22:45 +00:00
mjollnir_
1cc8e4c13d Fixed misnamed variable I believe I was introduced in 1.33 2009-01-29 10:58:41 +00:00
jerome
46c8e3b0d6 MDL-15352: trivial change, add a clear error message when can't retirve listing 2008-10-24 05:36:59 +00:00
jerome
659054c521 MDL-15352: doesn't use anymore mnet system function, implemeted new mnet function, remote moodle service will appear into the peer service 2008-10-23 08:14:24 +00:00
jerome
ef378cdcf4 MDL-15352: doesn't use anymore mnet system function, implemeted new mnet function, remote moodle service will appear into the peer service 2008-10-23 08:14:23 +00:00
jerome
d3dfe9aecb MDL-15352: first version of remote moodle plugin 2008-10-22 04:04:23 +00:00
peterbulmer
c8a6dfee9b Typo correction in comment 2008-10-07 22:25:48 +00:00
peterbulmer
334e66c1c2 MDL16286 - bugfixes
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-28 04:19:45 +00:00
peterbulmer
8d60e9427d MDL16286 - redefine function boundaries.
Better defined what the decrypt / signature functions do & brought a lot of the error-exits together


Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-28 04:19:04 +00:00
peterbulmer
250f84d6b1 MDL-16301 - use better variable 2008-09-07 04:59:37 +00:00
peterbulmer
988b0b2260 MDL-16301 - bugfix for earlier commit 2008-09-07 04:55:44 +00:00
peterbulmer
454a6e7c4d MDL-16301 - address issue
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-07 03:19:35 +00:00
peterbulmer
5f6b28faf2 MDL-16286 separate strip wrappers() to decrypt() and check_sig()
additionally unfold logic inverstion around encrypted if block
To view this diff more effectively, consider setting 'ignore whitespace'

Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-07 03:18:53 +00:00
peterbulmer
c7c556156a MDL-16286 MDL-16285 Bring 'signed by old key' logic together
and add appropriate comments


Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-07 03:16:18 +00:00
peterbulmer
2a75520f71 MDL-16285 unfold logic inversion
Ignoring whitespace this patch is 4 lines of -, and 3 lines of +, if you want to understand what the diff is, I highly recommend looking at it without whitespace changes visible.

Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2008-09-07 03:15:35 +00:00
mjollnir_
ea676d6e67 MDL-16351 - make mnet_server_fault detect when it's being passed a full string rather than an 'mnet' string key 2008-09-05 12:24:11 +00:00
mjollnir_
b91b274b92 MDL-16180 - add portfolio support to mnet 2008-08-30 11:25:29 +00:00
skodak
600be0625e MDL-16163 disable mnet scripts properly if mnet not enabled 2008-08-21 20:43:25 +00:00
mjollnir_
e64de55dec MDL-16157 - fixing arguments to mnet_get_public_key 2008-08-21 14:45:28 +00:00
skodak
cc38ff5d6d MDL-15097 mnet conversion revisited 2008-06-05 18:07:41 +00:00
skodak
fd0e6640cc MDL-14679 fixed some more $db's 2008-05-31 22:18:41 +00:00
donal
09f0abb2ff MDL-12492: Thanks to Nigel McNie, this addresses a problem which prevents hosts from re-keying when their keys expire. 2008-02-15 08:32:22 +00:00
donal72
f633d85d72 Change reflection methods to only report on methods that are being published to the inquiring host (instead of all methods that could be published). MDL-10214, MDL-10174, MDL-10172, MDL-10171 2007-10-17 08:08:12 +00:00
donal72
3d706b4989 Log error code and text in mnet_server_fault_xml function. MDL-10196 2007-10-16 14:02:40 +00:00
donal72
a2c6ab59d5 Removed a constraint that caused mnet to fail on clusters, vservers and other network configurations where the mnet client's hostname (as specified in the wwwroot) resolves to an IP address that differs from the IP address that it uses to contact other hosts. This should address MDL-10672 2007-10-16 03:26:39 +00:00
donal72
1bef950e2e Sharpen up call to 'dangerous' functions. 2007-08-02 05:35:19 +00:00
donal72
68bcd355af Rename the 'promiscous' mode to 'dangerous' as promiscuous is used elsewhere. 2007-08-02 05:27:06 +00:00
donal72
4fc66605f2 Minor mnet keyswap bugfix 2007-08-02 05:16:59 +00:00
donal72
b26a847bbe Minor mnet bugfixing. 2007-08-02 00:19:43 +00:00
mjollnir_
2520258128 Merged Donal's changes to MNET to allow moodle to also network with mahara.
changelog follows

    [MNET-manual] added version.php, install.xml and upgrade.php patches
    Route remote users back to their home server without going through jump.php and land.php
    Display app-specific strings in the user view
    Display the application icon in the Remote Host block
    Hide the 'logs' tab if the application under review is not Moodle
    Hide the 'logs' tab if the application under review is not Moodle
    Update user record to note that picture == 1 once a picture has been
    transferred.
    Change 2 to uri - is this fluid?
    Add application paramter to bootstrap function
    Find the application
    Workaround for PHP5.2.2 bug: http://bugs.php.net/bug.php?id=41293
    $HTTP_RAW_POST_DATA was not being populated
    Ensure we get an application for our Peer
    Update the URI to use for MNET
    The default 'wantsurl' should be empty
    Use the appropriate 'land' url for the remote application
    Add hidden form elements for 'application'
    Add awareness of new Application concept
    Add awareness of new Application concept
    Add awareness of new Application concept
    Add awareness of new Application concept
    Add awareness of new Application concept
    Add awareness of new Application concept
    Add awareness of new Application concept
2007-07-14 03:00:12 +00:00
donal72
1008dad65a MNet goes from ISO8859-1 -> UTF-8; #MDL-8514 MDL-8514 2007-02-20 02:06:56 +00:00
donal72
3e008de804 Mnet: We haven't been updating the last_connect_time field. Let's do that. 2007-01-24 23:17:08 +00:00
donal72
573f8b025c Mnet: Update user's enrolment information on jump/land 2007-01-23 02:38:54 +00:00
donal72
503d126273 Mnet: Minor oops - a variable in the last commit was not renamed 2007-01-17 03:56:31 +00:00
martinlanghoff
c9fa3eee9b get_config() callers in new MNET code switched to expect a single value returned
Again, this simplifies the logic in a few places.
2007-01-16 23:27:41 +00:00
donal72
9dd0e6115d Mnet: Key rotation: A more robust changeover for fresh keys 2007-01-15 09:03:39 +00:00
donal72
151a987289 Mnet: Refactor: Split up mnet_server_fault function so we have option to send non-lang-file errors 2007-01-15 08:40:24 +00:00
donal72
85d2d959d5 Mnet: Bugfix: Prevent infinite loop when 2 community hubs peer for the first time 2007-01-15 08:31:58 +00:00
donal72
5c2e5bf2d4 mnet: Bugfix: An object with no properties == false!!! 2007-01-10 00:37:53 +00:00
martinlanghoff
735c7beb0a mnet: We now keep several generations of SSL keys
Author: Donal McMullan <donal@catalyst.net.nz>
2007-01-04 03:34:14 +00:00
martinlanghoff
71558f8502 mnet: core libraries and admin pages 2007-01-04 02:33:51 +00:00