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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.4.5, 3.5.1, 3.6
    • 3.4.6, 3.5.3
    • Web Services

    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

            jleyva Juan Leyva
            jleyva Juan Leyva
            Carlos Escobedo Carlos Escobedo
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            CiBoT CiBoT
            Juan Leyva, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              12/Nov/18