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

QUrl, StrictMode has bug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.2.6
    • Core: Other
    • None

    Description

      Good afternoon, if you pass an invalid url ("igmp;//225.77.32.152;5000"), then QUrl returns isValid() == true , although it seems that this is an invalid url.

      reproducable code,

      #include <QCoreApplication>
      #include <QUrl>
      
      int main(int argc, char *argv[])
      {
          QCoreApplication a(argc, argv);
          const QUrl url("igmp;//225.77.32.152:5000", QUrl::StrictMode);
          if (url.isValid()) {
              qDebug() << "url isValid";
          }
      
          qDebug() << "scheme:" << url.scheme();
      
          return 0;
      }

      Results,

      18:52:43: Starting /home/tmp/build-untitled-Desktop/untitled...
      url isValid
      scheme: ""
      18:52:43: /home/tmp/build-untitled-Desktop/untitled exited with code 0 

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            lma10h Raphael Osipov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes