bugGNU FM - Bugs: bug #26569, session expiry produces db...

 
 

bug #26569: session expiry produces db constrinat error rather than BADSESSION

Submitted by:  Michael Gratton <mjog>
Submitted on:  Thu 14 May 2009 07:15:14 AM UTC  
 
Category: gnukebox/turtleSeverity: 3 - Normal
Item Group: ScrobblingStatus: Fixed
Privacy: PublicAssigned to: Jørgen Bøhnsdalen <jurgbohn>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 14 May 2009 03:43:34 PM UTC, comment #3:

Fixed (in theory) in r1567.

Jørgen Bøhnsdalen <jurgbohn>
Project MemberIn charge of this item.
Thu 14 May 2009 12:10:12 PM UTC, comment #2:

Yes, we should absolutely do a session check first.

Clint Adams <clint>
Project Member
Thu 14 May 2009 07:17:19 AM UTC, comment #1:

Ah, sorry, the complete error is:

> postgres7 error: [-1: ERROR: insert or update on table
> "now_playing" violates foreign key constraint
> "now_playing_sessionid_fkey


Michael Gratton <mjog>
Thu 14 May 2009 07:15:14 AM UTC, original submission:

It seems like when your session expires, rather than returning a response containing BADSESSION as per the last.fm API submission docs, the following text is returned:

> -1: ERROR: insert or update on table "now_playing" violates
> foreign key constraint "now_playing_sessionid_fkey"


This is breaks clients since they don't recognise that the session has expired and hence do not attempt to obatina new one.

Michael Gratton <mjog>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jurgbohn (Posted a comment)
  • -unavailable- added by clint (Posted a comment)
  • -unavailable- added by mjog (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 03 Jun 2009 09:41:09 PM UTCjurgbohnStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Thu 14 May 2009 03:43:34 PM UTCjurgbohnStatusConfirmed=>Ready For Test
      Assigned toNone=>jurgbohn
    Thu 14 May 2009 12:10:12 PM UTCclintStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1