Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-29490 META: WebDAV repository improvement
  3. MDL-38799

Webdav servers without content-type encoding : blank list of files

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_24_STABLE

      Description

      First I hope it's the good way to do it.

      As pointed briefly in this quote :
      https://tracker.moodle.org/browse/MDL-22663?focusedCommentId=113893&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-113893
      there is still a problem with some servers that don't return their content-type encoding.
      For example, one I'm trying to connect is returning 'Content-Type' => 'text/xml' and Moodle says "Missing Content-Type: text/xml header in response!!" in debug mode.
      in lib/webdavlib.php:812 , I have surrounded the part with charset=xxx with ()? and then it worked.
      There is others tests about charset l.623 and l.720 in the same file.
      My knowledge stops here, is it a problem to avoid charset tests ? I think not.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            lartet Florent Lartet
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: