Opened 14 years ago

Closed 14 years ago

#132 closed defect (fixed)

New resource 'aclname' property

Reported by: adube Owned by:
Priority: critical Milestone:
Component: server Version:
Keywords: Cc:

Description

The PGSQLMapContextConfig uses the 'id' of the records fetched from the database for all 'name' properties of all GeoPrisma objects.

This has no side effects except for the Resource 'name' property since it's also used in the ACL. The 'isAuthorized' method of the ACL uses the resource name as a parameter when checking for permissions. Currently, to be able to migrate from an existing xml config to the PGSQLMapContextConfig, one would also need to modify all name values of the Resources in the ACL for the according 'id' values.

Since there are no 'title' property in the ACL and that it would be complicated to add it, a new 'aclname' property added to the resources. Each time a 'isAuthorized' method will be called, first we'll check if we need to use the 'name' or the 'aclname' property of the resource, defaults to 'name'.

All 'isAuthorized' methods will need to be changed accordingly.

Attachments (2)

patch-geoprisma-132-r862-A0.diff (113.5 KB ) - added by adube 14 years ago.
patch-geoprisma-132-r862-A1.diff (114.0 KB ) - added by adube 14 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 by adube, 14 years ago

Resolution: fixed
Status: newclosed

r863, fixed.

Note: See TracTickets for help on using tickets.