Cookie string doesn't get parsed ok by Rook
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start by reproducing the provided app with httpuv::runServer and compare its cookie behavior with Rook::Rhttpd$new(). Focus on the interaction between Request$cookies() and req$HTTP_COOKIE; done means newly set cookies are recognized after refreshing under runServer, matching the working Rhttpd path.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
This seems to be a Rook/httpuv interaction. Using Rook::Rhttpd, things work OK. For me: new cookies are not recognized by Rook::Request$cookies() when I refresh, even though they are visible in the HTTP_COOKIE element of the environment.
R 3.1.1, Rook 1.1.1, httpuv 1.3.2.
Test case:
library(httpuv)
library(Rook)
ctr <- 1
app <- list(call=function(req) {
rr <- Request$new(req)
res <- Response$new()
res$set_cookie(paste0("foo", ctr), paste0("bar", ctr))
res$write("<html><body><p>Hit refresh to see the name of the cookie I just set... it should be: foo")
res$write(ctr)
res$write("</p>")
ctr <<- ctr + sample(1:1000, 1)
res$write("<p>Cookie names seen by rr$cookies():</p>")
res$write(paste(names(rr$cookies()), collapse="<br>"))
res$write("<p>cookie string from request env:</p>")
res$write(req$HTTP_COOKIE)
res$write("</body></html>")
return(res$finish())
})
# won't work:
runServer("127.0.0.1", 4444, app)
# works:
rh <- Rhttpd$new()
rh$launch(app$call, "cookie")
- Lenguaje dominante
- C
- Estrellas
- 252
- Forks
- 87
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de rstudio/httpuv
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 46/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Todos los issues de rstudio/httpuv
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
luainkernel/lunatik#2530 ·
Los mantenedores suelen responder en 1 día
-
polygonToCells CLI silently drops vertices when whitespace precedes a coordinate's closing bracketAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
issue: bug report
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 2 días