Issue #2727
closedUpdating importer with ssl_* options along with other options fails "Cannot update 'config.remove_missing' and 'config' at the same time"
Description
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)
To reproduce:
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
Files
Updated by jsherril@redhat.com almost 6 years ago
- File request-750920.txt request-750920.txt added
Updated by ttereshc almost 6 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.
Updated by ttereshc almost 6 years ago
- Severity changed from 2. Medium to 3. High
- Triaged changed from No to Yes
Updated by mhrivnak almost 6 years ago
I understand from a meeting just now that Katello has a workaround in place, so this is not a blocker. Please correct that in case it's wrong.
Updated by bmbouter almost 4 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.