Skip to content
Permalink
Browse files
[WFS provider] Honour DCP HTTP URLs for transactions and SQL query bu…
…ilder (fixes #45242)
  • Loading branch information
rouault authored and nyalldawson committed Nov 1, 2021
1 parent 7efd771 commit f8b3becc493869ef79a8650a573359308ca445f7
Showing with 10 additions and 4 deletions.
  1. +0 −2 src/providers/wfs/qgswfscapabilities.cpp
  2. +2 −2 src/providers/wfs/qgswfsprovider.cpp
  3. +8 −0 tests/src/python/test_provider_wfs.py
@@ -372,8 +372,6 @@ void QgsWfsCapabilities::capabilitiesReplyFinished()
}
}
}

break;
}
}
}
@@ -1832,9 +1832,9 @@ bool QgsWFSProvider::getCapabilities()

const QgsWfsCapabilities::Capabilities caps = getCapabilities.capabilities();
mShared->mCaps = caps;
mShared->mURI.setGetEndpoints( caps.operationGetEndpoints );
mShared->mURI.setPostEndpoints( caps.operationPostEndpoints );
}
mShared->mURI.setGetEndpoints( mShared->mCaps.operationGetEndpoints );
mShared->mURI.setPostEndpoints( mShared->mCaps.operationPostEndpoints );

mShared->mWFSVersion = mShared->mCaps.version;
if ( mShared->mURI.maxNumFeatures() > 0 && mShared->mCaps.maxFeatures > 0 && !( mShared->mCaps.supportsPaging && mShared->mURI.pagingEnabled() ) )
@@ -848,6 +848,14 @@ def testWFST10(self):
f.write("""
<WFS_Capabilities version="1.0.0" xmlns="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc">
<OperationsMetadata>
<Operation name="GetFeature">
<DCP>
<HTTP>
<Get type="simple" href="http://dummy?"/>
<Post type="simple" href="http://dummy?"/>
</HTTP>
</DCP>
</Operation>
<Operation name="Transaction">
<DCP>
<HTTP>

0 comments on commit f8b3bec

Please sign in to comment.