problem uploading to gallery created by another admin problem uploading to gallery created by another admin
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

problem uploading to gallery created by another admin

Started by shortmort37, December 09, 2010, 03:12:38 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

shortmort37

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

Αndré

Uploading to albums generated by you works as expected?

shortmort37

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

Αndré

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.

Αndré

Works as expected in my local testbed. Please upgrade to cpg1.5.10 and try again.

shortmort37

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

Jeff Bailey

Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

shortmort37

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

shortmort37

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

Αndré

Quote from: shortmort37 on November 25, 2010, 07:15:50 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
$this->admingroups = array(5);
to e.g.
$this->admingroups = array(5, 123);

shortmort37

Αndré, do you mean add the index value for phpBB3 Administrator on my board, as well as GalleryAdmin, to admingroups?

Αndré

Yes. As far I understood you replaced the default value '5' with your custom group's id. Just add both ids.

shortmort37

I changed it to (5, 8) [Administrator, GalleryAdmin] logged out, flushed my cache and logged back in.  Same issue.

Αndré

Please remove yourself from the GalleryAdmin group. Do you still have admin privileges in Coppermine?

shortmort37

No - when I remove GalleryAdmin from my group membership, I lose admin rights to Coppermine.

shortmort37

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?

Αndré

Enable debug mode and post the debug output of both users.

shortmort37

Here they are...  RonKeij successfully uploads, Faulkner does not.

Αndré

Please try what happens when you remove Faulkner from the groups
            [2] => 105
            [3] => 104

shortmort37

Quote from: Αndré on December 12, 2010, 07:18:01 PM
Please try what happens when you remove Faulkner from the groups
            [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.