Can't delete git repository with access tokens
Bug #1964800 reported by
Ar Rakin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Colin Watson |
Bug Description
Hi Admins!
Please delete the following git repo:
https:/
I was unable to delete this repo, because the server returns an error.
Thank you!
Related branches
~cjwatson/launchpad:fix-delete-related-access-tokens
Merged
into
launchpad:master
- Jürgen Gmach: Approve
-
Diff: 12 lines (+1/-0)1 file modifieddatabase/schema/security.cfg (+1/-0)
~cjwatson/launchpad:delete-related-access-tokens
Merged
into
launchpad:master
- Jürgen Gmach: Approve
-
Diff: 36 lines (+14/-0)2 files modifiedlib/lp/code/model/gitrepository.py (+1/-0)
lib/lp/code/model/tests/test_gitrepository.py (+13/-0)
Changed in launchpad: | |
status: | Triaged → In Progress |
assignee: | nobody → Colin Watson (cjwatson) |
To post a comment you must log in.
Attempting to delete this crashed with:
Traceback (most recent call last): .net/production /launchpad- rev-81acd06336f 3c4be8f28a2213f 7a64912593402d/ env/lib/ python3. 5/site- packages/ storm/exception s.py", line 165, in wrap_exceptions .net/production /launchpad- rev-81acd06336f 3c4be8f28a2213f 7a64912593402d/ env/lib/ python3. 5/site- packages/ storm/database. py", line 187, in wrapper IntegrityError: update or delete on table "gitrepository" violates foreign key constraint "accesstoken_ git_repository_ fkey" on table "accesstoken"
File "/srv/launchpad
yield
File "/srv/launchpad
return attr(*args, **kwargs)
psycopg2.
DETAIL: Key (id)=(125807) is still referenced from table "accesstoken".