Advanced search  

News:

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

Pages: [1]   Go Down

Author Topic: Coppermine 1.5.36 PHPBB 3.1.5 Issues during uploads - you do not have permission  (Read 3621 times)

0 Members and 1 Guest are viewing this topic.

DavidSpivey

  • Coppermine newbie
  • Offline Offline
  • Posts: 16

Myself and others have been having issues with what I assume is a cookie sync / cache issue between Coppermine and PHPBB. During multiple upload sessions, the users have been presented (seemingly randomly) with the message "Error - You do not have permission to access this page". This usually occurs after uploads are complete, during the time when users have been tagging and describing files. When we look above this error message, the Login key is showing, meaning coppermine does not think that the user is logged into PHPBB. However, when visiting the forum, the user is logged in, and has proper access to all features. If, after a few moments, the user refreshes a coppermine page, then coppermine will "wake up" and see the user was already logged in. However, the process the user was completing when the error message appeared (usually tagging and describing the uploads) has failed, and needs to be redone.

A similar problem occurs when clearing cookies (or using incognito mode) and logging in as administrator. If I log in and immediately click Config, I get the same error message. On the page where the error message occurs, I can refresh, and everything is cool.

We also have another issue. After bridging coppermine and PHPBB, I see no way to log in as the coppermine admin (for instance to globally change the form token lifetime). When I log out, and try to log in,
I am redirected to the PHPBB login page. When logging in as administrator for the PHPBB forum, I cannot globally change these parameters and see them stick for users.


Coppermine URL: http://bonanzatrails.com/gallery
PHPBB URL: http://bonanzatrails.com/forum
Cookie Prefix: phpbb3_ghjyq
Test account username: Imadummy
Test account password: Dummy123
Logged

DavidSpivey

  • Coppermine newbie
  • Offline Offline
  • Posts: 16

EDIT: It is not the form token lifetime I can't seem to get to stick. It's the number of columns per page on the thumbnails view. I can change it to 9 from 3, save it, and go back into config only to see that the change did not stay. It's back to 3 again.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15363

I couldn't find an obvious configuration glitch. Please grant upload permissions to the test users, so I can test what you described.
Logged

DavidSpivey

  • Coppermine newbie
  • Offline Offline
  • Posts: 16

Done. Sorry for that.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15363

I just uploaded an image and entered a title without an issue: http://bonanzatrails.com/gallery/displayimage.php?pid=435

Do you know a way to replicate the issue?
Logged

DavidSpivey

  • Coppermine newbie
  • Offline Offline
  • Posts: 16

Unfortunately, as I mentioned, the issue crops up seemingly randomly. I have had users who have uploaded entire albums of pictures in batches, and have been successful in describing and tagging the photos. Then, as they attempted to upload another batch, the error occurred. Immediately after tagging and describing the photos, when clicking on (I think) continue, the error would show itself. However, replicating the issue easily seems to be near impossible. I became frustrated just trying to see if I could make the problem occur. Yet if I don't try, it happens. Go figure.

At that time I had already seen that users were taking more time uploading and describing the photos than 15 minutes, so I increased the form token lifetime to an hour. Therefore, the token lifetime is not an issue.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15363

Please check if you/your users logged in to your board with a "Remember me" session or not. I assume if you don't check "Remember me", the session times out after some time with no activity in the board. E.g. while I logged in to your board yesterday (don't checked "Remember me"), phpBB created 3 cookies which all expire at Thu Sep 15 10:57:20 2016. Today, I'm logged out of your board, though the cookies still exist. I assume phpBB deleted the session in its database in the meantime. Additionally, I assume that phpBB refreshes the session lifetime while your users are active in the board. This doesn't happen if they're browsing just the gallery.

If the above assumption is correct, a "Remember me" session would fix the issue.

Logged

DavidSpivey

  • Coppermine newbie
  • Offline Offline
  • Posts: 16

That might make sense, all except for the fact that users who have explicitly used the remember me function (and almost never log out for any reason) are also having the problem.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15363

Unfortunately, I've currently no other idea.
Logged

DavidSpivey

  • Coppermine newbie
  • Offline Offline
  • Posts: 16

Well, thanks for trying at least.
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 20 queries.