]> Sergey Matveev's repositories - public-inbox.git/commit
fetch: support v2 w/o manifest on old WWW
authorEric Wong <e@80x24.org>
Fri, 24 Sep 2021 10:56:45 +0000 (10:56 +0000)
committerEric Wong <e@80x24.org>
Fri, 24 Sep 2021 23:22:08 +0000 (23:22 +0000)
commit77b3dac08f58503e374e98c29b9e0ee7c866c0e5
tree23b91c308d6a6293007ee3f807f8696700750fd4
parent718d054be8b2cc23635b42e8ce880424492d3a84
fetch: support v2 w/o manifest on old WWW

There may still be pre-manifest.js.gz versions of
PublicInbox::WWW running and serving v2 inboxes.

While -clone and "add-external --mirror" were working, -fetch
was failing due to 301 redirect to $INBOX_URL/manifest.js.gz/
and not the expected 404.  Update the code to deal with a JSON
decode error (from the 301) and ensure v2 epochs detection is
correct (and not using a shadowed variable).
lib/PublicInbox/Fetch.pm
t/v2mirror.t