Skip to content

Ruby bindings: partial_update returns no task data (Katello) #7705

@ianballou

Description

@ianballou

Version

      "versions": {
        "deb": "3.8.1",
        "rpm": "3.35.2",
        "core": "3.105.4",
        "file": "3.105.4",
        "ostree": "2.6.0",
        "python": "3.27.2",
        "ansible": "0.29.7",
        "certguard": "3.105.4",
        "container": "2.27.6"
      }

Pulpcore bindings version: 3.105.5
Pulp RPM bindings version: 3.35.2

Describe the bug
When updating a remote via the Ruby bindings, the data returned is nil:

[11] pry(main)> task = api.remotes_api.partial_update_with_http_info(remote.pulp_href, PulpRpmClient::PatchedrpmRpmRemote.new(name: "test-#{rand(9999)}"))

=> [#<PulpRpmClient::RpmRpmRemoteResponse:0x00007f325fd1c7f0 @name=nil, @url=nil>,
 202,
 {"date"=>"Fri, 08 May 2026 21:59:36 GMT",
  "server"=>"gunicorn",
  "content-type"=>"application/json",
  "vary"=>"Accept,Cookie",
  "allow"=>"GET, PUT, PATCH, DELETE, HEAD, OPTIONS",
  "x-frame-options"=>"DENY",
  "content-length"=>"67",
  "x-content-type-options"=>"nosniff",
  "referrer-policy"=>"same-origin",
  "cross-origin-opener-policy"=>"same-origin",
  "correlation-id"=>"b2d160cf416f469ca32effc3159f4d3d",
  "access-control-expose-headers"=>"Correlation-ID",
  "via"=>"1.1 toads.example.com"}]

See the response returned no task even though the code is a 202.

Katello currently has a patch to deal with this. We had it already in place before upgrading to 3.105 and left it in, not knowing that once it was removed we'd still have a bug.

To Reproduce
Follow the commands I posted above - update a remote, or anything else that uses the polymorphic update response.

Expected behavior
We can see the task and track it.

Additional context
Add any other context about the problem here. Please provide links to any previous discussions via Discourse or Bugzilla.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions