<br><font size=2 face="sans-serif">Stefan</font>
<br>
<br><font size=2 face="sans-serif">Consistency would be nice, but I think
insensitivity would be better.</font>
<br>
<br><font size=2 face="sans-serif">Can you give some specific examples,
I trawled through the code but couldn't be sure i was finding the code
you have issue with.</font>
<br>
<br><font size=2 face="sans-serif">In the REST code in ApplicationPlugins/Rest
all inbound URL's are canonicalized to eliminate any issues WRT trailing
"/".</font>
<br>
<br><font size=2 face="sans-serif">BTW as far as I can tell, The Uri class'
ToString echoes whatever you provide. If you don't supply a trailing slash
when the URI is</font>
<br><font size=2 face="sans-serif">created, then ToString does not generate
one.</font>
<br>
<br><font size=2 face="sans-serif">The ABNF in RFC 3986 (URI Generic Syntax)
always shows "/" as a prefixing notion - conversely, many of
their textual examples indicate that a trailing "/" is perfectly
valid. I think this is an area where human interaction will always produce
either, and REST is certanly not limited to machine-to-machine communications,
so I do think we need to code this is in a way that says it doesn't matter.</font>
<br><font size=2 face="sans-serif"><br>
Best regards<br>
Alan<br>
-------------------<br>
T.J. Watson Research Center, Hawthorne, NY<br>
1-914-784-7286<br>
alan_webb@us.ibm.com</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Stefan Andersson <stefan@tribalmedia.se></b>
</font>
<br><font size=1 face="sans-serif">Sent by: opensim-dev-bounces@lists.berlios.de</font>
<p><font size=1 face="sans-serif">09/09/2008 04:20 AM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
opensim-dev@lists.berlios.de</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif"><opensim-dev@lists.berlios.de></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">[Opensim-dev] Uris: Errors/Inconsistencies/TBD</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 face="Tahoma">Just a quick one,<br>
<br>
I don't have time to fix this up, and I guess we should discuss it first;<br>
<br>
the issue is that parts of the code presumes url segments _ends_ with '/'
and others they _begin_ with '/'<br>
<br>
this leads to heavy confusion and easily done mistakes<br>
<br>
now, the Uri class (which, together with UriBuilder, is poorly underused)
ToString _appends_ an '/'<br>
<br>
which I consider the proper behaviour: all segments appends an '/' to show
they represent a hierarchy node.<br>
<br>
I've already made the inventoryUrl wrapping an Uri to safeguard against
missing trailing '/' in the ini, which is/was one of our most common mistakes,
it seems. (and a bloody easy one at that)<br>
<br>
Now, for example, the REST code, presumes the opposite<br>
<br>
which means we can't combine the output of a Uri with the output from the
RestClient.<br>
<br>
So I can't wrap the asset url the same way.<br>
<br>
Which sucks.<br>
<br>
Either way, I suggest we use postfix notation in accordance with Uri class
standard, but most of all I would want us to harmonize on one or the other.<br>
<br>
Discussions?<br>
<br>
/Stefan<br>
</font><tt><font size=2>_______________________________________________<br>
Opensim-dev mailing list<br>
Opensim-dev@lists.berlios.de<br>
https://lists.berlios.de/mailman/listinfo/opensim-dev<br>
</font></tt>
<br>