U4-2125 - Delete media folder with subfolders FROM the recycle bin fails (6.0.3)

Created by Can Koluman 18 Apr 2013, 08:26:37 Updated by Sebastiaan Janssen 19 Apr 2013, 07:03:56

Duplicates: U4-2068

Delete media folder with sub folders fails under the following circumstances: Media > Create:Folder > 2013 Media > 2013 > Create:Folder > 4 Media > 2013> Right-Click:Delete + OK Media > Recycle Bin > 2013 > Right-Click:Delete + OK

Produces: /umbraco/webservices/legacyAjaxCalls.asmx/DeleteContentPermanently : 500 Internal Server Error

System.InvalidOperationException: Missing parameter: nodeId. at System.Web.Services.Protocols.ValueCollectionParameterReader.Read(NameValueCollection collection) at System.Web.Services.Protocols.HtmlFormParameterReader.Read(HttpRequest request) at System.Web.Services.Protocols.HttpServerProtocol.ReadParameters() at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()

{"Message":"The DELETE statement conflicted with the SAME TABLE REFERENCE constraint "FK_umbracoNode_umbracoNode_id". The conflict occurred in database "", table "dbo.umbracoNode", column \u0027parentID\u0027.\r\nThe statement has been terminated.","StackTrace":" at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction)\r\n at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction)\r\n at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)\r\n at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean\u0026 dataReady)\r\n at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)\r\n at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task\u0026 task, Boolean asyncWrite)\r\n at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource1 completion, Int32 timeout, Task\u0026 task, Boolean asyncWrite)\r\n at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)\r\n at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()\r\n at Umbraco.Core.Persistence.Database.Execute(String sql, Object[] args)\r\n at Umbraco.Core.Persistence.Repositories.PetaPocoRepositoryBase2.PersistDeletedItem(TEntity entity)\r\n at Umbraco.Core.Persistence.Repositories.MediaRepository.PersistDeletedItem(IMedia entity)\r\n at Umbraco.Core.Persistence.Repositories.RepositoryBase2.PersistDeletedItem(IEntity entity)\r\n at Umbraco.Core.Persistence.UnitOfWork.PetaPocoUnitOfWork.Commit()\r\n at Umbraco.Core.Services.MediaService.Delete(IMedia media, Int32 userId)\r\n at umbraco.cms.businesslogic.media.Media.DeletePermanently()\r\n at umbraco.presentation.webservices.legacyAjaxCalls.DeleteContentPermanently(String nodeId, String nodeType)","ExceptionType":"System.Data.SqlClient.SqlException"}

POSTED INFO : {"nodeId":"<NODE_ID>","nodeType":"mediaRecycleBin"}

Comments

Can Koluman 18 Apr 2013, 08:27:52

Forgot to add: Umbraco 6.0.3


Morten Christensen 19 Apr 2013, 06:54:30

Sebastiaan, are you sure you picked the right issue as duplicate?


Sebastiaan Janssen 19 Apr 2013, 07:03:56

@Morten .. Close enough. ;-)


Priority: Normal

Type: Bug

State: Duplicate

Assignee: Morten Christensen

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 6.0.3

Due in version:

Sprint:

Story Points:

Cycle: