Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-2038

Uncaught DataError: Evaluating the object store's key path yielded a value that is not a valid key.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.3.0
    • Component/s: Storage
    • Labels:
    • Testing Instructions:
      Hide
      1. Open the JS console on the browser.
      2. Execute the following code:

      var $mmApp = angular.element(document.querySelector('[ng-app]')).injector().get('$mmApp');
      $mmApp.getDB().insert('sites', {});
      

      3. Check you get the following error:

      $mmDB: Error executing function put to DB MoodleMobile
      $mmDB: Error: Value inserted does not have key id required on store sites

      You can try with other stores.

      Show
      Open the JS console on the browser. Execute the following code: var $mmApp = angular.element(document.querySelector( '[ng-app]' )).injector().get( '$mmApp' ); $mmApp.getDB().insert( 'sites' , {}); 3. Check you get the following error: $mmDB: Error executing function put to DB MoodleMobile $mmDB: Error: Value inserted does not have key id required on store sites You can try with other stores.
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle Mobile 3.3.0

      Description

      Message:
      Uncaught DataError: Evaluating the object store's key path yielded a value that is not a valid key.
      File: file:/$scope.pageLoaded = false;//android_asset/www/lib/ydn.db/jsc/ydn.db-dev.js
      Line: 200
      Platform: Android
      Model: SM-G313MU
      OS version: 4.4.2
      App version: 3.2.1 (2017) Official app
      Background: 1
      Cordova: 6.1.2
      Storage: indexeddb
      URL loaded: file:///android_asset/www/index.html#/mm_login/sites

      Seems to be affecting Samsung phones with android version lower than 4.4.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pferre22 Pau Ferrer
              Reporter:
              pferre22 Pau Ferrer
              Peer reviewer:
              Dani Palou
              Integrator:
              Juan Leyva
              Tester:
              Juan Leyva
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                26/May/17

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  0m
                  Logged:
                  Time Not Required
                  Not Specified