[PATCH] pglister: auth_receive: Indicate when PGAUTH_KEY is invalid instead of crashing

Поиск
Список
Период
Сортировка
От Célestin Matte
Тема [PATCH] pglister: auth_receive: Indicate when PGAUTH_KEY is invalid instead of crashing
Дата
Msg-id 4b46c25f-29df-e9c9-8217-f70729a1f852@cmatte.me
обсуждение исходный текст
Ответы Re: [PATCH] pglister: auth_receive: Indicate when PGAUTH_KEY is invalid instead of crashing
Список pgsql-www
When Django is improperly configured with a PGAUTH_KEY that does not match the one configured in pgweb, the decryptor
returnsa string that can't be utf-8-decoded. Catching this error makes it possible to return a proper error message
insteadof a 500 error.
 
Of course, the unicode error can be due to other issues (e.g. tempered GET parameters), but wrong PGAUTH_KEY is the
morelikely issue to happen when configuring pglister.
 

Patch attached.
-- 
Célestin Matte
Вложения

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

Предыдущее
От: Andreas 'ads' Scherbaum
Дата:
Сообщение: Managing organizations
Следующее
От: Jared Brogan
Дата:
Сообщение: Wiki editor request