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

Aperta
#656 8 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
api, backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).

Lingua principale
Python
Stelle
8
Fork
4
Merge medio
1g 1h
PR unite (30g)
16

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openzim/cms

Tutte le issue di openzim/cms

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.