Skip to content

Commit 84a8a52

Browse files
authored
1) Fixed an issue where Default Privileges and Privileges not working correctly. #8369
2) Fixed <br/> tag visible issue.
1 parent 133a59c commit 84a8a52

File tree

84 files changed

+2450
-1456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+2450
-1456
lines changed

docs/en_US/release_notes_9_0.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Bug fixes
3333
*********
3434

3535
| `Issue #5204 <https://github.com/pgadmin-org/pgadmin4/issues/5204>`_ - Fixed an issue where pgadmin cannot install into path with non ASCII characters.
36+
| `Issue #6044 <https://github.com/pgadmin-org/pgadmin4/issues/6044>`_ - Fixed an issue where filter dialog save fails when the PostgreSQL server/database connection is lost.
3637
| `Issue #6968 <https://github.com/pgadmin-org/pgadmin4/issues/6968>`_ - Fixed an issue where option key was not registering in PSQL tool.
3738
| `Issue #8072 <https://github.com/pgadmin-org/pgadmin4/issues/8072>`_ - Fixed an issue where Schema Diff not produce difference script for Index definition with where condition.
3839
| `Issue #8142 <https://github.com/pgadmin-org/pgadmin4/issues/8142>`_ - Correct the documentation for the MFA configuration.
@@ -47,4 +48,5 @@ Bug fixes
4748
| `Issue #8299 <https://github.com/pgadmin-org/pgadmin4/issues/8299>`_ - Ensure master password pop up is not shown on setting MASTER_PASSWORD_REQUIRED to false.
4849
| `Issue #8309 <https://github.com/pgadmin-org/pgadmin4/issues/8309>`_ - Remove the option "With no data (concurrently)" from Refresh MATERIALIZED VIEW context menu.
4950
| `Issue #8320 <https://github.com/pgadmin-org/pgadmin4/issues/8320>`_ - Fix an issue where wrong information is shown after using the filter on the Dashboard> State tab.
50-
| `Issue #8365 <https://github.com/pgadmin-org/pgadmin4/issues/8365>`_ - Fixed an issue where PSQL tool is not opening if database name have HTML characters in the name.
51+
| `Issue #8365 <https://github.com/pgadmin-org/pgadmin4/issues/8365>`_ - Fixed an issue where PSQL tool is not opening if database name have HTML characters in the name.
52+
| `Issue #8369 <https://github.com/pgadmin-org/pgadmin4/issues/8369>`_ - Fixed an issue where Default Privileges and Privileges not working correctly.

web/pgadmin/browser/server_groups/servers/databases/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
from pgadmin.tools.schema_diff.node_registry import SchemaDiffRegistry
3636
from pgadmin.model import db, Server, Database
37+
from pgadmin.browser.utils import underscore_escape
3738
from pgadmin.utils.constants import TWO_PARAM_STRING
3839

3940

@@ -1073,7 +1074,7 @@ def delete(self, gid, sid, did=None):
10731074
status, errmsg = conn.connect()
10741075

10751076
return internal_server_error(
1076-
errormsg=msg)
1077+
errormsg=underscore_escape(msg))
10771078

10781079
return make_json_response(success=1)
10791080

web/pgadmin/browser/server_groups/servers/databases/schemas/templates/catalog/pg/9.1_plus/sql/acl.sql

Lines changed: 0 additions & 23 deletions
This file was deleted.

web/pgadmin/browser/server_groups/servers/databases/schemas/templates/catalog/pg/9.1_plus/sql/create.sql

Lines changed: 0 additions & 17 deletions
This file was deleted.

web/pgadmin/browser/server_groups/servers/databases/schemas/templates/catalog/pg/9.1_plus/sql/get_name.sql

Lines changed: 0 additions & 1 deletion
This file was deleted.

web/pgadmin/browser/server_groups/servers/databases/schemas/templates/catalog/pg/9.1_plus/sql/is_catalog.sql

Lines changed: 0 additions & 9 deletions
This file was deleted.

web/pgadmin/browser/server_groups/servers/databases/schemas/templates/catalog/pg/9.2_plus/sql/acl.sql

Lines changed: 0 additions & 23 deletions
This file was deleted.

web/pgadmin/browser/server_groups/servers/databases/schemas/templates/catalog/pg/9.2_plus/sql/get_name.sql

Lines changed: 0 additions & 1 deletion
This file was deleted.

web/pgadmin/browser/server_groups/servers/databases/schemas/templates/catalog/pg/9.2_plus/sql/is_catalog.sql

Lines changed: 0 additions & 9 deletions
This file was deleted.

web/pgadmin/browser/server_groups/servers/databases/schemas/templates/catalog/pg/default/allowed_privs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"deftblacl": {
1515
"type": "TABLE",
16-
"acl": ["r", "a", "w", "d", "D", "x", "t"]
16+
"acl": ["a", "r", "w", "d", "D", "x", "t"]
1717
},
1818
"defseqacl": {
1919
"type": "SEQUENCE",

0 commit comments

Comments
 (0)