Optional string parameter with a null default value does not create an optional token #708

Imported from the CodePlex archive for reference purposes. Support for MvcCodeRouting has ended.

Reported on

e.g. public ActionResult Index([FromRoute]string foo = null) { … }

However, using an empty string works, or any string except null. The token should always be optional when the parameter is optional.

Commented on link

Fixed in changeset 3a7e7cd71ef71b48eebcb591a2b0f74ad1f757aa