Details

    • Testing Instructions:
      Hide

      Testing core_course_get_contents()
      ==================================

      Get a PHP web service client: https://github.com/moodlehq/sample-ws-clients

      1- Call the core_course_get_contents($courseid) web service function on a big course (for example restore http://hub.moodle.org/?courseid=278)
      2- check that the content you receive is correct (try to check one activity per module type)
      3- finally call this function when the https setting in enabled (all the site in https only). The returned file download urls should be in https (for example for file resource).

      Testing the file download script:
      =================================
      1- Download one of the file url you got from your previous core_course_get_contents(). You'll need to add your ws token at the end (?token=893ny873b873b). Check that you can retrieve the right file.
      2- Set the 'Can download file' in service advance settings to OFF. Then try to download the file again. It should fail.
      3- Try some fail cases from the following list: ip restriction/unvalid date on token/service, user not listed in restricted list, missing required capability, site in maintenance mode, user suspended, user confirmed, user deleted, nologin auth, password expired, web service disabled. I added some info about that in the docs: http://docs.moodle.org/21/en/Web_services_FAQ#What_is_the_.27Access_control_exception.27_error

      Show
      Testing core_course_get_contents() ================================== Get a PHP web service client: https://github.com/moodlehq/sample-ws-clients 1- Call the core_course_get_contents($courseid) web service function on a big course (for example restore http://hub.moodle.org/?courseid=278 ) 2- check that the content you receive is correct (try to check one activity per module type) 3- finally call this function when the https setting in enabled (all the site in https only). The returned file download urls should be in https (for example for file resource). Testing the file download script: ================================= 1- Download one of the file url you got from your previous core_course_get_contents(). You'll need to add your ws token at the end (?token=893ny873b873b). Check that you can retrieve the right file. 2- Set the 'Can download file' in service advance settings to OFF. Then try to download the file again. It should fail. 3- Try some fail cases from the following list: ip restriction/unvalid date on token/service, user not listed in restricted list, missing required capability, site in maintenance mode, user suspended, user confirmed, user deleted, nologin auth, password expired, web service disabled. I added some info about that in the docs: http://docs.moodle.org/21/en/Web_services_FAQ#What_is_the_.27Access_control_exception.27_error
    • Affected Branches:
      MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE
    • Pull Master Branch:
      wip-MDL-28646
    • Rank:
      19485

      Description

      This web service will be used to return course activities and their contents. It should be generic to handle files and contents.

      For resource module, it should return files url.

      Needs more details and specs

        Issue Links

          Activity

          Dongsheng Cai created issue -
          Dongsheng Cai made changes -
          Field Original Value New Value
          Fix Version/s DEV backlog [ 10464 ]
          Dongsheng Cai made changes -
          Assignee Jerome Mouneyrac [ jerome ] moodle.com [ moodle.com ]
          Michael de Raadt made changes -
          Labels triaged
          Dongsheng Cai made changes -
          Attachment get_course_contents.png [ 24825 ]
          Dongsheng Cai made changes -
          Link This issue blocks MOBILE-35 [ MOBILE-35 ]
          Jérôme Mouneyrac made changes -
          Link This issue will be resolved by MDL-27001 [ MDL-27001 ]
          Jérôme Mouneyrac made changes -
          Assignee moodle.com [ moodle.com ] Jerome Mouneyrac [ jerome ]
          Jérôme Mouneyrac made changes -
          Link This issue is blocked by MDL-29106 [ MDL-29106 ]
          Jérôme Mouneyrac made changes -
          Priority Minor [ 4 ] Critical [ 2 ]
          Dongsheng Cai made changes -
          Labels triaged moodleapp triaged
          Dongsheng Cai made changes -
          Assignee Jerome Mouneyrac [ jerome ] Dongsheng Cai [ dongsheng ]
          Dongsheng Cai made changes -
          Pull Master Diff URL https://github.com/dongsheng/moodle/compare/master...dev_MDL-28646_course_contents_master
          Pull Master Branch dev_MDL-28646_course_contents_master
          Pull from Repository git://github.com/dongsheng/moodle.git
          Dongsheng Cai made changes -
          Status Open [ 1 ] Development in progress [ 3 ]
          Dongsheng Cai made changes -
          Status Development in progress [ 3 ] Waiting for peer review [ 10012 ]
          Assignee Dongsheng Cai [ dongsheng ] moodle.com [ moodle.com ]
          Rossiani Wijaya made changes -
          Peer reviewer rwijaya
          Dongsheng Cai made changes -
          Peer reviewer rwijaya
          Testing Instructions This is intended for a moodle developer to test.

          You will need a web service client to test the web service response.

          Jerome created a few web service client in different languages here: https://github.com/moodlehq/sample-ws-clients

          The web service name is: moodle_course_get_course_contents, it takes two arguments, the first one is course id, the second can be empty.
          Jérôme Mouneyrac made changes -
          Parent MDL-28645 [ 46397 ]
          Issue Type Sub-task [ 5 ] Task [ 3 ]
          Jérôme Mouneyrac made changes -
          Parent MDL-29934 [ 48383 ]
          Issue Type Task [ 3 ] Sub-task [ 5 ]
          Jérôme Mouneyrac made changes -
          Summary Create web services to get course contents core_course_get_course_contents()
          Component/s Course [ 10057 ]
          Component/s Files API [ 10305 ]
          moodle.com made changes -
          Peer reviewer rwijaya
          Assignee moodle.com [ moodle.com ] Dongsheng Cai [ dongsheng ]
          Dongsheng Cai made changes -
          Summary core_course_get_course_contents() core_course_get_contents()
          Rossiani Wijaya made changes -
          Testing Instructions This is intended for a moodle developer to test.

          You will need a web service client to test the web service response.

          Jerome created a few web service client in different languages here: https://github.com/moodlehq/sample-ws-clients

          The web service name is: moodle_course_get_course_contents, it takes two arguments, the first one is course id, the second can be empty.
          This is intended for a moodle developer to test.

          You will need a web service client to test the web service response.

          Jerome created a few web service client in different languages here: https://github.com/moodlehq/sample-ws-clients

          The web service name is: core_course_get_contents, it takes one argument for course id.
          Rossiani Wijaya made changes -
          Original Estimate 0 minutes [ 0 ]
          Remaining Estimate 0 minutes [ 0 ]
          Status Waiting for peer review [ 10012 ] Peer review in progress [ 10013 ]
          Rossiani Wijaya made changes -
          Status Peer review in progress [ 10013 ] Development in progress [ 3 ]
          Rossiani Wijaya made changes -
          Status Development in progress [ 3 ] Peer review in progress [ 10013 ]
          Rossiani Wijaya made changes -
          Status Peer review in progress [ 10013 ] Development in progress [ 3 ]
          Dongsheng Cai made changes -
          Status Development in progress [ 3 ] Waiting for integration review [ 10010 ]
          Martin Dougiamas made changes -
          Link This issue blocks MDL-30160 [ MDL-30160 ]
          Martin Dougiamas made changes -
          Link This issue is duplicated by MDL-28645 [ MDL-28645 ]
          Martin Dougiamas made changes -
          Link This issue is duplicated by MDL-28647 [ MDL-28647 ]
          Eloy Lafuente (stronk7) made changes -
          Currently in integration Yes [ 10041 ]
          Martin Dougiamas made changes -
          Integrator nebgor
          Fix Version/s 2.2 [ 10656 ]
          Fix Version/s DEV backlog [ 10464 ]
          Priority Critical [ 2 ] Blocker [ 1 ]
          Aparup Banerjee made changes -
          Status Waiting for integration review [ 10010 ] Integration review in progress [ 10004 ]
          Aparup Banerjee made changes -
          Status Integration review in progress [ 10004 ] Reopened [ 4 ]
          Eloy Lafuente (stronk7) made changes -
          Currently in integration Yes [ 10041 ]
          Aparup Banerjee made changes -
          Link This issue will be resolved by MDL-29715 [ MDL-29715 ]
          Martin Dougiamas made changes -
          Link This issue is blocked by MDL-30268 [ MDL-30268 ]
          Martin Dougiamas made changes -
          Status Reopened [ 4 ] Waiting for integration review [ 10010 ]
          Integrator nebgor stronk7
          Tester nebgor
          Eloy Lafuente (stronk7) made changes -
          Integrator stronk7 samhemelryk
          Sam Hemelryk made changes -
          Status Waiting for integration review [ 10010 ] Integration review in progress [ 10004 ]
          Currently in integration Yes [ 10041 ]
          Sam Hemelryk made changes -
          Status Integration review in progress [ 10004 ] Reopened [ 4 ]
          Eloy Lafuente (stronk7) made changes -
          Currently in integration Yes [ 10041 ]
          Dongsheng Cai made changes -
          Status Reopened [ 4 ] Waiting for integration review [ 10010 ]
          Martin Dougiamas made changes -
          Integrator samhemelryk stronk7
          Assignee Dongsheng Cai [ dongsheng ] Aparup Banerjee [ nebgor ]
          Aparup Banerjee made changes -
          Status Waiting for integration review [ 10010 ] Integration review in progress [ 10004 ]
          Integrator stronk7 nebgor
          Jérôme Mouneyrac made changes -
          Link This issue has a non-specific relationship to MDL-30459 [ MDL-30459 ]
          Eloy Lafuente (stronk7) made changes -
          Currently in integration Yes [ 10041 ]
          Helen Foster made changes -
          Labels moodleapp triaged moodleapp qa_test_required triaged
          Helen Foster made changes -
          Labels moodleapp qa_test_required triaged docs_required moodleapp qa_test_required triaged
          Jérôme Mouneyrac made changes -
          Assignee Aparup Banerjee [ nebgor ] Jerome Mouneyrac [ jerome ]
          Aparup Banerjee made changes -
          Status Integration review in progress [ 10004 ] Reopened [ 4 ]
          Jérôme Mouneyrac made changes -
          Testing Instructions This is intended for a moodle developer to test.

          You will need a web service client to test the web service response.

          Jerome created a few web service client in different languages here: https://github.com/moodlehq/sample-ws-clients

          The web service name is: core_course_get_contents, it takes one argument for course id.
          This is intended for a moodle developer to test.

          You will need a web service client to test the web service response.

          Jerome created a few web service client in different languages here: https://github.com/moodlehq/sample-ws-clients

          The web service name is: core_course_get_contents, it takes one argument for course id.

          1- Call this web service function on a big course (for example http://hub.moodle.org/?courseid=278)
          2- check that the content you receive is correct (try to check one activity per module type)
          3- also try to call this function when the https setting in enabled (all the site in https only). The returned file download urls should be in https (for example for file resource).
          Jérôme Mouneyrac made changes -
          Testing Instructions This is intended for a moodle developer to test.

          You will need a web service client to test the web service response.

          Jerome created a few web service client in different languages here: https://github.com/moodlehq/sample-ws-clients

          The web service name is: core_course_get_contents, it takes one argument for course id.

          1- Call this web service function on a big course (for example http://hub.moodle.org/?courseid=278)
          2- check that the content you receive is correct (try to check one activity per module type)
          3- also try to call this function when the https setting in enabled (all the site in https only). The returned file download urls should be in https (for example for file resource).
          Testing core_course_get_contents()
          ==================================

          Get a PHP web service client: https://github.com/moodlehq/sample-ws-clients

          1- Call the core_course_get_contents($courseid) web service function on a big course (for example restore http://hub.moodle.org/?courseid=278)
          2- check that the content you receive is correct (try to check one activity per module type)
          3- finally call this function when the https setting in enabled (all the site in https only). The returned file download urls should be in https (for example for file resource).

          Testing the file download script:
          =================================
          Get a PHP file download client: https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-HTTP-filehandling
          1- In this file only run the download part. Download one of the file url you got from your previous core_course_get_contents()
          2- Set the 'Can download file' in service advance settings to OFF. Then try to download the file again. It should fail with a correct error message.
          3- Try to use a not valid token (ip restriction/unvalid date on token/service, user not listed in restricted list, missing required capability, site in maintenance mode, user suspended, user confirmed, user deleted)
          Jérôme Mouneyrac made changes -
          Testing Instructions Testing core_course_get_contents()
          ==================================

          Get a PHP web service client: https://github.com/moodlehq/sample-ws-clients

          1- Call the core_course_get_contents($courseid) web service function on a big course (for example restore http://hub.moodle.org/?courseid=278)
          2- check that the content you receive is correct (try to check one activity per module type)
          3- finally call this function when the https setting in enabled (all the site in https only). The returned file download urls should be in https (for example for file resource).

          Testing the file download script:
          =================================
          Get a PHP file download client: https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-HTTP-filehandling
          1- In this file only run the download part. Download one of the file url you got from your previous core_course_get_contents()
          2- Set the 'Can download file' in service advance settings to OFF. Then try to download the file again. It should fail with a correct error message.
          3- Try to use a not valid token (ip restriction/unvalid date on token/service, user not listed in restricted list, missing required capability, site in maintenance mode, user suspended, user confirmed, user deleted)
          Testing core_course_get_contents()
          ==================================

          Get a PHP web service client: https://github.com/moodlehq/sample-ws-clients

          1- Call the core_course_get_contents($courseid) web service function on a big course (for example restore http://hub.moodle.org/?courseid=278)
          2- check that the content you receive is correct (try to check one activity per module type)
          3- finally call this function when the https setting in enabled (all the site in https only). The returned file download urls should be in https (for example for file resource).

          Testing the file download script:
          =================================
          Get a PHP file download client: https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-HTTP-filehandling
          1- In this file only run the download part. Download one of the file url you got from your previous core_course_get_contents()
          2- Set the 'Can download file' in service advance settings to OFF. Then try to download the file again. It should fail with a correct error message.
          3- Try to use a not valid token (ip restriction/unvalid date on token/service, user not listed in restricted list, missing required capability, site in maintenance mode, user suspended, user confirmed, user deleted, nologin auth, password expired).

          Good luck.
          Jérôme Mouneyrac made changes -
          Testing Instructions Testing core_course_get_contents()
          ==================================

          Get a PHP web service client: https://github.com/moodlehq/sample-ws-clients

          1- Call the core_course_get_contents($courseid) web service function on a big course (for example restore http://hub.moodle.org/?courseid=278)
          2- check that the content you receive is correct (try to check one activity per module type)
          3- finally call this function when the https setting in enabled (all the site in https only). The returned file download urls should be in https (for example for file resource).

          Testing the file download script:
          =================================
          Get a PHP file download client: https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-HTTP-filehandling
          1- In this file only run the download part. Download one of the file url you got from your previous core_course_get_contents()
          2- Set the 'Can download file' in service advance settings to OFF. Then try to download the file again. It should fail with a correct error message.
          3- Try to use a not valid token (ip restriction/unvalid date on token/service, user not listed in restricted list, missing required capability, site in maintenance mode, user suspended, user confirmed, user deleted, nologin auth, password expired).

          Good luck.
          Testing core_course_get_contents()
          ==================================

          Get a PHP web service client: https://github.com/moodlehq/sample-ws-clients

          1- Call the core_course_get_contents($courseid) web service function on a big course (for example restore http://hub.moodle.org/?courseid=278)
          2- check that the content you receive is correct (try to check one activity per module type)
          3- finally call this function when the https setting in enabled (all the site in https only). The returned file download urls should be in https (for example for file resource).

          Testing the file download script:
          =================================
          Get a PHP file download client: https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-HTTP-filehandling
          1- In this file only run the download part. Download one of the file url you got from your previous core_course_get_contents()
          2- Set the 'Can download file' in service advance settings to OFF. Then try to download the file again. It should fail with a correct error message.
          3- Try to use a not valid token (ip restriction/unvalid date on token/service, user not listed in restricted list, missing required capability, site in maintenance mode, user suspended, user confirmed, user deleted, nologin auth, password expired, web service disabled).

          Good luck.
          Jérôme Mouneyrac made changes -
          Testing Instructions Testing core_course_get_contents()
          ==================================

          Get a PHP web service client: https://github.com/moodlehq/sample-ws-clients

          1- Call the core_course_get_contents($courseid) web service function on a big course (for example restore http://hub.moodle.org/?courseid=278)
          2- check that the content you receive is correct (try to check one activity per module type)
          3- finally call this function when the https setting in enabled (all the site in https only). The returned file download urls should be in https (for example for file resource).

          Testing the file download script:
          =================================
          Get a PHP file download client: https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-HTTP-filehandling
          1- In this file only run the download part. Download one of the file url you got from your previous core_course_get_contents()
          2- Set the 'Can download file' in service advance settings to OFF. Then try to download the file again. It should fail with a correct error message.
          3- Try to use a not valid token (ip restriction/unvalid date on token/service, user not listed in restricted list, missing required capability, site in maintenance mode, user suspended, user confirmed, user deleted, nologin auth, password expired, web service disabled).

          Good luck.
          Testing core_course_get_contents()
          ==================================

          Get a PHP web service client: https://github.com/moodlehq/sample-ws-clients

          1- Call the core_course_get_contents($courseid) web service function on a big course (for example restore http://hub.moodle.org/?courseid=278)
          2- check that the content you receive is correct (try to check one activity per module type)
          3- finally call this function when the https setting in enabled (all the site in https only). The returned file download urls should be in https (for example for file resource).

          Testing the file download script:
          =================================
          Get a PHP file download client: https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-HTTP-filehandling
          1- In this file only run the download part. Download one of the file url you got from your previous core_course_get_contents()
          2- Set the 'Can download file' in service advance settings to OFF. Then try to download the file again. It should fail with a correct error message.
          3- Try some fail cases from the following list: ip restriction/unvalid date on token/service, user not listed in restricted list, missing required capability, site in maintenance mode, user suspended, user confirmed, user deleted, nologin auth, password expired, web service disabled.

          Testing the file upload script:
          ===============================
          Get a PHP file upload client: https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-HTTP-filehandling
          1- In this file only run the upload part.
          2- Try some fail cases from the following list: ip restriction/unvalid date on token/service, user not listed in restricted list, missing required capability, site in maintenance mode, user suspended, user confirmed, user deleted, nologin auth, password expired, web service disabled.

          Good luck.
          Jérôme Mouneyrac made changes -
          Testing Instructions Testing core_course_get_contents()
          ==================================

          Get a PHP web service client: https://github.com/moodlehq/sample-ws-clients

          1- Call the core_course_get_contents($courseid) web service function on a big course (for example restore http://hub.moodle.org/?courseid=278)
          2- check that the content you receive is correct (try to check one activity per module type)
          3- finally call this function when the https setting in enabled (all the site in https only). The returned file download urls should be in https (for example for file resource).

          Testing the file download script:
          =================================
          Get a PHP file download client: https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-HTTP-filehandling
          1- In this file only run the download part. Download one of the file url you got from your previous core_course_get_contents()
          2- Set the 'Can download file' in service advance settings to OFF. Then try to download the file again. It should fail with a correct error message.
          3- Try some fail cases from the following list: ip restriction/unvalid date on token/service, user not listed in restricted list, missing required capability, site in maintenance mode, user suspended, user confirmed, user deleted, nologin auth, password expired, web service disabled.

          Testing the file upload script:
          ===============================
          Get a PHP file upload client: https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-HTTP-filehandling
          1- In this file only run the upload part.
          2- Try some fail cases from the following list: ip restriction/unvalid date on token/service, user not listed in restricted list, missing required capability, site in maintenance mode, user suspended, user confirmed, user deleted, nologin auth, password expired, web service disabled.

          Good luck.
          Testing core_course_get_contents()
          ==================================

          Get a PHP web service client: https://github.com/moodlehq/sample-ws-clients

          1- Call the core_course_get_contents($courseid) web service function on a big course (for example restore http://hub.moodle.org/?courseid=278)
          2- check that the content you receive is correct (try to check one activity per module type)
          3- finally call this function when the https setting in enabled (all the site in https only). The returned file download urls should be in https (for example for file resource).

          Testing the file download script:
          =================================
          Get a PHP file download client: https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-HTTP-filehandling
          1- In this file only run the download part. Download one of the file url you got from your previous core_course_get_contents()
          2- Set the 'Can download file' in service advance settings to OFF. Then try to download the file again. It should fail with a correct error message.
          3- Try some fail cases from the following list: ip restriction/unvalid date on token/service, user not listed in restricted list, missing required capability, site in maintenance mode, user suspended, user confirmed, user deleted, nologin auth, password expired, web service disabled.
          Jérôme Mouneyrac made changes -
          Testing Instructions Testing core_course_get_contents()
          ==================================

          Get a PHP web service client: https://github.com/moodlehq/sample-ws-clients

          1- Call the core_course_get_contents($courseid) web service function on a big course (for example restore http://hub.moodle.org/?courseid=278)
          2- check that the content you receive is correct (try to check one activity per module type)
          3- finally call this function when the https setting in enabled (all the site in https only). The returned file download urls should be in https (for example for file resource).

          Testing the file download script:
          =================================
          Get a PHP file download client: https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-HTTP-filehandling
          1- In this file only run the download part. Download one of the file url you got from your previous core_course_get_contents()
          2- Set the 'Can download file' in service advance settings to OFF. Then try to download the file again. It should fail with a correct error message.
          3- Try some fail cases from the following list: ip restriction/unvalid date on token/service, user not listed in restricted list, missing required capability, site in maintenance mode, user suspended, user confirmed, user deleted, nologin auth, password expired, web service disabled.
          Testing core_course_get_contents()
          ==================================

          Get a PHP web service client: https://github.com/moodlehq/sample-ws-clients

          1- Call the core_course_get_contents($courseid) web service function on a big course (for example restore http://hub.moodle.org/?courseid=278)
          2- check that the content you receive is correct (try to check one activity per module type)
          3- finally call this function when the https setting in enabled (all the site in https only). The returned file download urls should be in https (for example for file resource).

          Testing the file download script:
          =================================
          Get a PHP file download client: https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-HTTP-filehandling
          1- In this file only run the download part. Download one of the file url you got from your previous core_course_get_contents()
          2- Set the 'Can download file' in service advance settings to OFF. Then try to download the file again. It should fail with a correct error message.
          3- Try some fail cases from the following list: ip restriction/unvalid date on token/service, user not listed in restricted list, missing required capability, site in maintenance mode, user suspended, user confirmed, user deleted, nologin auth, password expired, web service disabled. I added some info about that in the docs: http://docs.moodle.org/21/en/Web_services_FAQ#What_is_the_.27Access_control_exception.27_error
          Jérôme Mouneyrac made changes -
          Testing Instructions Testing core_course_get_contents()
          ==================================

          Get a PHP web service client: https://github.com/moodlehq/sample-ws-clients

          1- Call the core_course_get_contents($courseid) web service function on a big course (for example restore http://hub.moodle.org/?courseid=278)
          2- check that the content you receive is correct (try to check one activity per module type)
          3- finally call this function when the https setting in enabled (all the site in https only). The returned file download urls should be in https (for example for file resource).

          Testing the file download script:
          =================================
          Get a PHP file download client: https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-HTTP-filehandling
          1- In this file only run the download part. Download one of the file url you got from your previous core_course_get_contents()
          2- Set the 'Can download file' in service advance settings to OFF. Then try to download the file again. It should fail with a correct error message.
          3- Try some fail cases from the following list: ip restriction/unvalid date on token/service, user not listed in restricted list, missing required capability, site in maintenance mode, user suspended, user confirmed, user deleted, nologin auth, password expired, web service disabled. I added some info about that in the docs: http://docs.moodle.org/21/en/Web_services_FAQ#What_is_the_.27Access_control_exception.27_error
          Testing core_course_get_contents()
          ==================================

          Get a PHP web service client: https://github.com/moodlehq/sample-ws-clients

          1- Call the core_course_get_contents($courseid) web service function on a big course (for example restore http://hub.moodle.org/?courseid=278)
          2- check that the content you receive is correct (try to check one activity per module type)
          3- finally call this function when the https setting in enabled (all the site in https only). The returned file download urls should be in https (for example for file resource).

          Testing the file download script:
          =================================
          1- Download one of the file url you got from your previous core_course_get_contents(). You'll need to add your ws token at the end (?token=893ny873b873b). Check that you can retrieve the right file.
          2- Set the 'Can download file' in service advance settings to OFF. Then try to download the file again. It should fail.
          3- Try some fail cases from the following list: ip restriction/unvalid date on token/service, user not listed in restricted list, missing required capability, site in maintenance mode, user suspended, user confirmed, user deleted, nologin auth, password expired, web service disabled. I added some info about that in the docs: http://docs.moodle.org/21/en/Web_services_FAQ#What_is_the_.27Access_control_exception.27_error
          Jérôme Mouneyrac made changes -
          Status Reopened [ 4 ] Waiting for integration review [ 10010 ]
          Aparup Banerjee made changes -
          Status Waiting for integration review [ 10010 ] Integration review in progress [ 10004 ]
          Aparup Banerjee made changes -
          Status Integration review in progress [ 10004 ] Waiting for testing [ 10005 ]
          Aparup Banerjee made changes -
          Status Waiting for testing [ 10005 ] Testing in progress [ 10011 ]
          Aparup Banerjee made changes -
          Status Testing in progress [ 10011 ] Tested [ 10006 ]
          Eloy Lafuente (stronk7) made changes -
          Status Tested [ 10006 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Currently in integration Yes [ 10041 ]
          Integration date 29/Nov/11
          Helen Foster made changes -
          Labels docs_required moodleapp qa_test_required triaged moodleapp qa_test_required triaged
          Tim Barker made changes -
          Link This issue QA test addition/change MDLTEST-179 [ MDLTEST-179 ]
          Tim Barker made changes -
          Labels moodleapp qa_test_required triaged moodleapp triaged

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: