ZIM file digests (checksums) should be introduced in the OPDS feed

Abierto
#656 8 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
api, backend

Línea de trabajo

Start by tracing how the CMS builds the OPDS feed at /catalog/v2/entries and where entry data is stored or retrieved. The issue says digest storage is missing and suggests collecting digests from Zimfarm or the warehouse; identify which source the project uses before changing the feed. Done means known lowercase MD5, SHA-1, and SHA-256 digests appear in each entry, with absent digests omitted.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

pending clarification

Related to https://github.com/kiwix/libkiwix/issues/1358 (implemented in https://github.com/kiwix/libkiwix/pull/1413)

libkiwix can now read ZIM file digests from an OPDS entry and pass them on to readers and kiwix-manage. But the CMS feed doesn't include them yet. For example, there is no digest in https://library.kiwix.org/catalog/v2/entries.

The expected format, inside each <entry>, is:

<kiwix:zimdigests>
  <kiwix:zimdigest type="md5">...</kiwix:zimdigest>
  <kiwix:zimdigest type="sha1">...</kiwix:zimdigest>
  <kiwix:zimdigest type="sha256">...</kiwix:zimdigest>
</kiwix:zimdigests>
  • Supported type values are md5, sha1 and sha256. They are case-sensitive and always lowercase.
  • Each digest is optional. Emit only the ones that are known, and leave out the <kiwix:zimdigests> element if there are none.

As far as I can see, the CMS doesn't store ZIM file digests yet, so this probably means collecting them first (e.g. from Zimfarm or the warehouse).

Lenguaje dominante
Python
Estrellas
8
Forks
4
Merge medio
1 d 1 h
PR fusionados (30 d)
16

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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de openzim/cms

Todos los issues de openzim/cms

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.