-
Notifications
You must be signed in to change notification settings - Fork 486
Closed
Labels
Description
Currently, GitLabApi mutates itself when caller wants to use sudo functionality, but.
- This cannot be safely used in multithreaded environment
GitLabApidoesn't provide any means to clone its instance (so cloned one would be mutated for sudo and original one kept untouched)
Ideally, sudo should be configurable per-request, giving the same flexibility that is available if user doesn't use gitlab4j-api at all and directly issues HTTP requests to GitLab, without modifying GitLabApi instance.