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

Multiple singletons do not get instanciated from same qmldir over http

    XMLWordPrintable

Details

    • Windows
    •  5ca1d2e0b2912e578a32c5e11b4fd1d7a0ef28f3

    Description

      When a qmldir contains multiple singletons the application fails silently when beeing called over http. When each singleton is imported from a seperate directory it works.

      Steps to reproduce:

      • download the attached test project
      • compile the code
      • execute a webserver in the source directory (e.x python -m http.server)

      Expected result:

      • green is beeing displayed on the screen

      The Webserver creates the following output:

       

      C:\Users\feurd\Downloads\test>python -m http.server
      Serving HTTP on 0.0.0.0 port 8000 ...
      127.0.0.1 - - [13/Sep/2019 09:15:35] "GET /Com/Orga/Handlers/Handler.qml HTTP/1.1" 200 -
      127.0.0.1 - - [13/Sep/2019 09:15:35] "GET /Com/Orga/Handlers/qmldir HTTP/1.1" 200 -
      127.0.0.1 - - [13/Sep/2019 09:15:35] code 404, message File not found
      127.0.0.1 - - [13/Sep/2019 09:15:35] "GET /Com/Orga1.1.0/qmldir HTTP/1.1" 404 -
      127.0.0.1 - - [13/Sep/2019 09:15:35] code 404, message File not found
      127.0.0.1 - - [13/Sep/2019 09:15:35] "GET /Com/Orga1.1/qmldir HTTP/1.1" 404 -
      127.0.0.1 - - [13/Sep/2019 09:15:35] code 404, message File not found
      127.0.0.1 - - [13/Sep/2019 09:15:35] "GET /Com.1.0/Orga1/qmldir HTTP/1.1" 404 -
      127.0.0.1 - - [13/Sep/2019 09:15:35] code 404, message File not found
      127.0.0.1 - - [13/Sep/2019 09:15:35] "GET /Com.1/Orga1/qmldir HTTP/1.1" 404 -
      127.0.0.1 - - [13/Sep/2019 09:15:35] "GET /Com/Orga1/qmldir HTTP/1.1" 200 -
      127.0.0.1 - - [13/Sep/2019 09:15:35] "GET /Com/Orga1/Singleton1.qml HTTP/1.1" 200 -
      127.0.0.1 - - [13/Sep/2019 09:15:35] "GET /Com/Orga1/Singleton2.qml HTTP/1.1" 200 -

      Attachments

        Issue Links

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              david_feurle David Feurle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: