Skip to content

Commit

Permalink
Fixes #17400 by returning an empty response if a layer is ignored due…
Browse files Browse the repository at this point in the history
… to configuration
  • Loading branch information
pblottiere committed Nov 10, 2017
1 parent 2ca4ee5 commit 39bce94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/services/wms/qgswmsrenderer.cpp
Expand Up @@ -1341,7 +1341,7 @@ namespace QgsWms
}
}

if ( !validLayer )
if ( !validLayer && !mNicknameLayers.contains( queryLayer ) )
{
QString msg = QObject::tr( "Layer '%1' not found" ).arg( queryLayer );
throw QgsBadRequestException( QStringLiteral( "LayerNotDefined" ), msg );
Expand Down

0 comments on commit 39bce94

Please sign in to comment.