"url" is None during error template rendering
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 1k
- Fork
- 412
- Merge medio
- 6g 10h
- PR unite (30g)
- 3
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Riproduci la richiesta per più contest a /zzz sul CMS in esecuzione e ispeziona il percorso di rendering del template di errore, inclusi gli header della risposta e i cookie mostrati nel report. Il lavoro è completato quando la risposta 404 viene sottoposta a rendering completo per un contest inesistente e non imposta cookie per quel contest.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- backend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100