Page 1 of 1

Upgrade how-to

PostPosted:Fri Nov 19, 2010 4:28 am
by srich
I had 5.0Beta installed and tried deploying the new .war file. However, when I started up jboss, i noticed several "column does not exist" errors. After trying several things, I resorted to changing hibernate.hbm2ddl=none to create, then back. Of course, that wipes out my permissions and users. How do you upgrade from one version to another without the loss of data?

Re: Upgrade how-to

PostPosted:Fri Nov 19, 2010 12:19 pm
by pavila
The migration process will be document when version 5.0 is stable. Actually we are on Release Candidate phase, and we expect the final release soon.

Re: Upgrade how-to

PostPosted:Sun Dec 26, 2010 3:31 pm
by akorn
Do I need to worry about users and permissions when upgrading from 4.1 to 5.0, if I store my users in LDAP?

Re: Upgrade how-to

PostPosted:Mon Dec 27, 2010 11:06 am
by pavila
Well, as stated in the wiki, the migration from 4.1 to 5.0 is heavy. The migration process ensure the migration of the documents, but not for users, roles, etc. This should be done by hand because depends on your database backend. Migration in future OpenKM released will be more simpler and will ensure the database related information to be preserved.

As usually we are open to ideas and improvements in this sense.

Re: Upgrade how-to

PostPosted:Mon Dec 27, 2010 11:43 am
by akorn
pavila wrote:Well, as stated in the wiki, the migration from 4.1 to 5.0 is heavy. The migration process ensure the migration of the documents, but not for users, roles, etc. This should be done by hand because depends on your database backend. Migration in future OpenKM released will be more simpler and will ensure the database related information to be preserved.

As usually we are open to ideas and improvements in this sense.
A straight reply to my question would be a huge improvement. :) My users and roles are in LDAP. Do I need to do anything about them when upgrading to 5.0?

Re: Upgrade how-to

PostPosted:Mon Dec 27, 2010 12:09 pm
by jllort
There's some new property in OpenKM.cfg used in ldap for version 5.0 that not exist on 4.1, simply must add it, rest of properties are the same, has not been changed. ( If you don't add these two new properties on OpenKM.cfg there's no major problem, simply you'll not see roles when user will try from UI editing his own information, really it'll not be a great problem, because user when is connected to ldap can not change some values, are only for information purpose ).

Re: Upgrade how-to

PostPosted:Mon Dec 27, 2010 2:38 pm
by akorn
jllort wrote:There's some new property in OpenKM.cfg used in ldap for version 5.0 that not exist on 4.1, simply must add it, rest of properties are the same, has not been changed. ( If you don't add these two new properties on OpenKM.cfg there's no major problem, simply you'll not see roles when user will try from UI editing his own information, really it'll not be a great problem, because user when is connected to ldap can not change some values, are only for information purpose ).
You mean the "atrib" vs. "attrib" typos? (I counted 3 of those: principal.ldap.role.attribute=cn, principal.ldap.user.attribute=uid, principal.ldap.mail.attribute=mail).

Or is there something I missed? There are only 7 hits for LDAP in the documentation wiki, and none appear to contain further information.

Re: Upgrade how-to

PostPosted:Mon Dec 27, 2010 4:43 pm
by jllort
The new are
Code: Select all
principal.ldap.users.by.role.search.filter=(&(objectClass=group)(cn={0}))
principal.ldap.roles.by.user.search.filter=(&(objectClass=group)(cn={0}))
To see all complete list might take a look at http://wiki.openkm.com/index.php/Active_Directory

Re: Upgrade how-to

PostPosted:Tue Dec 28, 2010 4:07 pm
by pavila
That's right, if you have users in LDAP you don't have to migrate them. The only tip, as Josep said, is the correction of a typo in the OpenKM.cfg properties.