U4-7255 - 7.3.0, CacheRefresher.asmx throw an exception

Created by Petr Svoboda 15 Oct 2015, 09:34:06 Updated by Stephan 16 Oct 2015, 10:33:11

What did you do?

I run http://UmbracoRootWebUrl/umbraco/webservices/CacheRefresher.asmx web service.

What did you expect to happen?

That web service show web service description.

What actually happened?

Webservice CacheRefresher.asmx throw exception: Umbraco.Core.Sync.RefreshInstruction cannot be serialized because it does not have a parameterless constructor.

Why?

One web method contain class RefreshInstruction:

[WebMethod] public void BulkRefresh(RefreshInstruction[] instructions, string appId, string login, string password) { ClearCache(); }

Class RefreshInstruction don't contain parameterless constructor:

namespace Umbraco.Core.Sync { public class RefreshInstruction { public RefreshInstruction(Guid refresherId, RefreshMethodType refreshType, Guid guidId, int intId, string jsonIds, string jsonPayload);

    //
    // Summary:
    //     Gets or sets the Guid data value.
    public Guid GuidId { get; set; }

And web service serialization need parameterless constructor...

Compare old version of Umbraco CMS with new version Umbraco CMS (7.3.0)

See it in attachment...

2 Attachments

Comments

Stephan 16 Oct 2015, 10:28:58

Pushed 3a5a32c65fc1681c6ebc8890af9de2eba4efaaf9 in dev-v7


Priority: Critical

Type: Bug

State: Fixed

Assignee: Stephan

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 7.3.1

Sprint: Sprint 1

Story Points:

Cycle: