Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

ExecuteResult isn't being called if IActionResult was returned from an action with object return typ #5337

Closed
kekekeks opened this issue Sep 29, 2016 · 3 comments

Comments

@kekekeks
Copy link

public object Index()
{
    return new JsonResult(new {test = 123});
}

Expected:

{"test":123}

Actual:

{"contentType":null,"serializerSettings":null,"statusCode":null,"value":{"test":123}}

This code has worked perfectly fine with RC1 and previous (classic) versions of ASP.NET MVC, so this is a regression.

@kekekeks kekekeks changed the title ExecuteResult isn't being called if IActionResult was returned from action with object return typ ExecuteResult isn't being called if IActionResult was returned from an action with object return typ Sep 29, 2016
@Eilon
Copy link
Member

Eilon commented Sep 29, 2016

@rynowak I know we've talked about this before but I can't find a dup bug. Any idea where it might be? Or did we never file a bug?

@nil4
Copy link

nil4 commented Sep 29, 2016

Sounds like #4960

@Eilon
Copy link
Member

Eilon commented Sep 29, 2016

@nil4 yes that's exactly it, thanks! Looks like we fixed it in 1.1.0.

@Eilon Eilon closed this as completed Sep 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants