Gallery Remote Not Applying User Permissions

photomanNZ

Joined: 2005-07-27
Posts: 32
Posted: Sat, 2010-02-27 10:58

Hi,

First, here's my G2 info:

Gallery URL = http://www.imagesportnz.com/gallery2/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.9 cgi
Webserver = Apache/1.3.41 (Unix) mod_gzip/1.3.26.1a mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.31 OpenSSL/0.9.8e-fips-rhel5 PHP-CGI/0.5
Database = mysqli 5.0.77mm0.1-log, lock.system=flock
Toolkits = Getid3, ImageMagick, Gd, Exif, ArchiveUpload, NetPBM, LinkItemToolkit, Thumbnail, SquareThumb
Acceleration = none/0, none/0
Operating system = Linux serv01.siteground217.com 2.6.28.5-grsec-sg2 #6 SMP Fri Feb 20 02:45:11 CST 2009 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 (.NET CLR 3.5.30729)
Rows in GalleryAccessMap table = 270
Rows in GalleryAccessSubscriberMap table = 22053
Rows in GalleryUser table = 4
Rows in GalleryItem table = 21995
Rows in GalleryAlbumItem table = 809
Rows in GalleryCacheMap table = 0

My installation is embedded into Joomla 1.5.15 Stable
My Gallery Remote is 1.5.1-b46
I am using the most current G2 Bridge for Joomla
http://www.imagesportnz.com/index.php?option=com_g2bridge&view=gallery&Itemid=59 is where you will find the G2 embedded in Joomla

Ok, when I use Gallery Remote to upload images, somehow all user permissions except for Site Admins permissions are not being applied to the individual images.

These are the main set of permissions set to all albums when they are created:

Clients - Private [checkout] Purchase item
Clients - Editorial [checkout] Purchase item
Clients - Commercial [checkout] Purchase item
Everybody [core] View all versions
Everybody [rating] All access
Everybody [core] Add sub-album
Everybody [core] Add sub-item
Everybody [comment] Add comments
Site Admins All access
Super Administrator All access

This is the only permission applied to the individual images after being uploaded through Gallery Remote:

Site Admins All access

After uploading the images, I double checked the permissions, for both the album and the images. The album permission set remained intact, but was not applied to the images.

I have made one major change recently, but tested to make sure everything worked correctly. A live working model of Joomla and Gallery2 were installed in a folder in the root, working behind the main website. Everything worked perfectly when it was there. I have since deleted my old website from the root and moved Joomla and Gallery2 into the root, deleting the folder they were in. I have re-attached all strings within the G2 bridge and all existing albums and images do show up correctly.

When I created a new album, I went to upload images to it through Gallery Remote, but when logged in, Gallery Remote did not show any albums in Gallery 2. I researched this, and while found a few people had this problem, there was no real concrete solution, except for a user permission problem. Before I did anything, I logged in to the Admin on my site and uploaded the images through the Gallery remote applet from within the album. All worked fine from there, images uploaded with the correct permission set applied to them.

So, I tried someone's advice about albums not showing up in Gallery Remote when logged in through it. They said GR switches from admin to guest to fetch the albums, so they said to set a user permission for "everybody" to add sub-item. They also said to change it back after you upload because of security issues, but I have taken off the upload images link from an empty album, so no worries unless someone gets your username and password, in which case you'd be screwed anyway.

Ok now, this did work. The albums are now showing up in Gallery remote. So I do my upload through GR.......images are now in the album, but are only visible when I am logged in to Gallery 2 as Admin. When I log out, no images are visible and the album is empty. This is when I check the permissions. As said before, all initial user permissions are intact for the album, but none are being applied to the images except for the Site Admin.....All Access.

This has never been an issue before, so I really am at a loss as to what is not working correctly now. Any insight would be great some someone in the know....

Jim Helsel
Director
ImageSport NZ