Skip to content
Permalink
Browse files

Fix authentication configuration is lost when adding Arcgis Feature

Service/Map service layers via source select dialog instead of browser

Fixes #39822

(cherry picked from commit 443695c)
  • Loading branch information
nyalldawson committed Nov 20, 2020
1 parent b21bc03 commit f5bc8c943549782cd3099acc8abb8d329c40881e
@@ -168,7 +168,7 @@ void QgsAfsSourceSelect::buildQuery( const QgsOwsConnection &connection, const Q
ds.removeParam( QStringLiteral( "url" ) );
ds.setParam( QStringLiteral( "url" ), url );
QgsDataProvider::ProviderOptions providerOptions;
QgsAfsProvider provider( ds.uri(), providerOptions );
QgsAfsProvider provider( ds.uri( false ), providerOptions );
if ( !provider.isValid() )
{
return;
@@ -204,7 +204,7 @@ QString QgsAfsSourceSelect::getLayerURI( const QgsOwsConnection &connection,
{
ds.setParam( QStringLiteral( "bbox" ), QStringLiteral( "%1,%2,%3,%4" ).arg( bBox.xMinimum() ).arg( bBox.yMinimum() ).arg( bBox.xMaximum() ).arg( bBox.yMaximum() ) );
}
return ds.uri();
return ds.uri( false );
}


@@ -170,7 +170,7 @@ QString QgsAmsSourceSelect::getLayerURI( const QgsOwsConnection &connection,
ds.setParam( QStringLiteral( "layer" ), layerId );
ds.setParam( QStringLiteral( "crs" ), crs );
ds.setParam( QStringLiteral( "format" ), getSelectedImageEncoding() );
return ds.uri();
return ds.uri( false );
}

void QgsAmsSourceSelect::addServiceLayer( QString uri, QString typeName )

0 comments on commit f5bc8c9

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