Skip to content
Permalink
Browse files

Fixes #17400 by returning an empty response if a layer is ignored due…

… to configuration
  • Loading branch information
pblottiere committed Nov 9, 2017
1 parent 2ca4ee5 commit 39bce943bd0b6a20b4745c471773adbcdae792ee
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/server/services/wms/qgswmsrenderer.cpp
@@ -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 );

0 comments on commit 39bce94

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