Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] Re: Fwd: [JIRA] (CO-234) CoNsfDemographics needs validate for REST

Subject: COmanage Developers List

List archive

[comanage-dev] Re: Fwd: [JIRA] (CO-234) CoNsfDemographics needs validate for REST


Chronological Thread 
  • From: Scott Koranda <>
  • To: Marie Huynh <>
  • Cc: comanage-dev <>
  • Subject: [comanage-dev] Re: Fwd: [JIRA] (CO-234) CoNsfDemographics needs validate for REST
  • Date: Thu, 1 Mar 2012 08:45:29 -0600
  • Authentication-results: mr.google.com; spf=pass (google.com: domain of designates 10.60.29.166 as permitted sender) ; dkim=pass

Hi,

I just updated to r240 and I am not able to reproduce this.

Sorry,

Scott

On Tue, Feb 28, 2012 at 9:03 PM, Marie Huynh
<>
wrote:
> Is anyone else getting this error(below)?  I'm getting this when I GET a
> view(all) for demographics, cos, etc.
>
> 2012-02-28 18:46:05 Error: [MissingTableException] Database table cm_users
> for model User was not found.
> #0 /Applications/MAMP/htdocs/gears/trunk/lib/Cake/Model/Model.php(3258):
> Model->setSource('users')
> #1 /Applications/MAMP/htdocs/gears/trunk/lib/Cake/Model/Model.php(2483):
> Model->getDataSource()
> #2
> /Applications/MAMP/htdocs/gears/trunk/lib/Cake/Controller/Component/Auth/BaseAuthenticate.php(84):
> Model->find('first', Array)
> #3
> /Applications/MAMP/htdocs/gears/trunk/lib/Cake/Controller/Component/Auth/BasicAuthenticate.php(111):
> BaseAuthenticate->_findUser('test', 'asdf')
> #4
> /Applications/MAMP/htdocs/gears/trunk/lib/Cake/Controller/Component/Auth/BasicAuthenticate.php(87):
> BasicAuthenticate->getUser(Object(CakeRequest))
> #5
> /Applications/MAMP/htdocs/gears/trunk/lib/Cake/Controller/Component/AuthComponent.php(640):
> BasicAuthenticate->authenticate(Object(CakeRequest), Object(CakeResponse))
> #6
> /Applications/MAMP/htdocs/gears/trunk/lib/Cake/Controller/Component/AuthComponent.php(514):
> AuthComponent->identify(Object(CakeRequest), Object(CakeResponse))
> #7
> /Applications/MAMP/htdocs/gears/trunk/app/Controller/AppController.php(135):
> AuthComponent->login()
> #8
> /Applications/MAMP/htdocs/gears/trunk/lib/Cake/Controller/Controller.php(605):
> AppController->beforeFilter()
> #9
> /Applications/MAMP/htdocs/gears/trunk/lib/Cake/Routing/Dispatcher.php(101):
> Controller->startupProcess()
> #10
> /Applications/MAMP/htdocs/gears/trunk/lib/Cake/Routing/Dispatcher.php(86):
> Dispatcher->_invoke(Object(CoNsfDemographicsController),
> Object(CakeRequest), Object(CakeResponse))
> #11 /Applications/MAMP/htdocs/gears/trunk/app/webroot/index.php(96):
> Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
> #12 {main}
>
>
> On Tue, Feb 28, 2012 at 6:19 PM, Marie Huynh
> <>
> wrote:
>>
>> Scott, you mentioned having some REST issues.  What were they?
>>
>> Marie
>>
>>
>> On Tue, Feb 28, 2012 at 2:03 PM, Marie Huynh
>> <>
>> wrote:
>>>
>>> On to the list in case it's useful for anyone else.
>>>
>>>
>>> On Tue, Feb 28, 2012 at 1:40 PM, Benn Oshrin
>>> <>
>>> wrote:
>>>>
>>>> On the road at the moment. I changed how the REST api handles validation
>>>> of fields related to a model. Basically, if they aren't defined in
>>>> $model->validate, the api doesn't know they exist. You should be able to
>>>> generate this error pretty easily by doing a REST add or edit to this
>>>> controller.
>>>>
>>>>
>>>> Marie Huynh
>>>> <>
>>>> wrote:
>>>>>
>>>>> Hey Benn,
>>>>>
>>>>> Can you clarify this for me and paste in the errors you got?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Marie
>>>>>
>>>>> ---------- Forwarded message ----------
>>>>> From: Benn Oshrin (JIRA)
>>>>> <>
>>>>> Date: Tue, Feb 7, 2012 at 11:32 AM
>>>>> Subject: [JIRA] (CO-234) CoNsfDemographics needs validate for REST
>>>>> To:
>>>>>
>>>>>
>>>>>
>>>>> Benn Oshrin created CO-234:
>>>>> ------------------------------
>>>>>
>>>>>             Summary: CoNsfDemographics needs validate for REST
>>>>>                 Key: CO-234
>>>>>                 URL: https://bugs.internet2.edu/jira/browse/CO-234
>>>>>             Project: COmanage
>>>>>          Issue Type: Bug
>>>>>          Components: Registry
>>>>>    Affects Versions: COmanage Registry 0.4 (Reshaped Cake)
>>>>>            Reporter: Benn Oshrin
>>>>>            Assignee: Marie Huynh
>>>>>             Fix For: COmanage Registry 0.4 (Reshaped Cake)
>>>>>
>>>>>
>>>>> CoNsfDemographics model needs $validate to be populated with all
>>>>> attributes or REST calls will fail with "Unknown Attribute".
>>>>>
>>>>> --
>>>>> 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