Skip to content
Permalink
Browse files

[WFS provider] Fix connecting to a server with non-basic authentication

  • Loading branch information
rouault authored and nyalldawson committed Nov 20, 2020
1 parent 75c848f commit 0a350e1731d5543345b3c9a34ef2d6cf1618a11b
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/providers/wfs/qgswfssourceselect.cpp
@@ -170,7 +170,7 @@ void QgsWFSSourceSelect::populateConnectionList()

QgsWfsConnection connection( cmbConnections->currentText() );
delete mCapabilities;
mCapabilities = new QgsWfsCapabilities( connection.uri().uri() );
mCapabilities = new QgsWfsCapabilities( connection.uri().uri( false ) );
connect( mCapabilities, &QgsWfsCapabilities::gotCapabilities, this, &QgsWFSSourceSelect::capabilitiesReplyFinished );
}

@@ -503,7 +503,7 @@ void QgsWFSSourceSelect::buildQuery( const QModelIndex &index )

//get available fields for wfs layer
QgsWfsConnection connection( cmbConnections->currentText() );
QgsWFSDataSourceURI uri( connection.uri().uri() );
QgsWFSDataSourceURI uri( connection.uri().uri( false ) );
uri.setTypeName( typeName );

QgsDataProvider::ProviderOptions providerOptions;
@@ -714,7 +714,7 @@ void QgsWFSSourceSelect::cmbConnections_activated( int index )
QgsWfsConnection connection( cmbConnections->currentText() );

delete mCapabilities;
mCapabilities = new QgsWfsCapabilities( connection.uri().uri() );
mCapabilities = new QgsWfsCapabilities( connection.uri().uri( false ) );
connect( mCapabilities, &QgsWfsCapabilities::gotCapabilities, this, &QgsWFSSourceSelect::capabilitiesReplyFinished );
}

0 comments on commit 0a350e1

Please sign in to comment.
You can’t perform that action at this time.