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

 
 

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

Submitter:  Michael Gratton <mjog>
Submitted:  Thu 14 May 2009 07:15:14 AM UTC
   
 
Category:  gnukebox/turtle Severity:  3 - Normal
Item Group:  Scrobbling Status:  Fixed
Privacy:  Public Assigned to:  jurgbohn
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Fixed (in theory) in r1567.

Jørgen Bøhnsdalen <jurgbohn>
Group Member
Thu 14 May 2009 12:10:12 PM UTC, comment #2: 

Yes, we should absolutely do a session check first.

Clint Adams <clint>
Group 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-06-03 jurgbohn StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2009-05-14 jurgbohn StatusConfirmed Ready For Test
        Assigned toNone jurgbohn
    2009-05-14 clint StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code