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

Empty 'htmleditor' user preference causes debug warning in Privacy export

    XMLWordPrintable

    Details

      Description

      Somehow we have user preference values containing an empty string for 'htmleditor':

      SELECT * FROM `mdl_user_preferences` WHERE name = 'htmleditor' AND value = '' 
      

      id userid name value
      150 2 htmleditor  
      162 4 htmleditor  
      166 409 htmleditor  
      219 2486 htmleditor  

      Running a privacy export produces the following debugging:

          Processing core_editor (457/501) (Wednesday, 27 March 2019, 11:37 AM)
      ++ Invalid get_string() identifier: 'pluginname' or component 'editor_'. Perhaps you are missing $string['pluginname'] = ''; in /lang/en/editor_.php? ++
      * line 349 of /lib/classes/string_manager_standard.php: call to debugging()
      * line 7153 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
      * line 68 of /lib/editor/classes/privacy/provider.php: call to get_string()
      * line 7828 of /lib/moodlelib.php: call to core_editor\privacy\provider::export_user_preferences()
      * line 578 of /privacy/classes/manager.php: call to component_class_callback()
      * line 611 of /privacy/classes/manager.php: call to core_privacy\manager::component_class_callback()
      * line 361 of /privacy/classes/manager.php: call to core_privacy\manager->handled_component_class_callback()
      * line 79 of /privacy_test_export.php: call to core_privacy\manager->export_user_data()
      

      Inspecting the exported data:

      var data_file_1104 = {
          "htmleditor": {
              "value": "",
              "description": "Your preferred editor to use for writing HTML text is [[pluginname]]"
          }
      }
      

      Affects all versions from 3.5 onwards

      Discovered when using the Test of exporting user data utility

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pholden Paul Holden
                Reporter:
                pholden Paul Holden
                Peer reviewer:
                Andrew Nicols
                Integrator:
                Eloy Lafuente (stronk7)
                Tester:
                CiBoT
                Participants:
                Component watchers:
                Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/May/19

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 11 minutes
                  1h 11m