[SOLVED] Gallery3 permission issues

fgehrt

Joined: 2009-11-09
Posts: 5
Posted: Mon, 2009-11-09 18:55

valid for Gallery 3.0 git (pre-RC1) as well as Gallery 3 Beta 3

As Admin I added a sub album Gallery » Test. Test and its content should only be visible to logged in users.

Issue 1: Placeholders instead of images if subalbum is not visible to all.
I logged in as minor privileged user who's group is explicitelys allowed to see the album Test and its content. But this users only sees a placeholder.
Even though this user is able to add images they are not visible to him.

Issue 2: Minor priveleged user is able to edit permissions of Top album
The top album was set to be visible but not editable to the minor privileged user!

Both issues due are not browser related or cache related. I was able to reproduce this even with different browsers for admin and minor privileged users.

Any idea?
Thanks, Friedemann

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2009-11-09 19:02

Please post a screenshot of your permission settings.

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
fgehrt

Joined: 2009-11-09
Posts: 5
Posted: Mon, 2009-11-09 22:27

Please, find
3 screenshots to issue #1
1 screenshot to issue #2

Thanks, Friedemann

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2009-11-09 23:00

Rename and repost your attachments. Probably need to remove the # sign, the links are not working.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
fgehrt

Joined: 2009-11-09
Posts: 5
Posted: Tue, 2009-11-10 04:31
 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-11-10 05:25

When was the last time you got the latest experimental code? I'd make sure you're up to date and be sure to follow the tips for unpacking the code:
http://codex.gallery2.org/Gallery3:Upgrading

If it's still behaving oddly PM me (click Write to author) a link and login details so I can take a closer look.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-11-10 15:06

It's got to be a browser caching issue. I'm not able to see any of the behavior you're describing. When I log in with the restricted user I can't add or change permissions.

Now, as for your images not showing if the Everybody user is restricted, that should have been fixed here:
https://sourceforge.net/apps/trac/gallery/ticket/812

When you upgraded to the latest git did you make sure that the old files are not laying around by putting the new version into a new directory and moving the var directory into that new gallery 3 directory?

Can you check your gallery3/var/logs directory and see what's in there and post any logs from this morning?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
fgehrt

Joined: 2009-11-09
Posts: 5
Posted: Tue, 2009-11-10 21:29

The code of my item.php and file_proxy.php matches Refix #812 exactly ( the decoding in file_proxy is removed instead of not encoding in Item_Model when creating the relative_path_cache) according to http://bit.ly/1IgS9p

I added an album 'Test' (no blanks with image files that do not contain blanks. Same issue:
In ~/gallery3/var/logs/2009-11-10.log.php I find always the same:
2009-11-10 14:23:09 -07:00 --- error: Uncaught Kohana_404_Exception: The page you requested, file_proxy/.album.jpg?m=1257865225, could not be found. in file system/core/Kohana.php on line 849
2009-11-10 14:23:09 -07:00 --- error: Uncaught Kohana_404_Exception: The page you requested, file_proxy/.album.jpg?m=1257885094, could not be found. in file system/core/Kohana.php on line 849

Seem so be file_proxy related: if you allow Everybody to view it, then it's not going through the file_proxy and things just work.

 
fgehrt

Joined: 2009-11-09
Posts: 5
Posted: Thu, 2009-11-12 12:45

Today my webhoster bound a new IP address to my server and ... everything works fine! No idea what went wrong. But nivekiam was right to assume that the issue is outside gallery3.

Thanks again,
Friedemann