Thread: [pgAdmin][RM5400] An unexpected occurred: INTERNAL SERVER ERRORmessage displayed if database server connected with non super user

Hi Hackers,

Attached is the patch to replace the usage of pg_user_mapping table with pg_user_mappings view. pg_user_mapping is not publicly accessible.
Changes are done for search objects and foreign data wrappers.
pgAdmin throws an exception when accessing User mappings with non privileged users.

Please review.

--
Thanks and Regards,
Aditya Toshniwal
pgAdmin Hacker | Sr. Software Engineer | EnterpriseDB India | Pune
"Don't Complain about Heat, Plant a TREE"
Attachment
Thanks, patch applied.

On Thu, Apr 16, 2020 at 11:33 AM Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:
Hi Hackers,

Attached is the patch to replace the usage of pg_user_mapping table with pg_user_mappings view. pg_user_mapping is not publicly accessible.
Changes are done for search objects and foreign data wrappers.
pgAdmin throws an exception when accessing User mappings with non privileged users.

Please review.

--
Thanks and Regards,
Aditya Toshniwal
pgAdmin Hacker | Sr. Software Engineer | EnterpriseDB India | Pune
"Don't Complain about Heat, Plant a TREE"


--
Thanks & Regards
Akshay Joshi
Sr. Software Architect
EnterpriseDB Software India Private Limited
Mobile: +91 976-788-8246