Re: Broken attachement links in CF and mailing list

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: PostgreSQL WWW <pgsql-www(at)postgresql(dot)org>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Subject: Re: Broken attachement links in CF and mailing list
Date: 2019-04-09 12:50:58
Message-ID: CABUevEz4TzpOYYg4jtZijhssDHtjfRZkNYTN6tP_rGqWGioXQA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

On Sun, Apr 7, 2019 at 10:39 PM Andres Freund <andres(at)anarazel(dot)de> wrote:

> Hi,
>
> When clicking on the "latest attachement" link in
> https://commitfest.postgresql.org/20/1317/ I get to
>
> https://www.postgresql.org/message-id/attachment/57779/0001-Pipelining-batch-support-for-libpq-code-v16.patch
> which says "Attachment not found".
> when I navigate to the email I get
>
> https://www.postgresql.org/message-id/attachment/68625/0001-Pipelining-batch-support-for-libpq-code-v16.patch
> which actually works.
>
> That's not good? ;)
>

Ugh.

I think I know what happened here -- at some point the email was reparsed,
for some reason (we did a fairly large repoarse not too long ago to fix
broken header parsing, and it somehow parsed the attachment differently
which would delete the old one and insert a new one.

But we don't actually update the attachment ids in the *cf* database --
ever, we assume them to be immutable.

The quick fix is to just detach the thread and then reattach it, but that's
not very pretty. Will have to figure out what's a reasonable way to get
those updated if this happens :/

--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/>
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

In response to

Browse pgsql-www by date

  From Date Subject
Next Message Stacey Haysler 2019-04-09 17:02:41 Wiki editor request
Previous Message Meo Bogliolo 2019-04-08 14:02:52 SQuirrel supported