actix / actix/actix-web

URL dispatch depends on route registration order rather than convention

Ouverte
#2,897 6 commentaires 3 réactions 0 personnes assignées Voir sur GitHub
A-web needs-investigation RFC / Proposal
Langage dominant
Rust
Étoiles
24.8k
Forks
1.9k
Merge moyen
23 h 10 min
PR mergées (30 j)
26

Description

## 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`

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.