forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 permissions => Topic started by: shortmort37 on December 09, 2010, 03:12:38 am

Title: problem uploading to gallery created by another admin
Post by: shortmort37 on December 09, 2010, 03:12:38 am
I'm one of two gallery admins, who have privileges to upload to a public gallery.  My counterpart created an album; I'm trying to upload to it, but am unsuccessful - I get the error message in the attachment.

The gallery is at www.59plymouth.net/59gallery

Thanks
Dan
Title: Re: problem uploading to gallery created by another admin
Post by: Αndré on December 09, 2010, 12:37:59 pm
Uploading to albums generated by you works as expected?
Title: Re: problem uploading to gallery created by another admin
Post by: shortmort37 on December 09, 2010, 01:00:30 pm
Yes - my colleague (with the same group membership as me, GalleryAdmin) had uploaded a .wmv file.  I converted to a .flv, removed the .wmv (successfully) from his album, and tried to upload the .flv with the error I noted.  I can upload this very same file to an album that I create:

http://www.59plymouth.net/59gallery/thumbnails.php?album=14
Title: Re: problem uploading to gallery created by another admin
Post by: Αndré on December 09, 2010, 01:28:16 pm
I'll have a look at it. As a quick workaround you could try if you can move that uploaded file to the desired album or enable 'Visitors can upload files' in the album properties.
Title: Re: problem uploading to gallery created by another admin
Post by: Αndré on December 09, 2010, 02:18:05 pm
Works as expected in my local testbed. Please upgrade to cpg1.5.10 and try again.
Title: Re: problem uploading to gallery created by another admin
Post by: shortmort37 on December 10, 2010, 02:12:03 am
Can you point me to a FAQ for upgrading to cpg1.5.10 from cpg1.5.8?  I don't see one on the  child board for cpg1.5.  How do I save my existing config?  Do I have to remerge the bridge updates for phpBB (ucp.php and phpbb3.inc.php)?  Will my custom theme be affected?  Do I have to reinstall plugins?  And like that...

Thanks
Dan
Title: Re: problem uploading to gallery created by another admin
Post by: Jeff Bailey on December 10, 2010, 04:05:16 am
http://documentation.coppermine-gallery.net/en/upgrading.htm#upgrade_15
http://documentation.coppermine-gallery.net/en/upgrading.htm#upgrade_faq
Title: Re: problem uploading to gallery created by another admin
Post by: shortmort37 on December 10, 2010, 04:06:36 pm
Thanks - I will upgrade tonight (-5 GMT).  I'd like to keep this open to see if the upgrade addresses my original problem (unable to upload to album created by another admin).

Dan
Title: Re: problem uploading to gallery created by another admin
Post by: shortmort37 on December 11, 2010, 05:19:21 pm
I've upgraded to cpg1.5.10, and I am still getting the same error - although, I can upload the file into an album I create.

I should point out that I have a bridge to phpBB3, and that I had to edit phpbb3.inc.php in coppermine and ucp.php in phpBB3, per the instructions, in order for me to have admin privileges:

http://forum.coppermine-gallery.net/index.php/topic,68302.0.html

I'm not sure if this is implicated or not - just another data point.

Dan
Title: Re: problem uploading to gallery created by another admin
Post by: Αndré on December 11, 2010, 05:31:46 pm
when I changed the value for "GalleryAdmin" (the group I created for gallery administration) in this file, my friend could now administrate the gallery - but I couldn't!  Simple fix: I added myself to the GalleryAdmin group.
Try to add both groups to the admingroups in bridge/phpbb3.inc.php. Change
Code: [Select]
$this->admingroups = array(5);to e.g.
Code: [Select]
$this->admingroups = array(5, 123);
Title: Re: problem uploading to gallery created by another admin
Post by: shortmort37 on December 11, 2010, 05:35:57 pm
Αndré, do you mean add the index value for phpBB3 Administrator on my board, as well as GalleryAdmin, to admingroups?
Title: Re: problem uploading to gallery created by another admin
Post by: Αndré on December 11, 2010, 05:44:47 pm
Yes. As far I understood you replaced the default value '5' with your custom group's id. Just add both ids.
Title: Re: problem uploading to gallery created by another admin
Post by: shortmort37 on December 11, 2010, 05:47:14 pm
I changed it to (5, 8) [Administrator, GalleryAdmin] logged out, flushed my cache and logged back in.  Same issue.
Title: Re: problem uploading to gallery created by another admin
Post by: Αndré on December 11, 2010, 06:23:18 pm
Please remove yourself from the GalleryAdmin group. Do you still have admin privileges in Coppermine?
Title: Re: problem uploading to gallery created by another admin
Post by: shortmort37 on December 11, 2010, 06:33:17 pm
No - when I remove GalleryAdmin from my group membership, I lose admin rights to Coppermine.
Title: Re: problem uploading to gallery created by another admin
Post by: shortmort37 on December 12, 2010, 12:19:39 am
I tried something else, in desperation; in phpBB, you can be an "approved member" of a group, or a group leader - and the group can be your default, or not.  I'm trying to upload to an album that "Ron Keij" had created, as a group leader of GalleryAdmin - previously, I added myself as an approved member.  This time, I added myself as a group leader, and made the group my default.  In phpBB, I appear to have the same privileges as Ron (attachment) -- yet, still I cannot upload to this album.

Any ideas how I can further diagnose this problem?
Title: Re: problem uploading to gallery created by another admin
Post by: Αndré on December 12, 2010, 10:32:12 am
Enable debug mode and post the debug output of both users.
Title: Re: problem uploading to gallery created by another admin
Post by: shortmort37 on December 12, 2010, 03:04:07 pm
Here they are...  RonKeij successfully uploads, Faulkner does not.
Title: Re: problem uploading to gallery created by another admin
Post by: Αndré on December 12, 2010, 07:18:01 pm
Please try what happens when you remove Faulkner from the groups
Code: [Select]
            [2] => 105
            [3] => 104
Title: Re: problem uploading to gallery created by another admin
Post by: shortmort37 on December 12, 2010, 09:41:46 pm
Please try what happens when you remove Faulkner from the groups
Code: [Select]
            [2] => 105
            [3] => 104

I want Faulkner (me) to retain sole administrative rights over the phpBB Forum, while sharing administrative rights with Ron Keij for the Coppermine Gallery.  That's why I created GalleryAdmin as a group.

One of the two groups you identify above is phpBB Administrator; I can't remove Faulkner from that.  The other is Moderator, and I did remove that - to no avail.

It occurred to me that I could edit Ron's content in the Gallery, if I used a different account with the same group membership as he - Registered User, and GalleryAdmin.  I assigned both to the cpgtest account.  It failed again, but this time with a different complaint (cpgtest.jpg and cpgtest.txt).

I then noticed that there are options for the upload mechanism specified in the right upper corner: "multiple - flash driven (recommended)", and "simple - one file at a time".  I logged in as Faulkner, and changed it to the latter - and it worked!

So clearly, there's a bug somewhere - the failure mode I observe when using the multiple upload method (for a single file) does not occur when using the simple, one file upload approach.
Title: Re: problem uploading to gallery created by another admin
Post by: shortmort37 on December 14, 2010, 01:42:30 am
Is there anything for me to do here?  Is there an official mechanism for reporting bugs?  I can work around this issue by choosing the simple (non-flash) upload mode and close this case - I just want to make sure the issue is tracked properly.

Thanks
Dan
Title: Re: problem uploading to gallery created by another admin
Post by: Αndré on December 14, 2010, 11:44:19 am
First of all we have to determine if it's really a bug or just a configuration/setup issue.

Again,
Please try what happens when you remove Faulkner from the groups
Code: [Select]
            [2] => 105
            [3] => 104

I don't want that you permanently remove Faulkner from these groups, but only for testing purposes.
Title: Re: problem uploading to gallery created by another admin
Post by: shortmort37 on December 14, 2010, 12:38:24 pm
OK - I'll create another administrative account, so I can remove administrative privileges from Faulkner, and report back.

Dan
Title: Re: problem uploading to gallery created by another admin
Post by: shortmort37 on December 15, 2010, 01:55:44 am
OK, I removed Faulkner from those groups - now, only has membership in the same groups as "Ron Keij", the creator of the album.  Flash upload still fails (debug attached).  Simple, single file upload works.

Title: Re: problem uploading to gallery created by another admin
Post by: shortmort37 on December 16, 2010, 04:52:43 pm
Anything more for me to do here?  I'm OK with doing a simple, single file edit.  Shall I close this?

Dan
Title: Re: problem uploading to gallery created by another admin
Post by: Αndré on December 16, 2010, 05:03:01 pm
It fails with which message? With the 'you don't have permission' message (which would be an issue), or with the 'big' error message you posted later (which mostly happens when a theme or plugin accidentally injects some characters to the ajax response).

You have enabled private albums. Maybe the album is private you try to upload to? I haven't tested that yet.

Shall I close this?
Fine by me, as it seems to work without any problems in an unbridged gallery. At least it worked in my testbed, so maybe it's just an individual issue for your settings.
Title: Re: problem uploading to gallery created by another admin
Post by: shortmort37 on December 16, 2010, 05:07:58 pm
You have enabled private albums. Maybe the album is private you try to upload to? I haven't tested that yet.

I only want for myself and my colleague to be able to upload - I don't want for the general public to be able to upload.  But I need to be able to edit his, and he needs to be able to edit mine.  Is there another option that would enable this workflow, without making the album private?

Dan
Title: Re: problem uploading to gallery created by another admin
Post by: Αndré on December 16, 2010, 05:09:39 pm
Please read the docs what the private albums feature does. It has no effect to what you described. My actual question was, if that particular album is set to private or not.
Title: Re: problem uploading to gallery created by another admin
Post by: shortmort37 on December 21, 2010, 12:35:35 am
I am sorry to be delayed in my response.  I am now returning to this topic.

Please read the docs what the private albums feature does. It has no effect to what you described. My actual question was, if that particular album is set to private or not.

I see that I was confusing a private album (in Config) with personal gallery (in Groups).  I have since unchecked private in config; I want for all albums to be visible.

However, this has not affected the outcome.  I *still* cannot upload a file to an album my fellow GalleryAdmin has created, even though I have no more, or no less, privileges than he has.  That is:  I cannot do it, if I use "flash" (multiple) mode.  I can do it without problem, if I use single file mode.

It seems to this naive user, that if there were some sort of permissions problem, it wouldn't matter which mode I used; it would either fail, or succeed, both ways.  That it fails one way, and succeeds the other, suggests to me there is a bug.

Try it yourself.  Use the cpgtest account - it has the identical privileges as "Ron Keij", the creator of the album.  The album I have been uploading to (unsuccessfully with flash, successfully with single image mode) is "Curt Lambdin".
Title: Re: problem uploading to gallery created by another admin
Post by: shortmort37 on December 21, 2010, 04:58:42 am
I am sorry to be delayed in my response.  I am now returning to this topic.

I see that I was confusing a private album (in Config) with personal gallery (in Groups).  I have since unchecked private in config; I want for all albums to be visible.

However, this has not affected the outcome.  I *still* cannot upload a file to an album my fellow GalleryAdmin has created, even though I have no more, or no less, privileges than he has.  That is:  I cannot do it, if I use "flash" (multiple) mode.  I can do it without problem, if I use single file mode.

It seems to this naive user, that if there were some sort of permissions problem, it wouldn't matter which mode I used; it would either fail, or succeed, both ways.  That it fails one way, and succeeds the other, suggests to me there is a bug.

Try it yourself.  Use the cpgtest account - it has the identical privileges as "Ron Keij", the creator of the album.  The album I have been uploading to (unsuccessfully with flash, successfully with single image mode) is "Curt Lambdin".

It seems that there is something browser specific about this.  Using IE under Windows, I can upload a file to the "Curt Lambin" album, created by "Ron Keij".  Using either Chrome or Firefox under Ubuntu, I cannot using Flash mode; but I can to an album I've created!

...I feel like I'm flogging a dead horse at this point.  There's a lot about this that doesn't add up for me, but since I have a workaround (single file, non-flash mode) I'm going to abandon this topic and close it.
Title: Re: problem uploading to gallery created by another admin
Post by: Αndré on December 21, 2010, 09:21:14 am
I suppose this is a either a bridging issue or somehow related to your Coppermine settings, as I cannot replicate it in my (unbridged) testbed. If someone figures out what exactly doesn't work in that environment he can reply to this thread so we may fix it.