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

QUrl handles ipv6 zone id wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.6.0
    • Network
    • None

    Description

      Hi,

      I need to use an url with ipv6 zone id, which is usually written as address%zone_ID. Have a look at https://4sysops.com/archives/ipv6-tu...ast-addresses/.

      For example: fe80::bd0f:a8bc:6480:238b%11

      When passing this String to QUrl::setHost() the error is returned "Invalid IPv6 address" by QUrl::errorString() and QUrl::isValid() is false:

      Example call:
      baseUrl->setHost("fe80::bd0f:a8bc:6480:238b%11");

      Is this a bug in QT?

      How to assign a ipv6 zone id to a QUrl?

      regards

      spachner

      Attachments

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

        Activity

          People

            richmoore Richard Moore (qtnetwork)
            spachner Stefan Pachner
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes