Forum OpenACS Development: Has anyone tried to upgrade a 4.6.3 to 5-HEAD?..

and what was a result?

I tried to follow the suggested route (update file tree, go to /acs-admin/apm, etc.), but things ain't working.

So far, I see the biggest problem with acs-authentication replacing a lot of code from acs-tcl.  Additionally, acs-lang and change to ad_locales table (addition of enabled_p) is also breaking things.

Any alternative experiences so far?  Seems to me like there's gonna have to be lotsa manual tweaking...

Collapse
Posted by Andrei Popov on
Here's some hand-crafting I've done so far:

1. modified acs-tcl/tcl/security-proc.tcl to use old ad_maybe_return_for_redirect code

2. manually modified ad_locales table:

upg=# alter table ad_locales add column enabled_p            boolean;
upg=# alter table ad_locales alter column enabled_p set default 't';

3. manually created all of acs-authentication tables:

[apopov@vm:~/prj/HEAD/packages/acs-kernel/sql/postgresql]
<blockquote> psql -f authentication-create.sql upg
</blockquote>

[apopov@vm:~/prj/HEAD/packages/acs-kernel/sql/postgresql]
<blockquote> psql -f authentication-package-create.sql upg
</blockquote>
[apopov@vm:~/prj/HEAD/packages/acs-authentication/sql/postgresql]
<blockquote> psql -f batch-job-tables-create.sql upg
</blockquote>
[apopov@vm:~/prj/HEAD/packages/acs-authentication/sql/postgresql]
<blockquote> psql -f acs-authentication-create.sql upg
</blockquote>

4. sumlinked acs-authentication/tcl/ to acs-tcl/tcl:
[apopov@vm:~/prj/HEAD/packages/acs-tcl/tcl]
<blockquote> ln -s ../../acs-authentication/tcl/* ./
</blockquote>

5. modifying acs-subsite/lib/login.tcl to comment out lookup of UsePasswordWidgetForUsername

This gets me as far as being able to login (sortof), but fails on cc_users.username in one of the selects...

Collapse
Posted by Andrei Popov on
obviously, (4) depricates (1) and s/sumlinked/symlinked/
Collapse
Posted by Malte Sussdorff on
Hello Andrei,

would you be able to post a patch for the things you've done, so we can incorporate it in the upgrade process? My plan is to test and fix upgrade from 4.6.3 to 5 during the bug bashing festival, so any help you can provide there is highly appreciated.

Malte

Collapse
Posted by Andrei Popov on
Malte,

I'll see if I can -- not sure how to handle some of these items -- looks to me that one would have to run a few scripts from the files system at first, to get some of the stuff in.  Otherwise we may need to add additional hooks kind of like run_once_on_update_only that would check if we maybe doing an upgrade, and then bootstrapping all of the missing data/proc/etc.

The above crUfting is not good for real upgrade, I suppose, but I will see what I can do.  If anything, it may at least be  a "field trip report" :)