|
From: Chris W. <ch...@cw...> - 2002-01-14 13:46:18
|
On Mon, 2002-01-14 at 08:12, Jochen Lillich wrote:
> Is there a proper documentation what I have to do when I upgrade from
> OI 1.30 to OI 1.36? I'm going to do that with a few sites.
>
> Because of the changes to server.perl mentioned in the UPGRADE file, I
> recreated it from the sample file.
>
> File permission problems with the new 'tmplib' directory were solved
> quickly. But now I run into heavy security and template problems.
>
> After copying base_main from pkg/base_theme/template into
> WEBSITE_DIR/templates at least the site came up. But OI said "Access
> Forbidden". The log:
>
> [Mon Jan 14 14:11:06 2002] null: linuxde::Handler::BasicPage::_retrieve_object (341) >> Trying to retrieve OBJECT with location (/)
> [Mon Jan 14 14:11:06 2002] null: linuxde::Handler::BasicPage::_retrieve_object (351) >> Trying to grab a directory; adding home
> [Mon Jan 14 14:11:07 2002] null: -- Found error when fetching object: $VAR1 = {
> [Mon Jan 14 14:11:07 2002] null: 'user_msg' => 'Action prohibited due to security. Insufficient access for requested action',
> [Mon Jan 14 14:11:07 2002] null: 'line' => 157,
> [Mon Jan 14 14:11:07 2002] null: 'extra' => {
> [Mon Jan 14 14:11:07 2002] null: 'security' => '1'
> [Mon Jan 14 14:11:07 2002] null: },
> [Mon Jan 14 14:11:07 2002] null: 'filename' => '/usr/lib/perl5/site_perl/5.6.1/SPOPS/Secure.pm',
> [Mon Jan 14 14:11:07 2002] null: 'system_msg' => 'Required access: 4; retrieved access: 1',
> [Mon Jan 14 14:11:07 2002] null: 'method' => 'SPOPS::Error::set',
> [Mon Jan 14 14:11:07 2002] null: 'package' => 'SPOPS::Secure',
> [Mon Jan 14 14:11:07 2002] null: 'type' => 'security'
> [Mon Jan 14 14:11:07 2002] null: };
>
> Logged in as superuser, the page displays. But normal users should
> also see the page!
The 'static_page' module is deprecated now -- see if you can follow the
directions in $WEBSITE_DIR/pkg/base_page-x.xx/doc/base_page.pod under
'MIGRATION' to move those pages over to the new system.
> Then, still as su, I clicked the link "Security" in admin tools, and
> got:
>
> Cannot process template!file error - Template (error_message) is not in
> the website common directory and is not in the format 'package::name'
> at /usr/lib/perl5/site_perl/5.6.1/OpenInteract/Template/Process.pm line
> 162.
Ah, for this you should be able to do the following:
1) Create a file '.no_overwrite' in $WEBSITE_DIR/template and add the
line:
base_main
to it. This ensures your main template won't get overwritten.
2) Run:
$ export OIWEBSITE=/path/to/mysite
$ oi_manage refresh_widget
Which will ensure that all the 'widgets' in OI are in your website,
including the 'error_message' and a number of others.
If you run into anything else, let the list know. The next version is
pretty much ready to go but I'd like to make sure the upgrading process
isn't totally painful...
Chris
--
Chris Winters (ch...@cw...)
Building enterprise-capable snack solutions since 1988.
|