Re: [PATCH] Fix "push changes" crash in CommunityAuthSiteAdminForm

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: [PATCH] Fix "push changes" crash in CommunityAuthSiteAdminForm
Дата
Msg-id CABUevEzihahUnmHVPDzYaO3=M+dCqPVHA4m04=iq_Na05O7oGQ@mail.gmail.com
обсуждение исходный текст
Ответ на [PATCH] Fix "push changes" crash in CommunityAuthSiteAdminForm  (Célestin Matte <celestin.matte@cmatte.me>)
Список pgsql-www
On Thu, Sep 9, 2021 at 2:53 PM Célestin Matte <celestin.matte@cmatte.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
valuefor 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/



В списке pgsql-www по дате отправления:

Предыдущее
От: Célestin Matte
Дата:
Сообщение: Re: [PATCH] Fix "push changes" crash in CommunityAuthSiteAdminForm
Следующее
От: Devrim Gündüz
Дата:
Сообщение: Re: Missing SLES package list page