Skip to Content.
Sympa Menu

comanage-dev - Re: [comanage-dev] Fwd: [JIRA] (CO-495) Error Deleting a Group Membership

Subject: COmanage Developers List

List archive

Re: [comanage-dev] Fwd: [JIRA] (CO-495) Error Deleting a Group Membership


Chronological Thread 
  • From: Scott Koranda <>
  • To: Marie Huynh <>
  • Cc: comanage-dev <>
  • Subject: Re: [comanage-dev] Fwd: [JIRA] (CO-495) Error Deleting a Group Membership
  • Date: Tue, 23 Oct 2012 17:12:43 -0500

Hi,

>
> If I do
>
> GET /registry/co_group_members/delete/6/copersonid:3/co:2 HTTP/1.1
>
> I get back a 302 with
>
> Location: https://127.0.0.1/registry/co_groups/edit/co:2/tab:group

So the problem is that the group ID is not part of that URL.

Looking at performRedirect() in the standard controller I
don't see how that correct URL can be constructed given the
information available.

I think that the call above to the delete() method for the
CoGroupsController needs to pass through the group ID, just as
it does with the CO Person Id and the CO Id, otherwise there
is no way for the right redirect URL to be constructed.

Is my assessment correct?

Scott

>
> When my browser does a GET of that
>
> GET /registry/co_groups/edit/co:2/tab:group HTTP/1.1
>
> I see this:
>
> Warning (2): Missing argument 1 for CoGroupsController::edit()
> [APP/Controller/CoGroupsController.php, line 164]
> Code
>
> */
>
> function edit($id) {
>
> CoGroupsController::edit() -
> APP/Controller/CoGroupsController.php, line 164
> ReflectionMethod::invokeArgs() - [internal], line ??
> Controller::invokeAction() -
> CORE/Cake/Controller/Controller.php, line 473
> Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line
> 104
> Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php,
> line 86
> [main] - APP/webroot/index.php, line 96
>
> So the CoGroupsController has an edit function that is
> expecting to get $id but it isn't being passed.
>
> --
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA
> administrators
> For more information on JIRA, see:
> http://www.atlassian.com/software/jira
>
>



Archive powered by MHonArc 2.6.16.

Top of Page