Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-2041

Android 4.4 and older can't download/upload files with TLS 1.2 certificates

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.3.0
    • Fix Version/s: None
    • Component/s: Android, File system
    • Labels:
    • Affected Branches:
      MOODLE_33_STABLE

      Description

      The FileTransfer download is throwing the error:

      code:3
      exception: Connection cosed by peer.

      I looked for it and in some places it says that TLS 1.2 is supported but not enabled by default in Android 4.4 and older. The problem is that "enabling" it means changing the native code of FileTransfer, and it could cause problems with other certificates.

      In other places it says that it depends on the vendor, some brands might have removed TLS 1.2 support at all so there would be no fix for those.

      I also read that these params could fix it, but it didn't work for me, the only change is that the error was thrown later:
      Connection: 'close'
      chunkMode: false

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            dpalou Dani Palou
            Participants:
            Component watchers:
            Juan Leyva
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: