Re: Question about Authorization Manager



"John Parrish" <ask@xxxxxx> wrote in message
news:%23u5Owr2NGHA.140@xxxxxxxxxxxxxxxxxxxxxxx
<snip> (Personally, I probably would have either thrown an
exception or forced it to always fail, but then I tend to be much less
forgiving in my design decisions than the nice folks at Microsoft...)


They do throw an exception if an empty task is passed for a check.
Reference the code I posted earlier from the AzManProvider.cs file.

Not quite the same thing as I was discussing here. Throwing an exception
when the task specified for the Authorize method is empty is different from
throwing an exception when the specified task contains an empty nested task
(as I thought yours did).


I apologize that I had jumped around within two different problems but
they are related. Hopefully you can see in the diagram I posted above that
the definition does indeed include two operations.

Yup, and this helps narrow down the problem considerably. ;) Does your
version of AzManAuthorizationProvider.cs contain a method named
GetTaskOperations? If so, you'll probably find that it only returns
operations that are direct children of the specified task. What you'll need
to do is change the method to operate recursively on the specified task so
that operations are returned from any number of levels of nested tasks. If
you need help with the implementation details, please post a copy of your
version of the method since it may differ from those in later EntLib
releases.


.



Relevant Pages

  • Re: while c = f.read(1)
    ... The problem with interpreting empty as false is that empty ... > If Python is too "wild" for your taste, ... In that case you wouldn't return an empty sequence if you wanted ... a false value in a sequence context but would throw an exception. ...
    (comp.lang.python)
  • Re: Checking list by using of exception
    ... (a list has a false boolean value when it is empty) ... If you insist on using an exception (and assuming list_of_files is ... But I would not reccomend it. ... Gabriel Genellina ...
    (comp.lang.python)
  • Re: Check if Function Exists
    ... if the error is thrown and caught in the catch block that would be ... You are ignoring the fact that for each executed statement entering of an ... a block would throw an exception without executing this block to begin with. ... Even if the `catch' block is empty, ...
    (comp.lang.javascript)
  • Re: msgQReceive cannot be called from ISR
    ... message queue is empty. ... If it is empty probably it returns ERROR in the return value. ... the exception-handling code keeps its status ... tables (of entry into, and exit from, exception regions) on a per-task ...
    (comp.os.vxworks)