question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Route constraints which contain a period do not work without trailing '/'

See original GitHub issue

If you try to define a custom route products/{category:alpha}/{id:regex(\d+.\d+.\d+)} it will match requests like https://function-fun.azurewebsites.net/api/products/electronics/1.2.3/ but not https://function-fun.azurewebsites.net/api/products/electronics/1.2.3 (no trailing slash).

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:22 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ricklovecommented, Jul 19, 2017

True, it would be nice if the function routing could accept any valid URL value.

(For example when doing Function Binding with BlobNames, it would likely have a dot in the parameter.)

At least the proxy can function as a work around, which we didn’t have a few months ago.

0reactions
davidebbocommented, Sep 17, 2017

@kzu it’s partially deployed. If you have the cycles, you can verify it in North Central US. It should reach everywhere on Tuesday.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ASP.NET MVC Route not working with constraint
I have a a controller action as follows: [RequiresRole(RoleToCheckFor = "Administrator"), AcceptVerbs(HttpVerbs.Get)] public ActionResult Edit ...
Read more >
Routing - ASP.NET Core Documentation - Read the Docs
Route constraints execute when a Route has matched the syntax of the incoming URL and tokenized the URL path into route values. Route...
Read more >
Routing in ASP.NET Core
Routing is responsible for matching incoming HTTP requests and dispatching those requests to the app's executable endpoints.
Read more >
Route File Naming (v2)
This allows you to organize your code closer to the routes that use them instead of repeating the feature names across other folders....
Read more >
Route Constraints in ASP.NET Core Web API
The Route Constraints in ASP.NET Core Web API Application are a set of rules that applied to routing parameters to restrict the parameters....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found