Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-63225

Web Service returned fields exceptions are not informing properly about null values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.5, 3.5.1, 3.6
    • Fix Version/s: 3.4.6, 3.5.3
    • Component/s: Web Services
    • Labels:

      Description

      I've seen the following a couple of times reported in the forums:

      Invalid response value detected: password => Invalid response value detected: Invalid external api response: the value is "", the server was expecting "raw" type"

      In this case, the value is not really an empty string, the value is a NULL value and depending on how the exporter or external field is defined, it may not allow NULL values.

      Please, note that this mostly happens in sites with the DB schema broken or incorrect upgrades where there are NULL values where they shouldn't be.

        Attachments

          Activity

            People

            Assignee:
            jleyva Juan Leyva
            Reporter:
            jleyva Juan Leyva
            Peer reviewer:
            Carlos Escobedo
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            CiBoT
            Participants:
            Component watchers:
            Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              12/Nov/18