Git commits in Moodle 2.2.x by Jerome Mouneyrac

commit a811e8ac56e49a174b68ceade81197c80be4b325
Author: Jerome Mouneyrac <jerome@mouneyrac.com>
Date:   Tue, 19 Mar 2013 17:06:24 +0800
Tag:    v2.2.10

MDL-37822 fix checkboxes that were always set to on by default

commit 4d65904bc132548a2ef4c2a40bf5ba2cffb5f68f
Author: Jerome Mouneyrac <jerome@mouneyrac.com>
Date:   Mon, 18 Mar 2013 16:51:51 +0800
Tag:    v2.2.10

MDL-37822 move the default code above the set_config to not make the code less confusing

commit 60c468bcb3b6f867a70f2f30427b52e0362e93d1
Author: Jerome Mouneyrac <jerome@mouneyrac.com>
Date:   Thu, 07 Feb 2013 13:10:19 +0800
Tag:    v2.2.10

MDL-37822 Moodle send site information to a hub even though it's unchecked

commit a8c99982fbd49927088fdbb319492def1280ff4d
Author: Jerome Mouneyrac <jerome@mouneyrac.com>
Date:   Tue, 04 Dec 2012 11:47:19 +0800
Tag:    v2.2.7

MDL-29805 add REQUIRE_CORRECT_ACCESS define + return error code when AJAX_SCRIPT fails

commit 3fd3efac7b41b68c542bbce6cf9f603e6bbeb17d
Author: Jerome Mouneyrac <jerome@mouneyrac.com>
Date:   Fri, 30 Nov 2012 14:22:16 +0800
Tag:    v2.2.7

MDL-30961 get_course_contents: returned activity name should not be check against PARAM_TEXT, it could be anything

commit ab1623b87baf4b44dd68c48444379b82fb739c0f
Author: Jerome Mouneyrac <jerome@mouneyrac.com>
Date:   Fri, 30 Nov 2012 10:14:39 +0800
Tag:    v2.2.7

MDL-36773 timezone inconsistency => some number support decimal other don\'t - Original patch author: Nathan Mares

commit 71daa4a6d678dab1822ad7d54ade02158e706641
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Mon, 08 Oct 2012 10:58:43 +0800
Tag:    v2.2.6

MDL-35198 replace key_exists by array_key_exists

commit 55cab152a47c72331162d64db229e306aa6b4121
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Wed, 26 Sep 2012 14:24:29 +0800
Tag:    v2.2.6

MDL-35644 user_get_details: admin should be able to see description

commit 9c931ad07480d5312e9fb23b5188fd64b79184cf
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Mon, 24 Sep 2012 15:48:15 +0800
Tag:    v2.2.7

MDL-35593 core_webservice_get_site_info returns version number set to PARAM_TEXT and PARAM_FLOAT

commit 8884e3a2a8961ba84fe73ae68534abf5448cdca0
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Fri, 22 Jun 2012 16:48:51 +0800
Tag:    v2.2.5

MDL-33869 user_get_user_details: add support for 'Show user identity' fields set by administrator

commit ebf57c7e9451c3de9e45ac3db8df73ec31cacbd3
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Fri, 15 Jun 2012 15:14:06 +0800
Tag:    v2.2.4

MDL-33770 Web service: create_groups should not require enrolmentkey

commit 1850ab013cd0b79ae435f9753517a8b90768d461
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Fri, 08 Jun 2012 11:54:59 +0800
Tag:    v2.2.4

MDL-33581 missing parameter defaults for some external functions

commit 8d83e44bc4a78db4f6fa090aec0208715e3e7276
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Wed, 16 May 2012 12:04:13 +0800
Tag:    v2.2.4

MDL-33028 display debuginfo when server die at developer mode

commit adca1840c4eb445bdbd67e0cbf09852b3ac507c5
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Tue, 17 Apr 2012 18:08:55 +0800
Tag:    v2.2.3

MDL-30225 Creating new web service tokens create error

commit 6d8e40a429855b239c2c09113a7111b0823ec95d
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Mon, 16 Apr 2012 11:27:10 +0800
Tag:    v2.2.3

MDL-31431 webservices: improve user pic docs

commit e0a57f8cccbfefd6ae5e2ea06a979835e9da5426
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Fri, 13 Apr 2012 14:09:25 +0800
Tag:    v2.2.3

MDL-31762 username should be lowercase and check against PARAM_USERNAME when creating/updating user by web service

commit 2547042fe6e8ec43331b8681f6f22ce72aee5bc7
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Thu, 12 Apr 2012 14:44:16 +0800
Tag:    v2.2.3

MDL-31694 Fix XSS security issue with service name accepting javascript

commit e8a2384eb6e1a667b008050c0ecf1ad3a4a64e50
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Wed, 11 Apr 2012 14:48:14 +0800
Tag:    v2.2.3

MDL-27547 When deleting a local plugin containing a built-in service, the built-in service is not deleted

commit e90d5dcfb2838253e49830239aa0d56101040bb6
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Fri, 17 Feb 2012 17:02:40 +0800
Tag:    v2.2.2

MDL-30249 Display warning when downloading/uploading a file

commit 4b9f199c65178f8819572c4bb39adee1d3f4fec1
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Wed, 15 Feb 2012 11:36:38 +0800
Tag:    v2.2.2

MDL-30495 HTML5 apps cannot call Webservices functions if a HTTP resource is retrieved from the Moodle installation

commit 9c228a616a2d667bb2819025755028760c1e1ad2
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Tue, 14 Feb 2012 12:03:06 +0800
Tag:    v2.2.2

MDL-30126 rest client should be updated fo json support

commit 6049f806f97e33d1167ef481c37ca44d1be5de29
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Mon, 13 Feb 2012 16:39:50 +0800
Tag:    v2.2.2

MDL-30688 REST simpleserver does not accept the moodlewsrestformat parameter

commit 28a3a568aa8a00f97e218eebef0777c89dabf74d
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Thu, 02 Feb 2012 15:34:05 +0800
Tag:    v2.2.2

MDL-27360 Web service tokens are displayed for deleted users

commit 049c70ea9d72e03ba51e942ea381daf41e51d2db
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Fri, 27 Jan 2012 16:10:05 +0800
Tag:    v2.2.2

MDL-29471 php warning when adding function to a new web service

commit 15dd45484019a8ddb4707565537ca76576ea9174
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Fri, 27 Jan 2012 15:16:11 +0800
Tag:    v2.2.2

MDL-30878 core_user_update_users user password is reset if not specified

commit 4bc3f5a2da81c2d2f53e7932eaf1a6477bfe0e8e
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Tue, 17 Jan 2012 15:37:27 +0800
Tag:    v2.2.2

MDL-31077 REST server should return null if nothing fail and if the description function return null.

commit c532957be25a48ebb50a38a28028aad8cdbfe2de
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Fri, 09 Dec 2011 11:57:28 +0800
Tag:    v2.2.1

MDL-30140 alternative way to select user when adding a token. When more than 500 users we display a text box instead of a select box

commit 6ae2048c1fcb4e6bdc2cd28d129a94f6ff006a08
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Thu, 08 Dec 2011 14:40:57 +0800
Tag:    v2.2.1

MDL-29942 trigger user events in web service calls

commit 2af51a1dc3b62bcb16d59d53a8d156766af79494
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Fri, 02 Dec 2011 11:26:48 +0800
Tag:    v2.2.1

MDL-29712 REST-XML server was translating too many HTML characters. use htmlspecialchars instead of htmlentities. Translated characters by htmlspecialchars are compatible with XML validation, and so XML parsers for javascript, java...

commit 3b40f3b1a76326924456ee85c881ea242b816c6a
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Thu, 01 Dec 2011 14:19:36 +0800
Tag:    v2.2.0-rc1

MDL-30496 fix upload max size issue when server limit is set + return some kind of json error object for filenameexists and oversizedfile errors

commit 264764e222a29c943c662a70777b1fa1b7d2b68e
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Thu, 01 Dec 2011 10:33:37 +0800
Tag:    v2.2.0-rc1

MDL-30459 when one filename already exist we bypass the execution and continue. We just return the error into the json string

commit 4d693fc44ccffea52e8cff00943cdcad94f46460
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Wed, 30 Nov 2011 10:33:21 +0800
Tag:    v2.2.0-rc1

MDL-30395 display the folder name if the block/module of a backup file is not installed in the site

commit 07cc3d11e2081364d5d33f4f9cec5c30b62a53a5
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Tue, 29 Nov 2011 11:18:36 +0800
Tag:    v2.2.0-rc1

MDL-28646 add missing authentication web service checks. Merge download/upload script checks in the same lib functions. Make the download scrit return json error message. Add missing webservice lang. Minor unit test doc improvement.

commit f25aee3251b6a55547c5c4da7fa2d0567540b62b
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Fri, 25 Nov 2011 12:05:53 +0800
Tag:    v2.2.0-rc1

MDL-30459 better error message when file already exist

commit af03513f9332bccda05ba723ac01a6373ecb0310
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Wed, 16 Nov 2011 11:51:03 +0800
Tag:    v2.2.0-rc1

MDL-30268 add 'Can download files' field to service

commit 72306a6ff4655c894d50d8ffb1e52d9c626d4713
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Mon, 14 Nov 2011 12:09:40 +0800
Tag:    v2.2.1

MDL-28126 webservices : should not able to create token if user is deleted,unconfirmed,suspended or guest.

commit 07a90ec31304a1eedf300f0d01c3a15f9558e5a1
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Fri, 11 Nov 2011 15:07:18 +0800
Tag:    v2.2.0-rc1

MDL-28629 more checks during web service authentication

commit 2b8fe35b65db8e3a48870ecc284d59204ea9e4de
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Wed, 02 Nov 2011 09:38:02 +0800
Tag:    v2.2.0-beta

MDL-30043 token.php should not return a mix of EXTERNAL_TOKEN_PERMANENT and EXTERNAL_TOKEN_EMBEDDED

commit f4a75854b78a7f380dd09041aff25da156910a46
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Tue, 01 Nov 2011 15:22:28 +0800
Tag:    v2.2.0-beta

MDL-30027 support no options + fix wrong param validation call

commit dab3977a5459facd1bd9f8cac5f0921f3a8bfdc7
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Mon, 31 Oct 2011 10:57:06 +0800
Tag:    v2.2.0-beta

MDL-29931 remove unneeded join and selects

commit 5b9735b9499c925cee67fb6dc4b238de64773a53
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Tue, 25 Oct 2011 11:17:18 +0800
Tag:    v2.2.0-beta

MDL-29716 Make token more flexible to support third party client - also fix issue with some code not matching the way the server authenticate/authorize token, missing iprestriction/validuntil for restricted users (there are iprestriction/validiuntil on token and on restricted user). Also add missing check when the user is not listed in the authorised list.

commit 729ca373885e021120ff35bc04781143763cf330
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Fri, 21 Oct 2011 15:11:38 +0800
Tag:    v2.2.0-beta

MDL-29825 better debug info when a ws client user misses a protocol capability

commit 5d1017e11d06202fe0e396aba98216d4bc8d2821
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Tue, 18 Oct 2011 12:57:33 +0800
Tag:    v2.2.0-beta

MDL-29106 new web service naming convention

commit 6d4aa258929655d94bc20e4e5fcdb5a3ca352216
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Fri, 14 Oct 2011 12:03:23 +0800
Tag:    v2.2.0-beta

MDL-29459 REST-XML server validate return values and throw exception if the returned values are bad (missing, not expected, wrong type). Remove from the REST serialize function previous error checking (missing key error, bypassing not expected keys). It now matches other servers that do validate the return values and throw exception

commit 9360256937dc907dcd9eb6b79f99bda4d4804fb2
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Fri, 07 Oct 2011 16:06:19 +0800
Tag:    v2.2.0-beta

MDL-29277 when validate externallib function parameters or return values, build the path to the error into the debuginfo. This patch also revert the exception to the original invalid_parameter_exception and invalid_response_exception

commit 2c28fa7643b168006883a81a2421012d357a22d6
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Fri, 07 Oct 2011 14:21:41 +0800
Tag:    v2.2.0-beta

MDL-29435 SOAP/XMLRPC server return debuginfo into the exception message when DEBUG >= NORMAL

commit ccda013458fcefda9c185e717475b37b5ba86923
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Wed, 21 Sep 2011 13:03:18 +0800
Tag:    v2.2.0-beta

MDL-26635 Return a more explicit debuginfo message when the user can not access the web service function

commit a08b4cc8ebd7e4b9b0e0f627b8fec9d9dcba0c72
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Mon, 19 Sep 2011 13:54:09 +0800
Tag:    v2.2.0-beta

MDL-29279 REST server can return json format

commit b02578db42c493fb34b9f2e8f6e603ce8e164a17
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Thu, 15 Sep 2011 15:03:03 +0800
Tag:    v2.2.0-beta

MDL-29276 fix missing global jerome in generate_simple_struct_class() - it breaks normal PHP-SOAP call

commit 4962df40a983e0bf3d14ca8d839398ac553bfe48
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Wed, 24 Aug 2011 14:40:15 +0800
Tag:    v2.2.0-beta

MDL-29005 display enrollable courses total and downloadable courses total instead of courses/sites total

commit fa698a15a8ea0e5c4cb8f65759dd0798451e56c5
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Fri, 19 Aug 2011 11:45:18 +0800
Tag:    v2.2.0-beta

MDL-28990 add web service mobile overview

commit cde291ed734837a25427e8afafb90a0aaf9829f3
Author: Jerome Mouneyrac <jerome@moodle.com>
Date:   Thu, 18 Aug 2011 11:51:02 +0800
Tag:    v2.2.0-beta

MDL-28650 add a page in the administration to the full web service API (API documentation).