GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Database Properties panel always shows empty "Default TABLE/SEQUENCE/FUNCTION/TYPE privileges" · Issue #10401 · pgadmin-org/pgadmin4 Closed DescriptionDescribe the bug On the read-only Properties panel of a Database node, the Security section always shows empty values for Default TABLE privileges, Default SEQUENCE privileges, Default FUNCTION privileges and Default TYPE privileges, even when the database has default privileges configured. Opening the same database in the Edit dialog → Default Privileges tab shows all the entries correctly (Grantee / Privileges / Grantor), so the data is fetched fine — only the read-only panel renders nothing. Root cause (field id mismatch) The
{### Default ACL for Tables ###}
'' AS tblacl,
{### Default ACL for Sequnces ###}
'' AS seqacl,
{### Default ACL for Functions ###}
'' AS funcacl,
pg_catalog.array_to_string(datacl::text[], ', ') AS acl
CASE (a.deftype) WHEN 'r' THEN 'deftblacl' WHEN 'S' THEN 'defseqacl' WHEN 'f' THEN 'deffuncacl' WHEN 'T' THEN 'deftypeacl' END AS deftype
{ id: 'tblacl', label: gettext('Default TABLE privileges'), type: 'text', group: gettext('Security'), mode: ['properties'] }, { id: 'seqacl', label: gettext('Default SEQUENCE privileges'), type: 'text', group: gettext('Security'), mode: ['properties'] }, { id: 'funcacl', label: gettext('Default FUNCTION privileges'), type: 'text', group: gettext('Security'), mode: ['properties'] }, { id: 'typeacl', label: gettext('Default TYPE privileges'), type: 'text', group: gettext('Security'), mode: ['properties'], min_version: 90200 }, ... { type: 'nested-tab', group: gettext('Default Privileges'), mode: ['edit'], schema: new DefaultPrivSchema(this.getPrivilegeRoleSchema, this.nodeInfo) }, // reads def*acl So the Verified identical on To Reproduce
Expected behavior The read-only Properties panel should show the same default privileges as the edit dialog. Error message None — no error is raised, the fields are just empty. Suggested fix Either bind the read-only fields to the ids that actually carry the data ( Desktop:
Additional context Server: Azure Database for PostgreSQL — Flexible Server. The default privileges in question were created database-wide (no The Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |