Updating importer with ssl_* options along with other options fails "Cannot update 'config.remove_missing' and 'config' at the same time"
Trying to update a repository's importer:
and specifying some options such as remove_missing along with ssl_client_cert, ssl_client_key, and ssl_ca_cert will fail with:
OperationError: Could not save document (Cannot update 'config.remove_missing' and 'config' at the same time)
with the body that I have attached. If you update the 3 ssl_* options separately, and then update everything else in a 2nd call, it works just fine.
This was seen in 2.12.1
#2 Updated by ttereshc over 4 years ago
I suspect this is something to do with simultaneous update of a MongoDB document itself and another MongoDB document embedded in it. Such combination is not allowed, AFAIK.
The solution for the similar issue before was to introduce additional save. Save document with embedded updates only and then save one more time the document as a whole.
#6 Updated by bmbouter over 2 years ago
- Status changed from NEW to CLOSED - WONTFIX
Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.
Please register to edit this issue