<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Mike,<BR>
&nbsp;<BR>
Did you check that a call to CL_SWF_RUN_WIM_LOCAL-&gt;IF_SWF_RUN_WIM_UTL_INTERNAL~CHECK_AUTHORITY is NOT being executed?<BR>
&nbsp;<BR>
I thought it would always be invoked, regardless of whether a WAPI is invoking the Workflow stuff.<BR>
&nbsp;<BR>
Normally the ABAP OO Exception CX_SWF_RUN_WIM_AUTH_FAILED will be thrown I think.<BR>
&nbsp;<BR>
Mike GT<BR>&nbsp;<BR>
<DIV>
&gt; Date: Tue, 26 Jul 2011 11:46:14 +0100<BR>&gt; Subject: Have authority checks disappeared from WAPIs?<BR>&gt; From: wug@workflowconnections.com<BR>&gt; To: sap-wug@mit.edu<BR>&gt; <BR>&gt; G'Day,<BR>&gt; <BR>&gt; I'm not sure if I've just noticed this or if it's been this way for a<BR>&gt; while, or if my memory is deceiving me:<BR>&gt; <BR>&gt; One upon a time the WAPIs used to be a formal wrapper for the equivalent<BR>&gt; SWF*/SWW* function modules. I think the WAPIs used to do indirect auth<BR>&gt; checks via these FM calls, however since the FMs can be overriden (e.g. FM<BR>&gt; SWW_WI_ADMIN_CANCEL has a parameter AUTHORIZATION_CHECKED) I am not too<BR>&gt; sure and have no 4.6 system handy to check.<BR>&gt; <BR>&gt; Nowadays (ECC6) however, the WAPIs use OO methods internally and as far as<BR>&gt; I have been able to establish there are no auth checks carried out - if a<BR>&gt; user can execute FM SAP_WAPI_ADM_WORKFLOW_CANCEL by any means then they<BR>&gt; can cancel a work item. Unfortunately I haven't been able to conclusively<BR>&gt; test this with a user that has SE37 but no workitem admin access, but<BR>&gt; debugging shows no auth check.<BR>&gt; <BR>&gt; Could someone verify I've got this right? Has this changed? Am I just<BR>&gt; confused?<BR>&gt; <BR>&gt; I'm going to implement my own auth checks anyway, but I am very curious as<BR>&gt; it *may* mean that custom code written pre-ECC could have turned into a<BR>&gt; security hole post-upgrade.<BR>&gt; <BR>&gt; Regards,<BR>&gt; Mike<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; SAP-WUG mailing list<BR>&gt; SAP-WUG@mit.edu<BR>&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<BR></DIV>                                               </div></body>
</html>