Opened 9 years ago

Closed 8 years ago

Last modified 8 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:


User account deletion will fail with:
IntegrityError: (IntegrityError) FOREIGN KEY constraint failed u'DELETE FROM core__users WHERE = ?' (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, 8 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="", type="native", name="")
>>> pump = PyPump(client=client, verifier_callback=simple_verifier)
Go to:
Verifier: yDTFtqzMgcMkyOuYlYlolKEJP6h0nx
>>> me = pump.Person("")
>>> me.summary

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 8 years ago by Loic Dachary (previous) (diff)
Note: See TracTickets for help on using tickets.