Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] Re: [JIRA] (CO-254) Indirect modification errors

Subject: COmanage Developers List

List archive

[comanage-dev] Re: [JIRA] (CO-254) Indirect modification errors


Chronological Thread 
  • From: Benn Oshrin <>
  • To: comanage-dev <>
  • Subject: [comanage-dev] Re: [JIRA] (CO-254) Indirect modification errors
  • Date: Mon, 20 Feb 2012 21:32:31 -0500

In general, I don't think it's advisable to directly write to $this->data or $this->request with Cake 2. A bunch of the code I rewrote in StandardController avoids this by working with intermediate data structures instead.

On 2/20/12 8:44 PM, Marie Huynh (JIRA) wrote:

[
https://bugs.internet2.edu/jira/browse/CO-254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16454#comment-16454
]

Marie Huynh commented on CO-254:
--------------------------------

It is perhaps worth noting that modifying $this->request['data'] also logs a
similar notice.

Indirect modification errors
----------------------------

Key: CO-254
URL: https://bugs.internet2.edu/jira/browse/CO-254
Project: COmanage
Issue Type: Sub-task
Components: Registry
Affects Versions: COmanage Registry 0.4 (Reshaped Cake)
Reporter: Marie Huynh
Assignee: Marie Huynh
Labels: sprint04
Fix For: COmanage Registry 0.4 (Reshaped Cake)


2012-02-20 02:16:50 Notice: Notice (8): Indirect modification of overloaded
element of CakeRequest has no effect in
[/Applications/MAMP/htdocs/gears/trunk/app/Controller/CoNsfDemographicsController.php,
line 141]
Trace:
CoNsfDemographicsController::checkWriteDependencies() -
APP/Controller/CoNsfDemographicsController.php, line 141
StandardController::edit() - APP/Controller/StandardController.php, line 350
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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA
administrators:
https://bugs.internet2.edu/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira






Archive powered by MHonArc 2.6.16.

Top of Page