WebApi icon indicating copy to clipboard operation
WebApi copied to clipboard

When returning an IQueryable to OData, if the IEnumerator throws during query execution, it will take down the entire w3wp.exe process

Open nickkin-msft opened this issue 10 years ago • 1 comments

Once OData has applied the URI $filter, etc. options to the returned IQueryable and calls (probably implicitly) IEnumerator ExecuteQuery(Expression expression), if the returned IEnumerator throws an exception, the entire IIS w3wp.exe process will go down hard.

Assemblies affected

System.Web.OData v4.0.30319

Reproduce steps

Return an IQueryable from your http get method that will throw from inside the IEnumerator returned from IQueryProvider.ExecuteQuery().

Expected result

The exception is caught and an intelligible error message is returned to the client.

Actual result

IIS w3wp.exe process terminates.

nickkin-msft avatar Jun 29 '16 19:06 nickkin-msft

Hmm, I can't seem to repro this anymore. Was it fixed recently? I saw this happening (repeatably) earlier in the year.

I guess you can close this. I don't want to dig through old nugets to find the one that repros. :)

nickkin-msft avatar Jun 29 '16 20:06 nickkin-msft