#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 , 9 years ago
Cc: | added |
---|
comment:2 by , 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 , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
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:
The problem no longer exists in 0.8.1.
CC'ing tsyesika on this one as it's related to the API. I haven't confirmed the error though.