qgis / qgis-docker

Official Docker image for QGIS Server and Desktop
GNU Affero General Public License v3.0
74 stars 24 forks source link

QGIS server 3.4.4 not working #12

Closed daniviga closed 5 years ago

daniviga commented 5 years ago

With the same configuration as 3.4.3, 3.4.4 returns an error:

Request:

http://localhost:8010/ogc/nepal-adm3-gem?request=GetCapabilities&version=1.1.1&service=WMS

<ServiceExceptionReport version="1.3.0">
  <ServiceException code="OperationNotSupported">Please check the value of the REQUEST parameter</ServiceException>
</ServiceExceptionReport>

It should be (tested with 3.4.3):

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE WMT_MS_Capabilities SYSTEM 'http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd'>
<WMT_MS_Capabilities version="1.1.1">
 <Service>
  <Name>WMS</Name>
  <Title>Map viewer</Title>
  <KeywordList>
   <Keyword vocabulary="ISO">infoMapAccessService</Keyword>
  </KeywordList>
  <OnlineResource xlink:type="simple" xlink:href="http://localhost:8000" xmlns:xlink="http://www.w3.org/1999/xlink"/>
  <Fees>None</Fees>
  <AccessConstraints>None</AccessConstraints>
 </Service>
 <Capability>
  <Request>
   <GetCapabilities>
    <Format>application/vnd.ogc.wms_xml</Format>
    <DCPType>
     <HTTP>
      <Get>
       <OnlineResource xlink:type="simple" xlink:href="http://localhost:8000/ogc/nepal-adm3-gem?" xmlns:xlink="http://www.w3.org/1999/xlink"/>
      </Get>
     </HTTP>
    </DCPType>
   </GetCapabilities>
   <GetMap>
    <Format>image/jpeg</Format>
    <Format>image/png</Format>
    <Format>image/png; mode=16bit</Format>
    <Format>image/png; mode=8bit</Format>
    <Format>image/png; mode=1bit</Format>
    <Format>application/dxf</Format>
    <DCPType>
     <HTTP>
      <Get>
       <OnlineResource xlink:type="simple" xlink:href="http://localhost:8000/ogc/nepal-adm3-gem?" xmlns:xlink="http://www.w3.org/1999/xlink"/>
      </Get>
     </HTTP>
    </DCPType>
   </GetMap>
   <GetFeatureInfo>
    <Format>text/plain</Format>
    <Format>text/html</Format>
    <Format>text/xml</Format>
    <Format>application/vnd.ogc.gml</Format>
    <Format>application/vnd.ogc.gml/3.1.1</Format>
    <DCPType>
     <HTTP>
      <Get>
       <OnlineResource xlink:type="simple" xlink:href="http://localhost:8000/ogc/nepal-adm3-gem?" xmlns:xlink="http://www.w3.org/1999/xlink"/>
      </Get>
     </HTTP>
    </DCPType>
   </GetFeatureInfo>
   <GetLegendGraphic>
    <Format>image/jpeg</Format>
    <Format>image/png</Format>
    <DCPType>
     <HTTP>
      <Get>
       <OnlineResource xlink:type="simple" xlink:href="http://localhost:8000/ogc/nepal-adm3-gem?" xmlns:xlink="http://www.w3.org/1999/xlink"/>
      </Get>
     </HTTP>
    </DCPType>
   </GetLegendGraphic>
   <DescribeLayer>
    <Format>text/xml</Format>
    <DCPType>
     <HTTP>
      <Get>
       <OnlineResource xlink:type="simple" xlink:href="http://localhost:8000/ogc/nepal-adm3-gem?" xmlns:xlink="http://www.w3.org/1999/xlink"/>
      </Get>
     </HTTP>
    </DCPType>
   </DescribeLayer>
   <GetStyles>
    <Format>text/xml</Format>
    <DCPType>
     <HTTP>
      <Get>
       <OnlineResource xlink:type="simple" xlink:href="http://localhost:8000/ogc/nepal-adm3-gem?" xmlns:xlink="http://www.w3.org/1999/xlink"/>
      </Get>
     </HTTP>
    </DCPType>
   </GetStyles>
  </Request>
  <Exception>
   <Format>application/vnd.ogc.se_xml</Format>
  </Exception>
  <Layer>
   <KeywordList>
    <Keyword vocabulary="ISO">infoMapAccessService</Keyword>
   </KeywordList>
   <SRS>CRS:84</SRS>
   <SRS>EPSG:3857</SRS>
   <SRS>EPSG:4326</SRS>
   <LatLonBoundingBox minx="80.0601" maxx="88.2039" miny="26.3475" maxy="30.447"/>
   <BoundingBox minx="80.0601" maxx="88.2039" SRS="EPSG:4326" miny="26.3475" maxy="30.447"/>
   <BoundingBox minx="8.91225e+6" maxx="9.81881e+6" SRS="EPSG:3857" miny="3.04218e+6" maxy="3.56114e+6"/>
   <Layer queryable="1">
    <Name>Nepal exposure (GEM taxonomy)</Name>
    <Title>Nepal exposure (GEM taxonomy)</Title>
    <SRS>CRS:84</SRS>
    <SRS>EPSG:3857</SRS>
    <SRS>EPSG:4326</SRS>
    <LatLonBoundingBox minx="80.0601" maxx="88.2039" miny="26.3475" maxy="30.447"/>
    <BoundingBox minx="80.0601" maxx="88.2039" SRS="EPSG:4326" miny="26.3475" maxy="30.447"/>
    <BoundingBox minx="8.91225e+6" maxx="9.81882e+6" SRS="EPSG:3857" miny="3.04219e+6" maxy="3.56114e+6"/>
    <Style>
     <Name>default</Name>
     <Title>default</Title>
     <LegendURL>
      <Format>image/png</Format>
      <OnlineResource xlink:type="simple" xlink:href="http://localhost:8000/ogc/nepal-adm3-gem?&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetLegendGraphic&amp;LAYER=Nepal exposure (GEM taxonomy)&amp;FORMAT=image/png&amp;STYLE=default" xmlns:xlink="http://www.w3.org/1999/xlink"/>
     </LegendURL>
    </Style>
   </Layer>
  </Layer>
 </Capability>
</WMT_MS_Capabilities>
daniviga commented 5 years ago

That was a reverse proxy issue in our application since 3.4.4 requires include fastcgi_params; in Nginx conf (see https://github.com/gem/oq-qgis-server/commit/796a4f46524cd67df5666b4097837e004cabd0e6)

mbernasocchi commented 5 years ago

Probabl comes from https://github.com/qgis/QGIS/pull/8830

daniviga commented 5 years ago

Yes, I'm pretty sure about that