Skip to Content.
Sympa Menu

comanage-dev - Re: [comanage-dev] error after authentication

Subject: COmanage Developers List

List archive

Re: [comanage-dev] error after authentication


Chronological Thread 
  • From: Scott Koranda <>
  • To: Benn Oshrin <>
  • Cc:
  • Subject: Re: [comanage-dev] error after authentication
  • Date: Fri, 1 Mar 2013 11:36:33 -0600
  • Authentication-results: sfpop-ironport04.merit.edu; dkim=pass (signature verified)

> On Fri, Mar 1, 2013 at 10:49 AM, Benn Oshrin
> <>
> wrote:
> > Just trying to figure out what the scenario is here...
> >
> >
> > is not known to the platform, but you're trying to
> > login anyway,
>
> By accident, yes.
>
> > so you're expecting a "user known" message or similar instead
> > of throwing an error?
>
> I am expecting the previous behavior, which was to present the normal
> view but not allow me
> to do anything.
>
> > ie: It's not actually preventing you from doing
> > anything? Then why did you need to roll back to 0.7?
>
> Because I get the same error when using the REST interface with
> my REST user (the one in the cm_api_users table).

Here is the exact error when I attempt to hit any REST api
with a known, good REST api user:


r
r: An Internal Error Has Occurred.

Stack Trace

#0
/home/skoranda/COmanage/trunk/app/Controller/Component/RoleComponent.php(267):
RoleComponent->identifierIsCmpAdmin('rest01')
#1 /home/skoranda/COmanage/trunk/app/Controller/AddressesController.php(81):
RoleComponent->calculateCMRoles()
#2
/home/skoranda/COmanage/trunk/lib/Cake/Controller/Component/Auth/ControllerAuthorize.php(64):
AddressesController->isAuthorized(Array)
#3
/home/skoranda/COmanage/trunk/lib/Cake/Controller/Component/AuthComponent.php(379):
ControllerAuthorize->authorize(Array, Object(CakeRequest))
#4
/home/skoranda/COmanage/trunk/lib/Cake/Controller/Component/AuthComponent.php(330):
AuthComponent->isAuthorized(Array)
#5 [internal function]: AuthComponent->startup(Object(AddressesController))
#6 /home/skoranda/COmanage/trunk/lib/Cake/Utility/ObjectCollection.php(104):
call_user_func_array(Array, Array)
#7 /home/skoranda/COmanage/trunk/lib/Cake/Controller/Controller.php(606):
ObjectCollection->trigger('startup', Array)
#8 /home/skoranda/COmanage/trunk/lib/Cake/Routing/Dispatcher.php(101):
Controller->startupProcess()
#9 /home/skoranda/COmanage/trunk/lib/Cake/Routing/Dispatcher.php(86):
Dispatcher->_invoke(Object(AddressesController), Object(CakeRequest),
Object(CakeResponse))
#10 /home/skoranda/COmanage/trunk/app/webroot/index.php(96):
Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#11 {main}

I did revert to 0.7 and there the REST user works fine and I
have (finally) managed to read details from the LIGO LDAP for
one user and create a full org identity for that user in
COmanage using the REST API.

Now that I have scripted it for one user, I can evolve the
script to do it for the whole bunch...

More on this during the call.

Scott


> When I roll back to 0.7 that user works with the REST api.
>
> Scott
>
> >
> > -Benn-
> >
> > On 3/1/13 11:13 AM, Scott Koranda wrote:
> >>
> >> On Fri, Mar 1, 2013 at 9:41 AM, Benn Oshrin
> >> <>
> >> wrote:
> >>>
> >>> Are you trying to do something that requires an unknown identifier
> >>
> >>
> >> No, simply trying to "login" and then access main view at /registry/
> >>
> >>> , or is
> >>> this just a variation of CO-486?
> >>
> >>
> >> No, REMOTE_USER is populated, just with a value unknown to the platform.
> >> Before
> >> that would just result with no useful menu choices but now it throws that
> >> stack.
> >>
> >> I also found this problem affected REST API calls so I have gone back to
> >> 0.7.
> >>
> >> Scott
> >>
> >>>
> >>> -Benn-
> >>>
> >>> On 3/1/13 9:32 AM, Scott Koranda wrote:
> >>>>
> >>>>
> >>>> Hi,
> >>>>
> >>>> This is the error I see if I authenticate using an identifier
> >>>> not currently known to the platform.
> >>>>
> >>>> Fatal Error (256): [InvalidArgumentException] Unknown Identifier
> >>>> #0
> >>>>
> >>>> /home/skoranda/COmanage/trunk/app/Controller/Component/RoleComponent.php(267):
> >>>> RoleComponent->identifierIsCmpAdmin('scott.koranda@l...')
> >>>> #1 /home/skoranda/COmanage/trunk/app/Controller/AppController.php(988):
> >>>> RoleComponent->calculateCMRoles()
> >>>> #2 /home/skoranda/COmanage/trunk/app/Controller/AppController.php(251):
> >>>> AppController->menuAuth()
> >>>> #3
> >>>>
> >>>> /home/skoranda/COmanage/trunk/lib/Cake/Controller/CakeErrorController.php(64):
> >>>> AppController->beforeRender()
> >>>> #4
> >>>> /home/skoranda/COmanage/trunk/lib/Cake/Controller/Controller.php(865):
> >>>> CakeErrorController->beforeRender()
> >>>> #5
> >>>> /home/skoranda/COmanage/trunk/lib/Cake/Error/ExceptionRenderer.php(268):
> >>>> Controller->render('error500')
> >>>> #6
> >>>> /home/skoranda/COmanage/trunk/lib/Cake/Error/ExceptionRenderer.php(235):
> >>>> ExceptionRenderer->_outputMessage('error500')
> >>>> #7 [internal function]:
> >>>> ExceptionRenderer->error500(Object(InvalidArgumentException))
> >>>> #8
> >>>> /home/skoranda/COmanage/trunk/lib/Cake/Error/ExceptionRenderer.php(165):
> >>>> call_user_func_array(Array, Array)
> >>>> #9 /home/skoranda/COmanage/trunk/lib/Cake/Error/ErrorHandler.php(127):
> >>>> ExceptionRenderer->render()
> >>>> #10 [internal function]:
> >>>> ErrorHandler::handleException(Object(InvalidArgumentException))
> >>>> #11 {main} [CORE/Cake/Error/ErrorHandler.php, line 136] Code Context
> >>>>
> >>>> ErrorHandler::handleException() -
> >>>> CORE/Cake/Error/ErrorHandler.php, line 136
> >>>> [main] - [internal], line ??
> >>>>
> >>>> This is the revision I am sitting at:
> >>>>
> >>>> $ svn info
> >>>> Path: .
> >>>> URL: https://svn.internet2.edu/svn/comanage/registry/trunk
> >>>> Repository Root: https://svn.internet2.edu/svn/comanage
> >>>> Repository UUID: 1fdded14-4b74-44c6-b977-281650cf7550
> >>>> Revision: 414
> >>>> Node Kind: directory
> >>>> Schedule: normal
> >>>> Last Changed Author: marie
> >>>> Last Changed Rev: 414
> >>>> Last Changed Date: 2013-01-26 06:02:07 -0600 (Sat, 26 Jan 2013)
> >>>>
> >>>> It's not critical since if I use the correct identifier then I
> >>>> can get in and work, but I thought I would let you know in
> >>>> case you spot something.
> >>>>
> >>>> Thanks,
> >>>>
> >>>> Scott
> >>>>
> >>>
> >>
> >



Archive powered by MHonArc 2.6.16.

Top of Page