Consultor Eletrônico



Kbase P120815: BUFFER-COPY() method ignores field-level permissions
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/03/2007
Status: Unverified

FACT(s) (Environment):

Progress 9.x
OpenEdge 10.x

SYMPTOM(s):

Connecting to database as specific user

User has been denied permission on individual database fields

BUFFER-COPY() method reads and writes to fields as if no security is specified.

CAUSE:

This is a known issue being investigated by Development.

FIX:

Workaround:

Use code similar to the following to build an exception-list for the buffer-copy based on existing permissions:

DEFINE VARIABLE iCount AS INTEGER NO-UNDO.
DEFINE VARIABLE cExcept AS CHARACTER NO-UNDO.

DO iCount = 1 TO BUFFER customer:NUM-FIELDS:
IF NOT BUFFER customer:buffer-field(iCount):CAN-READ THEN
cExcept = cExcept + BUFFER customer:buffer-field(iCount):NAME + ",".
END.
cExcept = RIGHT-TRIM(cExcept,",").