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

Đang mở
#656 8 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
api, backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Python
Star
8
Fork
4
Merge trung bình
1 ngày 1 giờ
Pull request đã merge (30 ngày)
16

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của openzim/cms

Tất cả issue của openzim/cms

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.