Internal error when trying to delete an application

WHen I try to delete an application (either from ServiceCenter or from Service Studio), I get an internal error (see below).

Any ideas how to troubleshoot this?...


Incorrect syntax near 's'. Unclosed quotation mark after the character string ') WHERE [KEY] = @key'. Details : System.Data.SqlClient.SqlException (0x80131904): Incorrect syntax near 's'. Unclosed quotation mark after the character string ') WHERE [KEY] = @key'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at OutSystems.HubEdition.Extensibility.Data.ExecutionService.BaseExecutionService.ExecuteNonQuery(IDbCommand cmd) at OutSystems.Internal.Db.Command.ExecuteNonQuery(String description, Boolean isApplication, Boolean skipLog, Boolean applyTransformationsToParameters) at OutSystems.Server.Services.ApplicationPortfolio.Infrastructure.Database.DBApplicationMetamodel.ChangeDeletedAppKeyAndName(Transaction trans, ObjectKey oldKey, String oldName) at OutSystems.Server.Services.ApplicationPortfolio.Infrastructure.Repositories.Applications.ApplicationRepository.DeleteEmptyApplication(Application app) at OutSystems.Server.Services.ApplicationPortfolio.Application.Shared.ApplicationDefinitionHelper.DeleteApplication(IUserIdentity userIdentity, Application application) at OutSystems.Server.Services.ApplicationPortfolio.Application.Applications.ApplicationService.DeleteApplication(IUserIdentity user, ObjectKey applicationKey) at OutSystems.HubEdition.DeploymentController.Compiler.DeleteApplication(ICompilerContext context, Guid operationId, ObjectKey appKey, Int32 userId, HEMessageArrayList& messages) ClientConnectionId:09cf86f3-fb05-4f3d-a27c-a6f1d3f116fb Error Number:102,State:1,Class:15


Solution

I'd contact Support. This seems a bug in SC/LifeTime.

Solution

Apparently, the problem was that the application had an apostrophe in its name. It is an SQL injection vulnerability. Little Bobby Tables :)

Thanks for the feedback!