List Info

Thread: Error when sytem admin account edits story elements




Error when sytem admin account edits story elements
user name
2007-06-22 08:37:13
We have created a system admin account to edit templates and
system  
config stuff without having to view all our workflows.

This account has no problem editing subelements, but when we
try to  
use it to edit story elements, the system kicks us back out
to the  
login page with this error:

[Fri Jun 22 13:32:31 2007] [error] [client 140.141.15.113]
Can't  
locate object method "get_grp_ids" via package
"id" (perhaps you  
forgot to load "id"?) at
/usr/local/bricolage/lib/Bric/Biz/Person/ 
User.pm line 997, <GEN649> line 2088.n
  
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Exceptions.
pm:129]
   [/usr/local/bricolage/lib/Bric/Biz/Person/User.pm:997]
   [/usr/local/bricolage/lib/Bric/App/Authz.pm:157]
  
[/usr/local/bricolage/comp/admin/profile/element_type/dhandl
er:119]
  
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.p
m:135]
  
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:
1256]
  
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:
1246]
  
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:
915]
   [/usr/local/bricolage/comp/admin/profile/autohandler:16]
  
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.p
m:135]
  
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:
1256]
  
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:
1246]
  
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:
915]
   [/usr/local/bricolage/comp/autohandler:7]
  
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.p
m:135]
  
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:
1251]
  
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:
1246]
  
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:
460]
  
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:
460]
  
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm:
412]
  
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandl
er.pm: 
168]
  
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandl
er.pm: 
826]
   [/usr/local/bricolage/lib/Bric/App/Handler.pm:311]
   [/usr/local/bricolage/lib/Bric/App/Handler.pm:300]
   [/dev/null:0]
   [/dev/null:0]

Does this look like a bug or improper configuration?

Thanks,

Matt

Re: Error when sytem admin account edits story elements
user name
2007-06-22 09:05:59
On Fri, 22 Jun 2007, Matt Rolf wrote:
> We have created a system admin account to edit
templates and system config 
> stuff without having to view all our workflows.
>
> This account has no problem editing subelements, but
when we try to use it to 
> edit story elements, the system kicks us back out to
the login page with this 
> error:
>
> [Fri Jun 22 13:32:31 2007] [error] [client
140.141.15.113] Can't locate 
> object method "get_grp_ids" via package
"id" (perhaps you forgot to load 
> "id"?) at
/usr/local/bricolage/lib/Bric/Biz/Person/User.pm line 997,
<GEN649> 
> line 2088.n
>
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Exceptions.
pm:129]
> [/usr/local/bricolage/lib/Bric/Biz/Person/User.pm:997]
> [/usr/local/bricolage/lib/Bric/App/Authz.pm:157]
>
[/usr/local/bricolage/comp/admin/profile/element_type/dhandl
er:119]
[snip]
> Does this look like a bug or improper configuration?

Bug.... looks like a copy/paste error.
At comp/admin/profile/element_type/dhandler:119,
   .... chk_authz($_[0], EDIT, 1)
but $_[0] doesn't make sense here because it's outside
of a subroutine...
Try this:
------------------ cut here 8< ------------------
Index: dhandler
============================================================
=======
--- dhandler    (revision 7932)
+++ dhandler    (working copy)
 -117,7
+117,7 

              my %sites = map { $_->get_id => 1 } elem_sites;
              my available_sites = grep {
-                !$sites{$_->get_id} &&
chk_authz($_[0], EDIT, 1)
+                !$sites{$_->get_id} &&
chk_authz($_, EDIT, 1)
              } Bric::Biz::Site->list({
                  active            => 1,
                  output_channel_id => 'not null',
------------------ cut here 8< ------------------

Re: Error when sytem admin account edits story elements
user name
2007-06-22 10:26:10
It works.  Brilliant.

On Jun 22, 2007, at 10:05 AM, Scott Lanning wrote:

> On Fri, 22 Jun 2007, Matt Rolf wrote:
>> We have created a system admin account to edit
templates and  
>> system config stuff without having to view all our
workflows.
>>
>> This account has no problem editing subelements,
but when we try  
>> to use it to edit story elements, the system kicks
us back out to  
>> the login page with this error:
>>
>> [Fri Jun 22 13:32:31 2007] [error] [client
140.141.15.113] Can't  
>> locate object method "get_grp_ids" via
package "id" (perhaps you  
>> forgot to load "id"?) at
/usr/local/bricolage/lib/Bric/Biz/Person/ 
>> User.pm line 997, <GEN649> line 2088.n
>>
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Exceptions.
pm:129]
>>
[/usr/local/bricolage/lib/Bric/Biz/Person/User.pm:997]
>> [/usr/local/bricolage/lib/Bric/App/Authz.pm:157]
>>
[/usr/local/bricolage/comp/admin/profile/element_type/dhandl
er:119]
> [snip]
>> Does this look like a bug or improper
configuration?
>
> Bug.... looks like a copy/paste error.
> At comp/admin/profile/element_type/dhandler:119,
>   .... chk_authz($_[0], EDIT, 1)
> but $_[0] doesn't make sense here because it's outside
> of a subroutine...
> Try this:
> ------------------ cut here 8< ------------------
> Index: dhandler
>
============================================================
=======
> --- dhandler    (revision 7932)
> +++ dhandler    (working copy)
>  -117,7 +117,7 
>
>              my %sites = map { $_->get_id => 1 }
elem_sites;
>              my available_sites = grep {
> -                !$sites{$_->get_id} &&
chk_authz($_[0], EDIT, 1)
> +                !$sites{$_->get_id} &&
chk_authz($_, EDIT, 1)
>              } Bric::Biz::Site->list({
>                  active            => 1,
>                  output_channel_id => 'not null',
> ------------------ cut here 8< ------------------


Re: Error when sytem admin account edits story elements
user name
2007-06-22 11:02:56
Committed revision 7933, in rev_1_10.

On Fri, 22 Jun 2007, Matt Rolf wrote:
> It works.  Brilliant.
>
> On Jun 22, 2007, at 10:05 AM, Scott Lanning wrote:
>
>> On Fri, 22 Jun 2007, Matt Rolf wrote:
>>> We have created a system admin account to edit
templates and system config 
>>> stuff without having to view all our
workflows.
>>> 
>>> This account has no problem editing
subelements, but when we try to use it 
>>> to edit story elements, the system kicks us
back out to the login page 
>>> with this error:
>>> 
>>> [Fri Jun 22 13:32:31 2007] [error] [client
140.141.15.113] Can't locate 
>>> object method "get_grp_ids" via
package "id" (perhaps you forgot to load 
>>> "id"?) at
/usr/local/bricolage/lib/Bric/Biz/Person/User.pm line 997, 
>>> <GEN649> line 2088.n
>>>
[/usr/local/lib/perl5/site_perl/5.8.8/HTML/Mason/Exceptions.
pm:129]
>>>
[/usr/local/bricolage/lib/Bric/Biz/Person/User.pm:997]
>>>
[/usr/local/bricolage/lib/Bric/App/Authz.pm:157]
>>>
[/usr/local/bricolage/comp/admin/profile/element_type/dhandl
er:119]
>> [snip]
>>> Does this look like a bug or improper
configuration?
>> 
>> Bug.... looks like a copy/paste error.
>> At comp/admin/profile/element_type/dhandler:119,
>>  .... chk_authz($_[0], EDIT, 1)
>> but $_[0] doesn't make sense here because it's
outside
>> of a subroutine...
>> Try this:
>> ------------------ cut here 8<
------------------
>> Index: dhandler
>>
============================================================
=======
>> --- dhandler    (revision 7932)
>> +++ dhandler    (working copy)
>>  -117,7 +117,7 
>>
>>             my %sites = map { $_->get_id => 1
} elem_sites;
>>             my available_sites = grep {
>> -                !$sites{$_->get_id} &&
chk_authz($_[0], EDIT, 1)
>> +                !$sites{$_->get_id} &&
chk_authz($_, EDIT, 1)
>>             } Bric::Biz::Site->list({
>>                 active            => 1,
>>                 output_channel_id => 'not
null',
>> ------------------ cut here 8<
------------------
>

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )