Confusing behavior when allow_fetching is True
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- cryptography, security
Línea de trabajo
Comienza en context.py con las propiedades crls y ocsps y los métodos retrieve_crls y retrieve_ocsps; después, compara su comportamiento con los docstrings y comentarios de ValidationContext. Determina si allow_fetching debe ignorar o combinar los datos de revocación obtenidos previamente; se considera terminado cuando el comportamiento elegido está implementado o documentado claramente, y las pruebas relevantes se han actualizado si existen.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The docstring of context.ValidationContext states that if the value of the allow_fetching parameter is True "and certificates contain the location of a CRL or OCSP responder, an HTTP request will be made to obtain information for revocation checking". The word "allow" seems to indicate that this HTTP request is merely an additional way of obtaining information about revocation status. Moreover, also the following comment (especially the word "also") suggests that CRL or OCSP data requested via HTTP are not the only source of revocation status information if allow_fetching is True:
The docstring of the crls and ocsps parameters explain that pre-fetched/cached CRL and/or OCSP data can be passed to ValidationContext.
Putting all together, it seems that setting the allow_fetching parameter to True may result in fetching CRL or OCSP data in addition to checking pre-fetched/cached data.
Contrary to this expectation, if ValidationContext._allow_fetching is True, pre-fetched/cached CRL and OCSP data (passed by the crls and ocsps parameters) are completely ignored. (See the crls and ocsps properties and the retrieve_crls and retrieve_ocsps methods of ValidationContext.) If that is the intended behavior, it should be clarified in the documentation. Otherwise - and I would except this more intuitive - the two sources of revocation information should be merged when this is appropriate.
- Lenguaje dominante
- Python
- Estrellas
- 117
- Forks
- 37
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 wbond/certvalidator
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
wbond/certvalidator#46 ·
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 65/100
wbond/certvalidator#44 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
wbond/certvalidator#22 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
wbond/certvalidator#11 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
wbond/certvalidator#56 · 1 comentario ·
Todos los issues de wbond/certvalidator
Issues similares
-
bug: conversation context selects the oldest thread messages instead of recent repliesPosiblemente ocupada @BLVCK-MAMBA-6 la tomó hoy. Abiertobug enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
AOSSIE-Org/SkillBot#74 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
bad-antics/lateralus-lang#1438 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
area: control app
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
glossyio/traffic-monitor#415 ·
Los mantenedores suelen responder en 1 día
-
apply_matrix_rect takes 6-9% of extract_text timePosiblemente ocupada @g4lb la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
pdfminer/pdfminer.six#1333 ·
Los mantenedores suelen responder en 1 día