Re: unclear OAuth error message - Mailing list pgsql-hackers

From Zsolt Parragi
Subject Re: unclear OAuth error message
Date
Msg-id CAN4CZFOXdgVT-HQQvjQVushcQtiBovcrLz4ohLtkCKXBWgN_VA@mail.gmail.com
Whole thread Raw
In response to Re: unclear OAuth error message  (Jacob Champion <jacob.champion@enterprisedb.com>)
Responses Re: unclear OAuth error message
Re: unclear OAuth error message
List pgsql-hackers
This is definitely a nice improvement, I only have two minor questions:

- errmsg("internal error in OAuth validator module"));
+ errmsg("internal error in OAuth validator module"),
+ ret->error_detail ? errdetail_log("%s", ret->error_detail) : 0);
+

Isn't including the detail for both the warning and the fatal error
still overly verbose?

+ res->error_detail = error_detail; /* only relevant for failures */
+ if (internal_error)
+ return false;
+

Shouldn't the oauth code include a sanity check to ensure validators
return no error_detail on success instead of silently ignoring it?



pgsql-hackers by date:

Previous
From: "Matheus Alcantara"
Date:
Subject: Re: LLVMJIT: introduce force-inlined functions
Next
From: Jim Nasby
Date:
Subject: Re: pg_stat_io_histogram