"url" is None during error template rendering
Đang mở
Chưa có ai nhận issue này.
aws
bug
- Ngôn ngữ chính
- Python
- Star
- 1k
- Fork
- 412
- Merge trung bình
- 6 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 3
Mô tả
Steps to reproduce:
- Assume CWS is running in multi-contest mode and listening on
localhost:8888 - Run
telnet localhost 8888 - Request a non-existing contest page:
GET /zzz HTTP/1.1
Host: localhost
- Actual output:
HTTP/1.1 404 Not Found
Server: TornadoServer/4.5.3
Content-Type: text/html; charset=UTF-8
Date: Tue, 06 Nov 2018 18:25:50 GMT
Content-Length: 224
Set-Cookie: zzz_login=""; expires=Mon, 06 Nov 2017 18:25:50 GMT; Path=/
Set-Cookie: _xsrf=2|47f2b7e0|d92adbae5745d453d5769a29a88df401|1541528750; Path=/
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Error 404***OUTPUT STOPS HERE***
- After that the server is still listening and responds to further requests on the same connection.
Environment: Ubuntu 18.04 with Python dependencies installed from the system; CMS is built from master and runs with Python 3.
We can also see that the server tries to set cookies for the non-existent contest.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Tái hiện request cho nhiều contest tới /zzz trên CMS đang chạy và kiểm tra đường dẫn render template lỗi, bao gồm các response header và cookie được hiển thị trong báo cáo. Hoàn tất khi response 404 được render đầy đủ cho một contest không tồn tại và không set cookie cho contest đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- backend
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100