Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Adding to favorites logs me out (sort of)  (Read 26243 times)

0 Members and 1 Guest are viewing this topic.

TomG

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 30
    • Tom Gardner Photography
Adding to favorites logs me out (sort of)
« on: December 01, 2006, 05:56:05 pm »

I have Coppermine 1.4.9 embedded in PostNuke (pnCPG) and when I add an image to my Favorites it takes me to another image page. Clicking on 'My Favorites' shows' Album does not exist' and also shows me as being not logged in. This state persists if I click another link. However, if I use Back to go back to the image page I was on when I clicked 'Add to Favorites', it shows me as logged in, with all my admin buttons, and THIS state persists when I click another link. Clicking on 'My Favorites' then shows all my favorites, including the image I just added!

So there seems to be a bug that messes up the logged-in state somewhere. It didn't used to do this in past versions, I just discovered this now.

Cheers,

Tom

TomG

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 30
    • Tom Gardner Photography
Re: Adding to favorites logs me out (sort of)
« Reply #1 on: December 01, 2006, 06:43:08 pm »

Just to add, upgrading to 1.4.10 does not fix it.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adding to favorites logs me out (sort of)
« Reply #2 on: December 02, 2006, 07:34:52 am »

Posting a link and non-admin test user account might help.
Logged

TomG

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 30
    • Tom Gardner Photography
Re: Adding to favorites logs me out (sort of)
« Reply #3 on: August 04, 2008, 02:53:34 pm »

Hiya,

Just reviewing my past issues and I find that this problem still occurs.

Tom

Nibbler

  • Guest
Re: Adding to favorites logs me out (sort of)
« Reply #4 on: August 04, 2008, 03:27:01 pm »

Then do as suggested. Little point posting otherwise.
Logged

TomG

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 30
    • Tom Gardner Photography
Re: Adding to favorites logs me out (sort of)
« Reply #5 on: August 04, 2008, 06:33:01 pm »

Sorry about that- just thought it might have been a problem you had come accross and knew a fix. I'll pm you login details for my site.

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
Re: Adding to favorites logs me out (sort of)
« Reply #6 on: August 04, 2008, 10:17:44 pm »

Does this also happen when you access Coppermine outside Postnuke?
Logged

TomG

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 30
    • Tom Gardner Photography
Re: Adding to favorites logs me out (sort of)
« Reply #7 on: August 05, 2008, 12:41:59 am »

No, it works perfectly using a direct login. I had never tried this as I only ever access it via PN. If I create a new user within Coppermine and log in directly as that user, it works fine with favorites.

TomG

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 30
    • Tom Gardner Photography
Re: Adding to favorites logs me out (sort of)
« Reply #8 on: August 05, 2008, 12:52:14 am »

If I enter coppermine from PN, save an image to favorites (which appears to log me out), then log in as a standalone coppermine user, then use the back button in browser, it sees me as my original user again. If I then save an other image to favorites, it reverts to the second user again! It kees the first user profile active for any task until I add the favorite. It seems to be keeping two users logged at the same time, but only the saving of favorites triggers the native coppermine user (which usually is not logged in or even exist)

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adding to favorites logs me out (sort of)
« Reply #9 on: August 05, 2008, 08:25:06 am »

I'll pm you login details for my site.
You're not supposed to PM the login details, but post them publicly. I said
Posting a link and non-admin test user account might help.
, not "PMing the devs a link and test user account might help". Do as suggested!
Logged

TomG

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 30
    • Tom Gardner Photography
Re: Adding to favorites logs me out (sort of)
« Reply #10 on: August 05, 2008, 12:23:15 pm »

OK,

login details from Postnuke at www.edinburghphotographicsociety.co.uk:
user: testuser
pass: epstest

login from Coppermine directly:
user: test1
pass: epstest

Thanks for your help.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adding to favorites logs me out (sort of)
« Reply #11 on: August 05, 2008, 04:30:46 pm »

Gallery URL is http://www.edinburghphotographicsociety.co.uk/coppermine/ then? There's something fishy with it, as it says "logout [Guest]" when acceesing the gallery vie the link in your nuke portal. I have no idea about pnCPG, but I don't think that this is supposed to happen. Separate logins for nuke and coppermine are not supposed to exist neither afaik. This is something that is beyond my scope though - maybe Cas can help.
Logged

TomG

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 30
    • Tom Gardner Photography
Re: Adding to favorites logs me out (sort of)
« Reply #12 on: August 05, 2008, 06:27:56 pm »

If you access coppermine via postnuke without having first logged in to postnuke, it logs you into coppermine as Guest.

Nibbler

  • Guest
Re: Adding to favorites logs me out (sort of)
« Reply #13 on: August 05, 2008, 06:37:19 pm »

Does changing your site url in Coppermine config to http://www.edinburghphotographicsociety.co.uk/coppermine  (ie. with the www.) fix it?
Logged

TomG

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 30
    • Tom Gardner Photography
Re: Adding to favorites logs me out (sort of)
« Reply #14 on: August 05, 2008, 06:47:31 pm »

Yup, that did it! Thanks  :) I've no idea why I put the full url in without the www.

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
Re: Adding to favorites logs me out (sort of)
« Reply #15 on: August 05, 2008, 07:27:56 pm »

Good to see that it has been fixed, was just trying it out on the test-account and it worked as expected.
Logged
Pages: [1]   Go Up
 

Page created in 0.037 seconds with 19 queries.