actix / actix/actix-web

URL dispatch depends on route registration order rather than convention

Đang mở
#2,897 6 bình luận 3 reaction 0 người được giao Xem trên GitHub
A-web needs-investigation RFC / Proposal
Ngôn ngữ chính
Rust
Star
24.8k
Fork
1.9k
Merge trung bình
23 giờ 10 phút
Pull request đã merge (30 ngày)
26

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.