Closed CMKMS-LINZ closed 3 years ago
database logs point to a permissions error
ERROR: permission denied for relation feature_ref_point
After deploying the updated rules permissions to views may have been affected.
I have ran the below to update permissions to reflect product on views.
If this does solve the issue I will create an issue to ensure this does not affect the eventual deployment to production
ALTER TABLE gazetteer.feature_line
OWNER TO gazetteer_dba;
GRANT SELECT ON TABLE gazetteer.feature_line TO gazetteer_user;
GRANT SELECT, UPDATE, INSERT, DELETE ON TABLE gazetteer.feature_line TO gazetteer_admin;
REVOKE ALL ON TABLE gazetteer.feature_line FROM gazetteer_dba;
ALTER TABLE gazetteer.feature_point
OWNER TO gazetteer_dba;
GRANT SELECT ON TABLE gazetteer.feature_point TO gazetteer_user;
GRANT SELECT, UPDATE, INSERT, DELETE ON TABLE gazetteer.feature_point TO gazetteer_admin;
REVOKE ALL ON TABLE gazetteer.feature_point FROM gazetteer_dba;
ALTER TABLE gazetteer.feature_point
OWNER TO gazetteer_dba;
GRANT SELECT ON TABLE gazetteer.feature_point TO gazetteer_user;
GRANT SELECT, UPDATE, INSERT, DELETE ON TABLE gazetteer.feature_point TO gazetteer_admin;
REVOKE ALL ON TABLE gazetteer.feature_point FROM gazetteer_dba;
ALTER TABLE gazetteer.feature_ref_point
OWNER TO gazetteer_dba;
GRANT SELECT ON TABLE gazetteer.feature_ref_point TO gazetteer_user;
GRANT SELECT, UPDATE, INSERT, DELETE ON TABLE gazetteer.feature_ref_point TO gazetteer_admin;
REVOKE ALL ON TABLE gazetteer.feature_ref_point FROM gazetteer_dba;
Bug Description
On turning the plugin on, eight error dialogue boxes are thrown up, one for each of the four search geometries and one for each of the active feature geometries, and none of the eight layers are created in the Layer tree:
Steps to Reproduce
Turn the plugin on.
PostGIS Error log:
Desktop
Screenshots