[Mono-dev] Is #693996 fixed? -- UriTemplate doesn't support named wildcards

Andres G. Aragoneses knocte at gmail.com
Mon Aug 27 15:35:24 UTC 2012


Then it's a new bug that needs to be fixed.

Test with mono master branch, and if that still fails, there is no fix 
for any Mono version yet.

On 27/08/12 16:16, Yuriy Solodkyy wrote:
> Andres,
>
> at least this old bug description at novell.com is outdated.  The
> exception message reported there is
>
> Unhandled Exception: System.FormatException: Wildcard in UriTemplate is valid
> only if it is placed at the last part of the path: '{*path}'
>
> however, nowadays it accepts this, but the matching behavior is incorrect.
>
> Thank you,
> Yuriy
>
>
> On Mon, Aug 27, 2012 at 5:23 PM, Andres G. Aragoneses <knocte at gmail.com> wrote:
>>
>> Maybe it was a typo in the release notes? The bug is still open.
>>
>> You can look at the git log of the 2.10.3 tag to try to find the change:
>>
>> https://github.com/mono/mono/tree/2.10.3
>>
>> On 27/08/12 14:27, Yuriy Solodkyy wrote:
>>>
>>> Hi,
>>>
>>> release notes for 2.10.3 [
>>> http://www.mono-project.com/Release_Notes_Mono_2.10.3 ] says:
>>>
>>>>> Fixed #693996 UriTemplate doesn't support named wildcards
>>>
>>>
>>> However, the behavior of 2.10.8 is different than it is in .net.
>>>
>>> See https://gist.github.com/3488351
>>>
>>> These tests are green in .NET, but under the mono I get:
>>>
>>> Test(s) failed.   Expected string length 3 but was 7. Strings differ at
>>> index 0.
>>>     Expected: "123"
>>>     But was:  "a/b/123"
>>>     -----------^
>>>
>>>     at NUnit.Framework.Assert.That (System.Object actual,
>>> IResolveConstraint expression, System.String message, System.Object[]
>>> args) [0x00000] in <filename unknown>:0
>>>     at NUnit.Framework.Assert.AreEqual (System.Object expected,
>>> System.Object actual) [0x00000] in <filename unknown>:0
>>>
>>> Test(s) failed.   Expected string length 7 but was 11. Strings differ
>>> at index 0.
>>>     Expected: "123/456"
>>>     But was:  "a/b/123/456"
>>>     -----------^
>>>
>>>     at NUnit.Framework.Assert.That (System.Object actual,
>>> IResolveConstraint expression, System.String message, System.Object[]
>>> args) [0x00000] in <filename unknown>:0
>>>     at NUnit.Framework.Assert.AreEqual (System.Object expected,
>>> System.Object actual) [0x00000] in <filename unknown>:0
>>>
>>> Thank you
>>>
>>
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>




More information about the Mono-devel-list mailing list