Thanks for all the responses

An xml file can be compressed , too 😊 Accept-Encoding is just a hint
to the server which compression the client accepts, and the server is free to
ignore it. So I doubt that's the issue.
I am just uploading whatever the repogen tool created for me.

My guess is the "?-915259074 " part of the url is what makes the server fail.

To prevent caching, you may wish instead to add header:
Cache-Control: no-store
For the above suggestions, how do I do that through the IFW? Are there config.xml parameters that I missed?

Is it possible for you to lighten the restriction on the User-Agent in ModSecurity in this case?
I have tried to disable modsecurity completely to debug this issue, and it does not help unfortunately.

Kevin

On 09/18/2018 12:01 AM, MÃ¥rten Nordheim wrote:

Hey,

I used curl a bit to test things out with the address you provided. The request is rejected by "Mod_Security" seemingly due to the User-Agent. The options here are limited since it seems IFW doesn't let you change User-Agent ( https://bugreports.qt.io/browse/QTIFW-671 ). Is it possible for you to lighten the restriction on the User-Agent in ModSecurity in this case?

MÃ¥rten


On 18.09.2018 01:33, Kevin Wang wrote:

Hi All,

I am attempting to utilize the Qt Installer Framework for our company's software. I am just starting out and am running into some issues.

I uploaded the generated repo to our website, and linked the repo in the installer. When I run the installer and attempt to fetch the remote repo tree, it returns this:

    "Cannot retrieve remote tree. "

Using the --verbose option, it says this:

    [1744] Network error while downloading
    
'http://www.spikegadgets.com/downloads/onlinesoftwarerepo/Updates.xml?-763156944':
    Error transferring
    
http://www.spikegadgets.com/downloads/onlinesoftwarerepo/Updates.xml?-763156944
    - server replied: Not Acceptable.
    [1745] Cannot fetch a valid version of Updates.xml from
    repository "": "unexpected character"
    [1751] Cannot retrieve remote tree .

You can even go to the link above in a browser and see that it is uploaded properly.

I sniffed out the HTTP request and it showed that the IFW sent this:

    GET /downloads/onlinesoftwarerepo/Updates.xml?-915259074 HTTP/1.1
    Connection: Keep-Alive
    Accept-Encoding: gzip, deflate
    Accept-Language: en-US,*
    User-Agent: Mozilla/5.0
    Host: www.spikegadgets.com


So I have absolutely no experience in web servers and HTTP requests and such. The website and FTP was set up for us, which I used to upload the repo. To me, the issue seems to be that the Installer framework is sending a HTTP request for an encoding that doesn't make sense ("Accept-Encoding: gzip, deflate" for a .xml file?).

Is there something I am missing? Doing wrong? What should I look into to fix this?

Kevin



_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest



_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to