From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Célestin Matte <celestin(dot)matte(at)cmatte(dot)me> |
Cc: | PostgreSQL WWW <pgsql-www(at)postgresql(dot)org> |
Subject: | Re: [PATCH] Fix "push changes" crash in CommunityAuthSiteAdminForm |
Date: | 2021-09-09 14:52:41 |
Message-ID: | CABUevEzihahUnmHVPDzYaO3=M+dCqPVHA4m04=iq_Na05O7oGQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-www |
On Thu, Sep 9, 2021 at 2:53 PM Célestin Matte <celestin(dot)matte(at)cmatte(dot)me> wrote:
>
> > Hi!
>
> Hi,
>
> > Thanks! the fix looks good in general -- but how did you actually hit
> > the bug? I've been trying to reproduce it to verify the test, but I
> > can't figure out how... In all my tests, d['apiurl'] ends up being ''
> > (and actually existing), which makes it not a problem.
>
> Filling the form in /admin/account/communityauthsite/add/ with the "push changes" option activated and an incorrect value for apiurl (something that is not actually a URL) gives me an error (see Traceback below).
> With the patch, I correctly get an error message on the page instead ("API url must be specified to enable push changes!").
> I also thought it didn't work with a correct value, but I can't seem to reproduce that now.
Ah, you're right. I only tested with it being empty, not with it being
an invalid value. That makes perfect sense.
Good spot! Patch applied, thanks!
--
Magnus Hagander
Me: https://www.hagander.net/
Work: https://www.redpill-linpro.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Devrim Gündüz | 2021-09-09 15:03:41 | Re: Missing SLES package list page |
Previous Message | Célestin Matte | 2021-09-09 12:53:49 | Re: [PATCH] Fix "push changes" crash in CommunityAuthSiteAdminForm |