Bug 46691 - Uri class duplicate the AbsoluteUri string with characters "[" "]"
Summary: Uri class duplicate the AbsoluteUri string with characters "[" "]"
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 7.0 (C8)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2016-11-10 00:28 UTC by juliotec2
Modified: 2017-07-06 14:45 UTC (History)
2 users (show)

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:

Description juliotec2 2016-11-10 00:28:24 UTC
Uri class duplicate the AbsoluteUri string with characters "[" "]"


var uri = new Uri("/sdcard/file_[ettv].srt");

uri.AbsoluteUri; // show "file:///sdcard/file_[ettv].srtsdcard/file_[ettv].srt"

Duplicate the string, maybe is a error when the characters in the string is "[" "]" and when the Uri convert the string to absolute, duplicate the content string.
Comment 1 juliotec2 2016-11-10 00:29:47 UTC
Im using Xamarin.Android
Comment 2 John Miller [MSFT] 2017-07-06 14:45:44 UTC
Unfortunately, we’re unable to reproduce this report using the latest Xamarin.Android version. If this issue is still occurring for you, please reopen this issue and attach a reproduction to the bug by starting with a clean Xamarin.Android project adding just the code necessary to demonstrate the issue.

Microsoft Visual Studio Enterprise 2017 
Version 15.2 (26430.12) Release
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Enterprise

Xamarin (1be4f0c)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK (9dbc4c5)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK (4cffddf)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.