COU-568 - Unpublish logic doesn't work with umbraco 7.6

Created by Shannon Deminick 18 May 2017, 02:47:15 Updated by Emil Wangaa 18 May 2017, 10:40:55

Subtask of: COU-521

We get this YSOD:

Details:

Here is some technical information that might help shed some light on whats happened:
An error occurred
Error: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.MissingMethodException: Method not found: 'Umbraco.Core.Persistence.UnitOfWork.IDatabaseUnitOfWork Umbraco.Core.Persistence.UnitOfWork.PetaPocoUnitOfWorkProvider.GetUnitOfWork()'. at Umbraco.Courier.Persistence.ContentHelper.UnpublishContent(Guid g) at Umbraco.Courier.DataResolvers.ItemEventProviders.UnPublishDocument.Execute(ItemIdentifier itemId, SerializableDictionary`2 parameters) in X:\Projects\Umbraco\Courier_3\Contrib\Providers\Umbraco.Courier.EventHandlers.V6\UnPublishDocument.cs:line 34 at Umbraco.Courier.Core.EventManager.ExecuteLocalEvent(String eventAlias, ItemIdentifier itemId, Dictionary`2 parameters, ExecutionContext context) in X:\Projects\Umbraco\Courier_3\Core\Umbraco.Courier.Core\Engines\EventManager.cs:line 128 at Umbraco.Courier.Core.EventManager.ExecuteLocalQueue(String sessionKey, String queueAlias, ExecutionContext context) in X:\Projects\Umbraco\Courier_3\Core\Umbraco.Courier.Core\Engines\EventManager.cs:line 82 at Umbraco.Courier.RepositoryProviders.Local.ExecuteQueue(String queueItems) in X:\Projects\Umbraco\Courier_3\Contrib\Providers\Umbraco.Courier.RepositoryProviders\Local\Local.cs:line 242 at Umbraco.Courier.RepositoryProviders.Webservices.Repository.ExecuteQueue(String sessionKey, String queueAlias) in X:\Projects\Umbraco\Courier_3\Contrib\Providers\Umbraco.Courier.RepositoryProviders\Webservices\Repository.asmx.cs:line 473 --- End of inner exception stack trace ---
Details: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.MissingMethodException: Method not found: 'Umbraco.Core.Persistence.UnitOfWork.IDatabaseUnitOfWork Umbraco.Core.Persistence.UnitOfWork.PetaPocoUnitOfWorkProvider.GetUnitOfWork()'. at Umbraco.Courier.Persistence.ContentHelper.UnpublishContent(Guid g) at Umbraco.Courier.DataResolvers.ItemEventProviders.UnPublishDocument.Execute(ItemIdentifier itemId, SerializableDictionary`2 parameters) in X:\Projects\Umbraco\Courier_3\Contrib\Providers\Umbraco.Courier.EventHandlers.V6\UnPublishDocument.cs:line 34 at Umbraco.Courier.Core.EventManager.ExecuteLocalEvent(String eventAlias, ItemIdentifier itemId, Dictionary`2 parameters, ExecutionContext context) in X:\Projects\Umbraco\Courier_3\Core\Umbraco.Courier.Core\Engines\EventManager.cs:line 128 at Umbraco.Courier.Core.EventManager.ExecuteLocalQueue(String sessionKey, String queueAlias, ExecutionContext context) in X:\Projects\Umbraco\Courier_3\Core\Umbraco.Courier.Core\Engines\EventManager.cs:line 82 at Umbraco.Courier.RepositoryProviders.Local.ExecuteQueue(String queueItems) in X:\Projects\Umbraco\Courier_3\Contrib\Providers\Umbraco.Courier.RepositoryProviders\Local\Local.cs:line 242 at Umbraco.Courier.RepositoryProviders.Webservices.Repository.ExecuteQueue(String sessionKey, String queueAlias) in X:\Projects\Umbraco\Courier_3\Contrib\Providers\Umbraco.Courier.RepositoryProviders\Webservices\Repository.asmx.cs:line 473 --- End of inner exception stack trace ---
 at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
 at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
 at Umbraco.Courier.RepositoryProviders.WebServiceProvider.RepositoryWebservice.ExecuteQueue(String sessionKey, String queueAlias) in X:\Projects\Umbraco\Courier_3\Contrib\Providers\Umbraco.Courier.RepositoryProviders\WebserviceProvider\webservice.cs:line 1357
 at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.ExecuteQueue(String queueAlias) in X:\Projects\Umbraco\Courier_3\Contrib\Providers\Umbraco.Courier.RepositoryProviders\WebserviceProvider\CourierWebserviceRepositoryProvider.cs:line 496
 at Umbraco.Courier.Core.Extraction.RevisionExtraction.CompleteDatabaseTransaction() in X:\Projects\Umbraco\Courier_3\Core\Umbraco.Courier.Core\Engines\Extraction\RevisionExtraction.cs:line 335
 at Umbraco.Courier.Core.Extraction.RevisionExtraction.Extract() in X:\Projects\Umbraco\Courier_3\Core\Umbraco.Courier.Core\Engines\Extraction\RevisionExtraction.cs:line 184
 at Umbraco.Courier.Core.Tasks.ExtractionTask.Run() in X:\Projects\Umbraco\Courier_3\Core\Umbraco.Courier.Core\Tasks\ExtractionTask.cs:line 115
 at Umbraco.Courier.Core.Tasks.SequentialRevisionTaskList.Run() in X:\Projects\Umbraco\Courier_3\Core\Umbraco.Courier.Core\Tasks\SequentialRevisionTaskList.cs:line 37
 at Umbraco.Courier.Core.BackgroundTaskRunner`1.ConsumeTaskInternal(T task) in X:\Projects\Umbraco\Courier_3\Core\Umbraco.Courier.Core\BackgroundTaskRunner.cs:line 306

Comments

Shannon Deminick 18 May 2017, 06:23:33

PR is here https://github.com/umbraco/UmbracoDeploy/pull/94

which is for all of these: http://issues.umbraco.org/issue/COU-568 http://issues.umbraco.org/issue/COU-570 http://issues.umbraco.org/issue/COU-405 http://issues.umbraco.org/issue/COU-568


Priority: Major

Type: Bug

State: Fixed

Assignee:

Difficulty:

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 3.1.2

Sprint:

Story Points:

Cycle: 1