Consultor Eletrônico



Kbase P158822: CAN-DO function behavior differs due to programming error.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/1/2010
Status: Unverified

SYMPTOM(s):

CAN-DO function behavior differs when executed from the Progress Editor from when executed from an application, and when the ROOT user id is the user that is logging-in!

DEF VAR wp-secur-can-see AS CHAR INITIAL "yshanshi,richard,ag1".
DEF VAR wp-login-user AS CHAR INITIAL "yshanshi".
IF CAN-DO (trim(wp-secur-can-see), TRIM(wp-login-user)) THEN
MESSAGE "User Accepted"
VIEW-AS ALERT-BOX.
ELSE
MESSAGE "Not Authorized"
VIEW-AS ALERT-BOX.

FACT(s) (Environment):

All Supported Operating Systems
Progress 9.x
OpenEdge 10.x

CAUSE:


This is a programmer error. There is nothing wrong with the CAN-DO function behavior. Investigation of the application code established that the problem was due to a programmer error. Namely, one CAN-DO function instance had its parameters reversed.

FIX:

Ensure that the order of the CAN-DO parameters is correct.