[MNG-7110] Different behavior of extensions

restore configuration of importRequest
This commit is contained in:
rfscholte 2021-03-12 18:24:13 +01:00
parent ad24f599ce
commit aa90370ff4
1 changed files with 9 additions and 5 deletions

View File

@ -1414,11 +1414,15 @@ public class DefaultModelBuilder
final ModelBuildingResult importResult;
try
{
ModelBuildingRequest importRequest = new DefaultModelBuildingRequest( request )
.setTwoPhaseBuilding( false )
.setValidationLevel( ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL )
.setModelSource( importSource )
.setModelResolver( modelResolver.newCopy() );
ModelBuildingRequest importRequest = new DefaultModelBuildingRequest();
importRequest.setValidationLevel( ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL );
importRequest.setModelCache( request.getModelCache() );
importRequest.setSystemProperties( request.getSystemProperties() );
importRequest.setUserProperties( request.getUserProperties() );
importRequest.setLocationTracking( request.isLocationTracking() );
importRequest.setModelSource( importSource );
importRequest.setModelResolver( modelResolver.newCopy() );
importResult = build( importRequest, importIds );
}