ericzile / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

FeedQuery truncating trailing slash from URI #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
//Sample 
FeedQuery query = new FeedQuery(); 
String feedUrl = new String("http://www.foobar.com/blah/goo/") 
Uri queryUri = new Uri(feedurl); 

Console.WriteLine("Query Absolute Uri: " + 
queryUri.AbsoluteUri.ToString()); 

query.Uri = queryUri; 
Console.WriteLine("URL set in FeedQuery object is: " + 
query.Uri.AbsoluteUri.ToString()); 

// 

Output: 
Query Absolute Uri: http://www.foobar.com/blah/goo/ 
URL set in FeedQuery object is: http://www.foobar.com/blah/goo 

What is the expected output? What do you see instead?
I expect the following 
Query Absolute Uri: http://www.foobar.com/blah/goo/ 
URL set in FeedQuery object is: http://www.foobar.com/blah/goo/ 

What version of the product are you using? On what operating system?
1.0.9.9 on Vista

Please provide any additional information below.

Original issue reported on code.google.com by johnmaci...@gmail.com on 4 Oct 2007 at 6:38

GoogleCodeExporter commented 9 years ago
I replied to the group. This is working as intended, the way i parse the URI 
when you
pass it in, i loose the last slash. Is this causing an issue for you, if so 
why? 

While the string is different, the URI.Equals method would still return true, 
and
that is the only thing i was considering... 

Let me know if that is worth spending time on. To be honest the ability to say
query.uri = new Uri() and then get the parameters out of the query object is to 
blame
here, and i am not sure this is used in the first place... 

Original comment by fman...@gmail.com on 5 Oct 2007 at 11:58

GoogleCodeExporter commented 9 years ago
Thanks for the comments Frank.  I think I can use the work around you provided. 
So 
if other people aren't complaining about this ...don't sweat it.

Original comment by johnmaci...@gmail.com on 10 Oct 2007 at 4:19

GoogleCodeExporter commented 9 years ago
Closed as byDesign

Original comment by fman...@gmail.com on 15 Oct 2007 at 2:49