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

Log report export contains html

    Details

    • Testing Instructions:
      Hide
      1. Navigate to Site administration > Reports > Logs and select “Standard log” from the dropdown and click “Get these logs”. If that option is not available then you are already viewing the standard log by default.
      2. Under the “Download table data as” label, select the CSV format and click “Download”. Open the downloaded file and verify that the data in the file, including the headers, match the data on the page and that it does not contain HTML.
      Show
      Navigate to Site administration > Reports > Logs and select “Standard log” from the dropdown and click “Get these logs”. If that option is not available then you are already viewing the standard log by default. Under the “Download table data as” label, select the CSV format and click “Download”. Open the downloaded file and verify that the data in the file, including the headers, match the data on the page and that it does not contain HTML.
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE

      Description

      When downloading any type of log file (.csv, excel, tab seperated etc), the user full name, event context, event name and ip address are all outputted as html. Not very useful if you're trying to drill through them.

      To replicate:
      Go to:
      Administration -> Site administration -> Reports -> Logs
      Select a log to view (any does it)
      Go to bottom of page, select any of the download file types, select "Download'
      Open file and the columns named above have all the html from the browser included.

      Is this meant to happen? Or can there be an option to download without html?

      Thanks!

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  11 Vote for this issue
                  Watchers:
                  18 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    9/Mar/15