Forum Post: Re: CAN-DO Function

  • Thread starter Thread starter jmls
  • Start date Start date
Status
Not open for further replies.
J

jmls

Guest
I believe that it got "broken" because of multi-tenant. can-do was *always* only to be used for security checking. Despite what the docs and examples say ;) see https://community.progress.com/technicalusers/f/19/p/1630/6874.aspx#6874 Julian On 4 March 2014 11:21, Ham wrote: CAN-DO Function Thread created by Ham Once upon a time the CAN-DO function was "misused" to do string pattern checking. A sort of poor man's regex. But, it was documented so that made it ok. From 10.2 documetation: CAN-DO ( id-list [ , string ] ) [snip] In addition to performing security checks, you can use the CAN-DO function for looking up any value in a comma-separated list. For example, the following procedure searches your PROPATH for your DLC directory: MESSAGE "The DLC directory " + (IF CAN-DO(PROPATH, OS-GETENV("DLC")) THEN "is" ELSE "is NOT") + " in your PROPATH.". [snip] That same example code now breaks in V11! Where can-do function has been "declassed" as only security checking against userid: CAN-DO ( id-pattern-list [ , userid ] ) Did anyone notice? Got angry? Had to write it's own CAN-DO function? Please share! Ciao, Wim Stop receiving emails on this subject. Flag this post as spam/abuse. -- Julian Lyndon-Smith IT Director, dot.r http://www.dotr.com "The bitterness of poor quality remains long after the sweetness of low price is forgotten" Follow dot.r on http://twitter.com/DotRlimited

Continue reading...
 
Status
Not open for further replies.
Back
Top