A journey: upgrading Gallery1 to 2

WebSnail

Joined: 2002-08-15
Posts: 34
Posted: Sun, 2006-04-16 16:58

This is for anyone who like me took the plunge and started upgrading from Gallery 1 to Gallery 2. I'm going to keep this post and/or the thread updated with little peculiarities I've found along the way that required some head scratching and hopefully help get a few questions answered for others in a similar situation.

LOGGEDIN?
- LOGGEDIN is now translated as the group "Registered Users"

Migrating a PhpBB2 integrated gallery.
- If you're using the phpBB2 integration mod then you need my mod/hack to migrate your ownership and permissions across in a reasonably intact manner
http://www.snailsource.com/forum/viewtopic.php?t=3571

Permission quirks
- Once you've converted your integrated gallery across I found that there's a tendancy for the system to automatically provide access to "Everybody" in some cases and just "Admins" in others. I haven't found a pattern (but the garbage in, garbage out rule must apply) but the way to resolve permissions is to remember that:
a) you can apply your permissions to sub-albums
b) in some cases you need to add permissions to a group you don't want to have access and then take them away again for the permission to be set properly in child albums.

eg: Parent Album has perm set so that "everybody" have no rights beyond viewing resized images
but Child Album has retained (during migration) a perm that allows "everybody" to view all images. Now if you think that just because you've already got everybody in the parent album with the limited "view resized images" only that it applies to all children because you ticked the box.. You'd be wrong. All you do is edit the Parent Album perms to give the permission you don't want the user to have and then remove it again, making sure the apply to sub-albums tickbox is ticked.

It's a pain but only required the one time because you won't be migrating again (well.. hopefully :P)..

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2006-04-17 00:22

yep, g1 that are integrated in another application, e.g. g1+phpbb, lose a lot of information when upgrading to g2. e.g. all users, all ownership will be defaulted to admin and the like.
please step up and fix that missing feature if it's important to you.
thank.s

 
WebSnail

Joined: 2002-08-15
Posts: 34
Posted: Mon, 2006-04-17 16:22

Heh... well as it happened I did just that... :)

http://www.snailsource.com/forum/viewtopic.php?t=3571

For the record though, this thread is not a whine but more a "this is what I would have liked to have been able to know" for others in a similar boat..

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2006-04-18 03:21

pretty cool :)

can i abuse your momentum a little more please? :)

can you please add a note / warning on:
http://codex.gallery2.org/index.php/Gallery2:migration

about these issues and add a link for the phpbb users there?

i think your hack / mod description is fine for phpbb users since they're used to this approach of adding features.
for a more general g1 + embedded -> g2 (+embedded) upgrade, we'd have to add a more generic pattern. but i'm sure users are already happy with this kind of patch.

thanks again!

 
WebSnail

Joined: 2002-08-15
Posts: 34
Posted: Tue, 2006-04-18 10:16

No worries Valiant, I've popped a quick note for phpBB2->gallery1 integration users, complete with a link so hopefully that'll help.

As to the hack, I was thinking about how "refined" it wasn't and figure that you might want to consider re-writing the migration module slightly to detect when something like ALL the album owners are not available in the normal gallery user.db file. Then if true, it could ask if phpBB2 or some other integrated mod has been used and request DB login details or a path to the config.php (for phpBB2 at least) so that it can verify connection before attempting to migrate the albums.

Just a thought and no, much as I wish I had the time I really can't help with that one ;)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2006-04-20 09:56

thanks. as to changing the migration module: yeah, would make sense... any takers are welcome, we'll review your patches if you want to contribute some code. :)