<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi all,</p>
    <p>i'm using QGIS version 3.10.11 and i have a problem with QGIS
      SERVER when i made a request of WFS service.</p>
    <p>This is the request:</p>
    <p><SERVERURL>?MAXFEATURES=5&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=Layer1,Layer2&OUTPUTFORMAT=application/vnd.ogc.gml&SRSNAME=EPSG:3003&FILTER=<Filter
xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/ogc">"http://www.opengis.net/ogc"</a>><BBOX><PropertyName>the_geom</PropertyName><Envelope
xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a>><lowerCorner>1680861.2565216224
4851238.120847652</lowerCorner><upperCorner>1680916.6004863703
4851321.496171168</upperCorner></Envelope></BBOX></Filter></p>
    <p>The response is:</p>
    <ol class="tree-outline" role="tree" tabindex="-1" style="box-sizing: border-box; min-width: 0px; min-height: 0px; padding: 0px 0px 4px 4px; margin: 0px; z-index: 0; position: relative; list-style-type: none; padding-inline-start: 0px; color: rgb(48, 57, 66); font-family: "dejavu sans mono", monospace; font-size: 11px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><li role="treeitem" class="parent expanded" aria-expanded="true" style="box-sizing: border-box; min-width: 0px; min-height: 12px; text-overflow: ellipsis; white-space: nowrap; position: relative; display: flex; align-items: center;"><span class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, 128);"><ServiceExceptionReport</span><span class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, 128);"> </span><span class="shadow-xml-view-attribute-name" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(153, 69, 0);">xmlns</span><span class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, 128);">="</span><span class="shadow-xml-view-attribute-value" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(26, 26, 166);"><a class="moz-txt-link-freetext" href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a></span><span class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, 128);">"</span><span class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, 128);"> </span><span class="shadow-xml-view-attribute-name" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(153, 69, 0);">version</span><span class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, 128);">="</span><span class="shadow-xml-view-attribute-value" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(26, 26, 166);">1.2.0</span><span class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, 128);">"</span><span class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, 128);">></span></li><ol class="children expanded" role="group" style="box-sizing: border-box; min-width: 0px; min-height: 0px; list-style: none; padding: 0px; margin: 0px; padding-inline-start: 16px; display: block;"><li role="treeitem" style="box-sizing: border-box; min-width: 0px; min-height: 12px; text-overflow: ellipsis; white-space: nowrap; position: relative; display: flex; align-items: center;"><span class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, 128);"><ServiceException</span><span class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, 128);"> </span><span class="shadow-xml-view-attribute-name" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(153, 69, 0);">code</span><span class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, 128);">="</span><span class="shadow-xml-view-attribute-value" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(26, 26, 166);">RequestNotWellFormed</span><span class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, 128);">"</span><span class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, 128);">></span><span class="shadow-xml-view-text" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(0, 0, 0); white-space: pre;">There has to be a 1:1 mapping between each element in a TYPENAME and the FILTER list</span><span class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, 128);"></ServiceException</span><span class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, 128);">></span></li><li role="treeitem" class="shadow-xml-view-close-tag force-white-icons selected" tabindex="0" aria-selected="true" style="box-sizing: border-box; min-width: 0px; min-height: 12px; outline-width: 0px; text-overflow: ellipsis; white-space: nowrap; position: relative; display: flex; align-items: center; margin-left: -16px; color: var(--selection-fg-color);"><span class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: inherit;"></ServiceExceptionReport></span></li></ol></ol>
    <p>To get results i have to repeat the filter twice (or n-time if i
      have n layers)<br>
    </p>
    <p><SERVERURL>?MAXFEATURES=5&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=Layer1,Layer2&OUTPUTFORMAT=application/vnd.ogc.gml&SRSNAME=EPSG:3003&FILTER=(<Filter
xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/ogc">"http://www.opengis.net/ogc"</a>><BBOX><PropertyName>the_geom</PropertyName><Envelope
xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a>><lowerCorner>1680861.2565216224
4851238.120847652</lowerCorner><upperCorner>1680916.6004863703
4851321.496171168</upperCorner></Envelope></BBOX></Filter>)(<Filter
xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/ogc">"http://www.opengis.net/ogc"</a>><BBOX><PropertyName>the_geom</PropertyName><Envelope
xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a>><lowerCorner>1680861.2565216224
4851238.120847652</lowerCorner><upperCorner>1680916.6004863703
4851321.496171168</upperCorner></Envelope></BBOX></Filter>)</p>
    <p>I don't remember in which version of QGIS SERVER the previous
      request run with no issue. Does it change something?</p>
    <p>Thanks</p>
    <p><br>
    </p>
    <p>Francesco<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <div class="moz-signature">-- <br>
      <b>Informativa Privacy</b>– Ai sensi del Regolamento (UE) 2016/679
      si precisa che le informazioni contenute in questo messaggio sono
      riservate e ad uso esclusivo del destinatario. Qualora il
      messaggio in parola Le fosse pervenuto per errore, La preghiamo di
      eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene
      gentilmente comunicazione. Grazie.</div>
  </body>
</html>