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

Html tag in timeline or course search trigger an error

    XMLWordPrintable

Details

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • Hide
      1. Log in as admin
      2. Create a new user
      3. Create a new course
        • Set Course start date to yesterday
      4. Enrol user as a student
      5. Add an Assignment activity
        • Set Due date to tomorrow
      6. Log out
      7. Log in as test user
      8. Navigate to Dashboard
      9. In the Timeline block, Search by activity type or name enter "<"
      10. Confirm there is no exception, and the timeline still shows content
      11. Search for your assignment
      12. Confirm assignment is listed in timeline
      13. Change Sort by dates to Sort by courses
      14. Repeat steps 9. to 12.
      15. Navigate to My courses
      16. Search for "<"
      17. Confirm there is no exception, and your courses are still listed
      18. Search for your course
      19. Confirm course is listed
      Show
      Log in as admin Create a new user Create a new course Set Course start date to yesterday Enrol user as a student Add an Assignment activity Set Due date to tomorrow Log out Log in as test user Navigate to Dashboard In the Timeline block, Search by activity type or name enter "<" Confirm there is no exception, and the timeline still shows content Search for your assignment Confirm assignment is listed in timeline Change Sort by dates to Sort by courses Repeat steps 9. to 12. Navigate to My courses Search for "<" Confirm there is no exception, and your courses are still listed Search for your course Confirm course is listed

    Description

      Steps to reproduce :

      • Go on Dashbord or My Courses
      • Search "<"
      • An "Invalid parameter value detected" error will trigger

      Stacktrace :

      searchvalue => Invalid parameter value detected (Invalid external api parameter: the value is "<", the server was expecting "text" type): Invalid external api parameter: the value is "<", the server was expecting "text" type
      Error code: invalidparameter
      * line 366 of /lib/externallib.php: invalid_parameter_exception thrown
      * line ? of unknownfile: call to external_api::validate_parameters()
      * line 240 of /lib/externallib.php: call to call_user_func()
      * line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
      searchvalue => Invalid parameter value detected (Invalid external api parameter: the value is "<", the server was expecting "text" type): Invalid external api parameter: the value is "<", the server was expecting "text" type
      Error code: invalidparameter
      * line 366 of /lib/externallib.php: invalid_parameter_exception thrown
      * line ? of unknownfile: call to external_api::validate_parameters()
      * line 240 of /lib/externallib.php: call to call_user_func()
      * line 81 of /lib/ajax/service.php: call to external_api::call_external_function() 

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              degrangem DegrangeM
              Simey Lameze Simey Lameze
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Gladys Basiana Gladys Basiana
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                19/Apr/22

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 35 minutes
                  2h 35m