Actions
Bug #5462
opencreate_repo api fails with celery enabled
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
13.04.2018
Due date:
% Done:
0%
Estimated time:
Sorting:
Commit Number:
Affected Version:
Description
Calling create_repo (via rhodecode-api, with repo_name:example and repo_type:hg) returns a false positive 'Created new repository' result frontend, and mysql query error backend.
The async task rhodecode/lib/celerylib/tasks.py:create_repo()
receives a variable cur_user
containing the whole user as a dict, not a class object (which is supported by instance resolver) or just plain username as the ORM expects.
The patch included is just a nasty hack and doesn't fix what is probably a wider celery serialisation problem.
Files
Actions