Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#5327 closed defect (fixed)

Failure to delete user after using pump api

Reported by: Jonas Haraldsson Owned by:
Priority: major Milestone:
Component: programming Keywords: api, db
Cc: tsyesika Parent Tickets:

Description

User account deletion will fail with:
IntegrityError: (IntegrityError) FOREIGN KEY constraint failed u'DELETE FROM core__users WHERE core__users.id = ?' (7,) if the user have authenticated a client through the pump api.

gmg 0.8 with sqlite db

Change History (3)

comment:1 by ayleph, 9 years ago

Cc: tsyesika added

CC'ing tsyesika on this one as it's related to the API. I haven't confirmed the error though.

comment:2 by Jessica Tallon, 9 years ago

Is this still an issue as a lot of database changes have occurred. Please test against the current master.

comment:3 by Loic Dachary, 9 years ago

Resolution: fixed
Status: newclosed

Manually created a new 0.8.1 mediagoblin instance and a user loic. Authenticated via PyPump as follows:

>>> from pypump import PyPump, Client
>>> client = Client(webfinger="loic@testpump.gmg.the.re", type="native", name="test.io")
>>> pump = PyPump(client=client, verifier_callback=simple_verifier)
Go to: http://testpump.gmg.the.re/oauth/authorize?oauth_token=6ds2MZFlDT0epYdwF2cxBj5TMJNHqy
Verifier: yDTFtqzMgcMkyOuYlYlolKEJP6h0nx
>>> me = pump.Person("loic@testpump.gmg.the.re")
>>> me.summary
u'Yop'
>>> 

On the machine running the mediagoblin instance:

Error: Failed to load processor shell-session
No macro or processor named 'shell-session' found

The problem no longer exists in 0.8.1.

Last edited 9 years ago by Loic Dachary (previous) (diff)
Note: See TracTickets for help on using tickets.