Welcome Guest Search | Active Topics | Members | Log In | Register
Permission Handling Options
spamcram
Posted: Monday, November 24, 2008 8:12:27 AM
Rank: Member

Joined: 10/27/2008
Posts: 13
Location: UK
I went to setup permissions on my album but encountered many issues which required a-long work around.

Album structure as follows:

User1 Picture's
|_ Within here are around 50 albums
User2 Pictures's
|_Albums
..etc

Two of my albums withing "user1 picture's" needed it so normal users can't view these albums.

When I went into admin and went to edit the group of which these users are member of, I went to untick the ablum box which I don't want them access and it scrolled back up to the top and didn't untick them, I unticked the whole "User1 Picture's" and this unticked all the sub albums. I then had to go through ticking them one by one and on each one it scrolls to the top; never to mind the delay it took in selecting them.. This took quite awhile to do, then when I went to save all it didn't save because it had timed out (quite frustrating) I reopend and ticked about 6 at a time saving afterwards till all apart from ones I didn't want users to have access to. Finally I'd done it so I thought I'd logon as another user and test it..oh dear.. all the albums had lost there structure and are showing on the main page.. quite annoying. So I went back in and gave them access to the whole lot of albums again so it would keep the structure, then I created a new album at the root called "User1 Pictures's Personal" and unticked it so other users couldn't have access to this album, then moved albums into it that I didn't want other users to access.

This worked fine but is not ideal, the amount of time it took me just to do ^ that was well over a hour and half because it took so long to expand.

Also when I added a new album it didn't automatically add permissions to this album for other users.. I had to manually go in and tell the group it can view this album.

On your next version could you do inheritable permissions where it keeps root selected but some of the sub albums under the root can be unselected.. this would have saved me alot of time.. and kept the album structure and would allow permission to be applied (allow) for all new albums created. Or evan implementing "Deny Permissions" in the next version.. I could have just added users to a "Deny Read Group" and apply this group to albums I didn't want them to have access to.. with deny always overriding allow would have worked a charm.

I couldn't imagine the administrative overhead of managing permissions for anything over 10 users (with each user demanding individual needs..new albums been imported all time etc.)
Roger Martin
Posted: Monday, November 24, 2008 11:04:07 AM
Rank: Administration

Joined: 8/3/2007
Posts: 847
Location: Fort Atkinson, WI
Thanks for the taking the time to provide your feedback. I have been wanting to improve the ease of user management and your post confirms this. Expect an improvement in this area later in 2009.

However, the treeview shouldn't be taking that long to respond. Please tell me more. When you check an album, a little javascript runs that makes sure all child albums are selected as well. Is that running slow? And when you expand a node, a callback is sent to the server to request that album's children. On a slow network I can see how it might be slow, but it shouldn't be significant on broadband. I just did a test with the demo site: When I expanded the node for the Public Playground album on the Manage Roles page, it loaded the 24 albums in about a second.

An earlier version of GSP loaded all albums in the gallery when the page first loaded, which definitely caused performance issues when there were a lot of albums.


Roger Martin
Lead Developer for Gallery Server Pro
spamcram
Posted: Wednesday, December 03, 2008 5:53:23 AM
Rank: Member

Joined: 10/27/2008
Posts: 13
Location: UK
I have around 52 albums each of which may have sub albums. All albums containing around 150 pictures? This takes around 30-40seconds to load up (Expand).

Another thing I have noticed is now it is live.. when loading up a page with all these albums on or evan alot of pictuers.. the thumbnail images on some albums/pictures seems to time out.. and you have to right click and press show picture or refresh the page.. where is the timeout for this setting?

I don't have a very fast upload speed on my line so this will be effecting it. I do have the whole site SSL'ed but this will only decrease speed up to 30% if that properly not noticeable with todays hardware.
Roger Martin
Posted: Thursday, December 04, 2008 1:16:51 PM
Rank: Administration

Joined: 8/3/2007
Posts: 847
Location: Fort Atkinson, WI
It sounds like your slowness is primarily related to your network speed rather than processing within GSP. You can confirm this by watching your processor workload in Task Manager while loading a big page.

You can increase the timeout by editing web.config. For example, the following entry increases the timeout for a synchronization to 24 hours:

Code:
<location path="task/synchronize.aspx">
    <system.web>
        <httpRuntime executionTimeout="86400"/>
    </system.web>
</location>


I believe you can do something similar for the HTTP handler that serves media objects, although I've never actually tried it for a handler.

Code:
<location path="handler/getmediaobject.ashx">
    <system.web>
        <httpRuntime executionTimeout="86400"/>
    </system.web>
</location>



Roger Martin
Lead Developer for Gallery Server Pro
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.2 (NET v2.0) - 9/27/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.