<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class="webkit-block-placeholder"></div><div class="">Ticket filled <a href="https://issues.qgis.org/issues/17866" class="">https://issues.qgis.org/issues/17866</a></div>
<br class=""><div><blockquote type="cite" class=""><div class="">Le 16 janv. 2018 à 09:18, David Marteau <<a href="mailto:dmarteau@3liz.com" class="">dmarteau@3liz.com</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Alessandro</div><div class=""><br class=""></div><div class="">This is a weird bug, I have also found that once the first request failed, others requests succeed wathever the url or the provider is (tried with wcs and wms).</div><div class="">When failing, looking on what append wms server  side when we found that no request is sent.</div><div class=""><br class=""></div><div class="">I fill a ticket on this.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class=""><div class=""><div class=""><div class="h5"><div class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap:break-word" class=""><div class=""><div class="">The point is: trying to instanciate  a  wmsprovider will issue a timeout when trying to request the capabilities: the code responsible for that creates its own QEventLoop and manage to do a blocking call (which is expected here). </div><div class="">Please have a look at <a href="https://github.com/qgis/QGIS/blob/master/src/providers/wms/qgswmscapabilities.cpp#L1964" target="_blank" class="">https://github.com/qgis/<wbr class="">QGIS/blob/master/src/<wbr class="">providers/wms/<wbr class="">qgswmscapabilities.cpp#L1964</a>.  What we do not understand is why, despite the call of loop.exec() in the c++ code, the request is not processed (my example with the  Q(gs)etworkAccessManager</div><div class="">shows that it should processed)</div><div class=""><br class=""></div><div class="">Actually you cannot instanciate properly a QgsProject with a WMS layer.</div><div class=""><br class=""></div><div class="">To convince yourself, try to instanciate a QgsProject in python (in a standalone python script) from a .qgs project having a single wms layer: it will fail to instanciate the layer.</div><br clear="all" class=""></div></div></div></blockquote></div></div></div></div></div></div></blockquote></div></div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">Hi David, <br class=""></div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">I verified this issue, I'm sorry but I don't have an explanation right away and it looks like a bug, please file a ticket.</div><div class="gmail_extra"></div><div class="gmail_extra"><br class=""></div><div class="gmail_extra"><br class="">-- <br class=""><div class="gmail_signature" data-smartmail="gmail_signature">Alessandro Pasotti<br class="">w3:   <a href="http://www.itopen.it/" target="_blank" class="">www.itopen.it</a></div>
</div></div>
</div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></body></html>