password protected album

gotsushi

Joined: 2006-07-27
Posts: 5
Posted: Fri, 2006-07-28 08:41


Gallery version (not just "2"): 2.1.1
PHP version (e.g. 4.3.11): 4.39
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33): Apache 2.0
Database (e.g. MySql 4.0.11): MySQL 4.1.20
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux): Linux (Redhat)
Browser (e.g. Firefox 1.0): Firefox 1.5

Hello!

Unfortunately I am not able to protect my albums with a password. I simply want the overview site to be accessible without any restrictions and when clicking on an album the user shall be prompted for a password. No additional user login should be necessary.

What I did:
- Add a new album.
- Define a password for this album.
- Set permissions to: Everyone [core] view all items
(I use it in german so I don't know the correct English terms.)

What happens:
- When a user klicks on an album, he is asked for the password, he enters the correct one, but only is prompted again for the password. There is no error message that the password is wrong, he simply is asked again and again for the password.

Could somebody please tell me what I did wrong to achieve my (simple) goal?

Thank you very much in advance!

Regards,
Irene

 
fleas17

Joined: 2006-03-01
Posts: 11
Posted: Fri, 2006-07-28 19:17

I'm seeing the same thing! The weird thing is, it will work on one system fine, then not on another! Same browser, same version, it doesn't seem to be isolated to IE or Firefox either. We have imaged systems that are identical here, and while it did not work on one of my systems, it did on the other. I'm getting feedback from users that is the same, works for some people, not others.

Gallery version = 2.2-svn core 1.1.14
PHP version = 4.3.10-16 apache2handler
Webserver = Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-16 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_perl/1.999.21 Perl/v5.8.4
Database = mysqlt 4.0.24_Debian-10sarge2-log, lock.system=flock
Toolkits = Getid3, Thumbnail, Exif, ImageMagick, NetPBM, Dcraw, ArchiveUpload, Ffmpeg
Acceleration = none, none
Operating system = Linux aftermath 2.6.8-3-686-smp #1 SMP Sat Jul 15 08:52:57 UTC 2006 i686
Default theme = siriux
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5

 
gotsushi

Joined: 2006-07-27
Posts: 5
Posted: Sat, 2006-07-29 09:20

Yes, I have 3 albums - and it works for one, but not for the two others. Settings are - of course - exactly the same.
Very strange.

 
ethan

Joined: 2006-09-01
Posts: 5
Posted: Fri, 2006-09-01 20:07

I have the same problem.

i have a album and it's sub-album both set to password protect, it works fine.

another album in public and a sub-album with password protect and hide property
this one is not working at all, it's still "public" like others sub-album in the same
parent album.

 
nicolarsson1

Joined: 2005-12-14
Posts: 38
Posted: Fri, 2006-10-20 08:01

Hi fallas!

Got exactly the same problem in Firefox and IE.
Anyone find a solution?

Cheers

Nic

 
gotsushi

Joined: 2006-07-27
Posts: 5
Posted: Fri, 2006-10-20 08:17

Hello!

Yes, I found a working solution for me, but that means changing values directly in the database.
In the talbe g2_AccessMap search for the relevant album-ids (can be found in the debug-tree) in the field "g_userOrGroupId", the value in the the field "g_permission" should be 7. If there is another value, change it to 7, if the is more than one row with this album_id, delete the other ones, so that only one row with the permission-value 7 remains.

For me this solution works very well, but I don't know if there are any additional impacts of this intervention.

Regards,
Irene

 
PhiJay

Joined: 2007-06-24
Posts: 4
Posted: Sun, 2007-06-24 11:03

Hello,

I have installed Gallery 2.0 on my webserver and just encountered the same problem as described above.
I wondered if there has been a change in the programme that fixes this problem or if someone has found a less complicated solution recently? I mean: If I have to and there's no other way I will of course handle it like 'gotsushi' described it about one year ago - but if that problem occurs so frequently there must have been someone who has been working on it?!

The bug shortly described:
I want to protect an album by a password. When I do that, the album is actually protected so that noone can see the content of the album and there is a field to enter the correct password, but: If I do so I can't enter the album but the password prompt is shwon again and again everytime I enter the password!

Thanks for your help!
PhiJay