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

ETag value must be a quoted-string

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5
    • 2.3.8, 2.4.5, 2.5.1
    • Files API
    • None
    • MOODLE_25_STABLE
    • MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • m26_MDL-40002_ETag_value_must_be_a_quoted-string
    • Hide

      (difficulty: easy, requires to use a network sniffer)

      1. Open a 3rd party network sniffer e.g. Fiddler and start capturing the network (HTTP) traffic. For Fiddler, press F12
      2. Open your preferred browser e.g. Chrome and cleanup its cache
      3. Point the browser to the home of your Moodle instance
      4. Check each captured response: HTTP Status must be 200 and in the Response Headers, the ETag value - available for any CSS/Image/JS provided by Moodle - must be surrounded by quotes
      5. Redo a browser request to the same page: now any of the above response will be provided by the browser cache, the HTTP Status must be equal to 304
      Show
      (difficulty: easy, requires to use a network sniffer) Open a 3rd party network sniffer e.g. Fiddler and start capturing the network (HTTP) traffic. For Fiddler, press F12 Open your preferred browser e.g. Chrome and cleanup its cache Point the browser to the home of your Moodle instance Check each captured response: HTTP Status must be 200 and in the Response Headers , the ETag value - available for any CSS / Image / JS provided by Moodle - must be surrounded by quotes Redo a browser request to the same page: now any of the above response will be provided by the browser cache, the HTTP Status must be equal to 304

    Description

      Starting from the investigations reported in MDL-39832, it appears that ETag has not been correctly quoted as required per RFC2616: issues have been actually found only in serving files via lib/filelib.php e.g. pluginfile.php under some circumstances (see MDL-39832 for details).

      Attachments

        Issue Links

          Activity

            People

              matteo Matteo Scaramuccia
              matteo Matteo Scaramuccia
              Petr Skoda Petr Skoda
              Dan Poltawski Dan Poltawski
              Sam Hemelryk Sam Hemelryk
              Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8/Jul/13