-
Notifications
You must be signed in to change notification settings - Fork 191
OwinFeatureCollection: regression #207
Comments
After further investigation, the failures are happening as the setter is throwing a |
Stack trace? |
The method in question is the indexer's setter. Will add a stack trace later. |
@borgdylan I'm interested in what changed that started to cause these problems. |
This I bet. The context factory assumed the incoming feature collection was read-only, so it wrapped it in mutable collection. That wrapper was dropped in the last change, so it sounds like you're getting a notsupportedexception trying to call Set on a read-only feature collection. Sent from my Windows Phone From: David Fowlermailto:[email protected] @borgdylan I'm interested in what changed that started to cause these problems. Reply to this email directly or view it on GitHub: |
Ah, good catch. |
@Praburaj Can you look at this? It's a regression caused by the code changes we made as a result of the API review. Add a test for it as well. |
@davidfowl I agree with @Tratcher that this started to occur with IFeatureCollection being needed instead of an env object in the request handling delegate. @Tratcher Wrapping inside a mutable feature collection solves the exception issue as I have tried it. But the response body still does not get sent back to the client side. |
As an aside, Kestrel uses the mutable FeatureCollection directly. With that technique requests work OK. However I do get SignalR errors with respect to invalid delegate instructions. |
@borgdylan @Tratcher @davidfowl - I'll have a look at this today and add a test as well. |
@borgdylan what's the best way to reproduce this issue? |
I tried running a couple of |
i have an updates server factory for nowin. Ill put it on github and you can try with it. It is what I am using. |
@borgdylan these changes already look to be in https://github.com/aspnet/Entropy/tree/dev/samples/Owin.Nowin.HelloWorld sample. This app seems to run fine. Does it require more than this to reproduce this issue? |
My code is similar but has a logger for exceptions. Without that logger, the code will fail but the exception will be silently hidden. |
@borgdylan Thanks. Got it. Sent out a PR. aspnet/Hosting#174 |
merged the fix aspnet/Hosting@fde3b0d |
After some recent changes in the hosting pipeline, the OwinFeatureCollection is no longer handling requests (requests do not even get read by the request pipeline). If I populate a FeatureCollection using an OwinFeatureCollection, the requests gets handled by the request pipeline but the response never surfaces out to the client.
The text was updated successfully, but these errors were encountered: