actix / actix/actix-web

URL dispatch depends on route registration order rather than convention

Aperta
#2,897 6 commenti 3 reazioni 0 assegnatari Vedi su GitHub
A-web needs-investigation RFC / Proposal
Lingua principale
Rust
Stelle
24.8k
Fork
1.9k
Merge medio
23h 10m
PR unite (30g)
26

Descrizione

## Expected Behavior

URL dispatch works in the same way regardless of configuration order.

## Current Behavior

If a handler with Path extractor is registered before the nested endpoint it will throw an error like this:
`cannot parse "ROUTE_URL" to a i64 `

## Your Environment

- Rust Version (I.e, output of `rustc -V`):
`rustc 1.62.1 (e092d0b6b 2022-07-16)`
- Actix Web Version: `4.2.1`

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.