Bug 41656 - Unlike other handlers NSUrlSessionHandler.AllowAutoRedirect is false by default
Summary: Unlike other handlers NSUrlSessionHandler.AllowAutoRedirect is false by default
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.8 (tvOS / C7)
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: C7SR1
Assignee: Sebastien Pouliot
URL:
Depends on:
Blocks:
 
Reported: 2016-06-09 13:34 UTC by Sebastien Pouliot
Modified: 2016-07-05 19:01 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Sebastien Pouliot 2016-06-09 13:34:29 UTC
From #41513

> Unlike the other handlers, `NSUrlSessionHandler.AllowAutoRedirect` defaults to `false`. 
> I'll fix this so it's easier to swap handlers without code changes.
Comment 1 Sebastien Pouliot 2016-06-09 15:10:09 UTC
Fixed (bump) in xamarin-macios/master 8fe3df96b16082afaf0e9b1bf3372975e614bf0d

Pending backport to cycle7 (for SR1) and unit tests.
Comment 3 Sebastien Pouliot 2016-06-22 13:15:03 UTC
maccore/cycle7 bumped mono-extensions and ModernHttpClient in 29d6e9a4320af9a92704e61d52826b182e3781ff
Comment 4 Saurabh 2016-07-05 09:25:59 UTC
I have checked this Issue with XI build (XI 9.8.2.5) mentioned in card https://trello.com/c/xArkntx4/1-xi-httpclient-inconsistency-issues and observed that AllowAutoRedirect is set to true and CookieContainer also set to conditional values as shown in the screencast: http://www.screencast.com/t/8bZwA0Tsx

https://gist.github.com/saurabh360/e6688728459eec456e452fe922cfe176
Comment 5 Mohit Kheterpal 2016-07-05 19:01:57 UTC
I have checked this issue and observed that this issue has been fixed as shown in screencast : http://www.screencast.com/t/dBuyOvVMbd with C7 trunk lane xamarin.ios-9.8.2.11_9ae33ac96b6b40c4f9f2d1638cd6640695224130

Hence closing this issue by marking it as Verified.

Thanks