340 Commits

Author SHA1 Message Date
Jerome Mouneyrac
2ada59b759 MDL-31077 REST server should return null if nothing fail and if the description function return null. 2012-01-17 15:37:27 +08:00
Sam Hemelryk
073b19a281 Merge branch 'MDL-29712' of git://github.com/mouneyrac/moodle 2011-12-08 12:41:21 +13:00
Jerome Mouneyrac
d2f127e65c 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... 2011-12-02 11:26:48 +08:00
Jerome Mouneyrac
3b40f3b1a7 MDL-30496 fix upload max size issue when server limit is set + return some kind of json error object for filenameexists and oversizedfile errors 2011-12-01 15:13:52 +08:00
Sam Hemelryk
6416c6c25b Merge branch 'MDL-30007' of git://github.com/stronk7/moodle 2011-12-01 17:14:52 +13:00
Jerome Mouneyrac
264764e222 MDL-30459 when one filename already exist we bypass the execution and continue. We just return the error into the json string 2011-12-01 15:56:15 +13:00
Sam Hemelryk
bba1338a60 Merged branch 'MDL-30459' of git://github.com/mouneyrac/moodle.git with whitespace fixes 2011-12-01 14:43:39 +13:00
Jerome Mouneyrac
f25aee3251 MDL-30459 better error message when file already exist 2011-11-30 15:15:59 +08:00
Petr Skoda
b5c04aa153 MDL-30007 standardise webservice version files 2011-11-29 22:12:15 +01:00
Jerome Mouneyrac
07cc3d11e2 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. 2011-11-29 11:18:36 +08:00
Dongsheng Cai
ec0d6ea2a9 MDL-28646 Web service: core_course_get_contents()
1. Implement core_course_get_contents web service
2. Implement callbacks in folder, resource, page and url modules
3. Implement download script for web service
2011-11-28 16:22:38 +08:00
Sam Hemelryk
b28de4b412 Merge branch 'MDL-28629' of git://github.com/mouneyrac/moodle 2011-11-22 18:26:35 +13:00
Aparup Banerjee
3a59d04c65 MDL-30268 Web service : resolved version number conflict 2011-11-21 14:47:23 +08:00
Nadav Kavalerchik
7a25d39873 MDL-27516 Several CSS fixes for right to left languages 2011-11-17 11:42:12 +13:00
Jerome Mouneyrac
af03513f93 MDL-30268 add 'Can download files' field to service 2011-11-16 11:51:03 +08:00
Aparup Banerjee
8887601196 MDL-28670 webservice : (review) changes improving performance 2011-11-14 11:25:36 +08:00
Jerome Mouneyrac
07a90ec313 MDL-28629 more checks during web service authentication 2011-11-11 15:07:18 +08:00
Aparup Banerjee
e88c193fb0 MDL-28670 webservice : added dimming of service name in security keys page if webservice is disabled or not on authorised list to access webservice. 2011-11-07 14:21:40 +08:00
Sam Hemelryk
e6acc5518b MDL-29106 white space clean up 2011-10-25 15:28:52 +13:00
Sam Hemelryk
2d94084463 Merge branch 'MDL-29825' of git://github.com/mouneyrac/moodle 2011-10-25 11:46:51 +13:00
Sam Hemelryk
c486d7f2d8 Merge branch 'MDL-29459' of git://github.com/mouneyrac/moodle 2011-10-25 11:45:58 +13:00
Sam Hemelryk
2336a84333 MDL-29106 webservices: Minor whitespace cleanup 2011-10-25 11:43:53 +13:00
Sam Hemelryk
b8b594843c Merge branch 'MDL-29106' of git://github.com/mouneyrac/moodle 2011-10-25 11:42:40 +13:00
Petr Skoda
22d7cede55 MDL-29887 add forgotten flashvars
Thanks Eloy!
2011-10-24 17:43:05 +02:00
Jerome Mouneyrac
5d1017e11d MDL-29106 new web service naming convention 2011-10-24 11:06:00 +08:00
Petr Skoda
13ae464c0f MDL-29887 remove outdated swfobject
Contrib code can use YUI flash embedding, manual embedding or better switch to JS/HTML 5.
2011-10-23 12:05:44 +02:00
Jerome Mouneyrac
729ca37388 MDL-29825 better debug info when a ws client user misses a protocol capability 2011-10-21 15:11:38 +08:00
Jerome Mouneyrac
6d4aa25892 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 2011-10-20 11:22:36 +08:00
Eloy Lafuente (stronk7)
c2551ed593 Merge branch 'w41_MDL-29602_m22_accesslib' of git://github.com/skodak/moodle 2011-10-18 13:15:13 +02:00
Eloy Lafuente (stronk7)
22ca3e49e0 NOBUG - whitespace fixes (MDL-19488, MDL-27242, MDL-29435) 2011-10-17 10:19:59 +02:00
Sam Hemelryk
5f6de5dc6b Merge branch 'MDL-29435' of git://github.com/mouneyrac/moodle 2011-10-17 17:31:52 +13:00
Sam Hemelryk
92fe97f922 Merged branch 'MDL-29277' of git://github.com/mouneyrac/moodle.git with improvements 2011-10-17 13:18:30 +13:00
Petr Skoda
e922fe23b6 MDL-29602 accesslib improvements
Refactoring and improvements of the accesslib.php library including prevention of access for not-logged-in users when forcelogin enabled, improved context caching, OOP refactoring of contexts, fixed context loading, deduplication of role definitions in user sessions, installation improvements, decoupling of enrolment checking from capability loading, added detection of deleted and non-existent users in has_capability(), new function accesslib test, auth and enrol upgrade notes.

More details are available in tracker subtasks.
2011-10-16 14:05:18 +02:00
Jerome Mouneyrac
9360256937 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 2011-10-07 16:06:19 +08:00
Jerome Mouneyrac
2c28fa7643 MDL-29435 SOAP/XMLRPC server return debuginfo into the exception message when DEBUG >= NORMAL 2011-10-07 14:21:41 +08:00
Sam Hemelryk
609ad0da5b Merge branch 'MDL-26635' of git://github.com/mouneyrac/moodle 2011-09-21 17:52:53 +12:00
Jerome Mouneyrac
ccda013458 MDL-26635 Return a more explicit debuginfo message when the user can not access the web service function 2011-09-21 13:03:18 +08:00
Eloy Lafuente (stronk7)
f1ac51ac60 Merge branch 'MDL-29279' of git://github.com/mouneyrac/moodle 2011-09-19 23:56:41 +02:00
Aparup Banerjee
aa601cca0a Merge branch 's13_MDL-29036_ws_upload_master' of git://github.com/dongsheng/moodle 2011-09-19 16:02:45 +08:00
Dongsheng Cai
7515e1bac4 MDL-29036 WEBSERVICE : webservice upload script should respect maxbytes and userquota settings 2011-09-19 15:31:34 +08:00
Jerome Mouneyrac
a08b4cc8eb MDL-29279 REST server can return json format 2011-09-19 13:54:09 +08:00
Jerome Mouneyrac
b02578db42 MDL-29276 fix missing global jerome in generate_simple_struct_class() - it breaks normal PHP-SOAP call 2011-09-15 15:03:03 +08:00
Eloy Lafuente (stronk7)
85dca0996e Merge branch 'MDL-MDL-28650' of https://github.com/mouneyrac/moodle 2011-08-25 01:11:15 +02:00
Adam Olley
936cabd6f0 MDL-28481: Send headers before any possible output 2011-08-22 09:11:42 +09:30
Jerome Mouneyrac
cde291ed73 MDL-28650 add a page in the administration to the full web service API (API documentation). 2011-08-18 11:51:02 +08:00
Eloy Lafuente (stronk7)
2bdd5cf6ec Merge branch 'wip_MDL-20804_wsdl' of git://github.com/timhunt/moodle 2011-08-17 03:04:34 +02:00
Tim Hunt
cc7fb382d7 MDL-20804 Improve the automatically generated WSDL.
Note that this is currently very much a proof-of-concept implementation. It should receive a lot of careful testing and review before we think about integrating it.
2011-07-06 18:53:57 +01:00
Aparup Banerjee
728ebac7f2 MDL-28135 general Updating all hardcoded "docs.moodle.org/en/Development:" type doc links to "docs.moodle.org/dev/" 2011-07-05 14:27:31 +08:00
Dongsheng Cai
8819c47b64 MDL-28121, fixed deprecated split() function 2011-06-30 17:34:36 +08:00
Rajesh Taneja
b4e29077d3 MDL-27759 Fixed conflicts for integration 2011-06-14 10:45:03 +08:00