Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-11198

QUrl doesn't apply IDN transformations for the domain in mailto: URIs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.0.0, 4.0.1, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.3.5, 4.4.0, 4.4.1, 4.4.2, 4.4.3, 4.5.0, 4.5.1, 4.5.2, 4.5.3, 4.6.0, 4.6.1, 4.6.2, 4.7.0
    • Core: URL Handling
    • None

    Description

      When a mailto: URI is set on a QUrl, QUrl will not apply any IDN checks and transformations to the domain name in the email address.

      In fact, QUrl doesn't do any kind of validity checking for mailto. The following is suggested:

      • When parsing, if the scheme is "mailto", enable email address checking
      • When setPath() / setEncodedPath() is called, if the scheme is "mailto", enable email address checking
      • Changing to scheme to "mailto" should not trigger revalidation or any transformations done to the path.
      • The IDN checks and canonicalisation should be applied to the domain portion of the URI
      • encodedPath() should return the ACE form of the domain name
      • path() should return the Unicode form of the domain name (if the TLD is whitelisted)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            tmacieir Thiago Macieira (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes