Project

Profile

Help

Issue #4904

closed

pulp-file_client might be encoding request URLs incorrectly

Added by jdjeffers about 3 years ago. Updated about 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
API Bindings
Sprint:
Sprint 54
Quarter:

Description

While working with the latest pulp-file_client ruby gem we observed issues with URL formatting:

From the client side:

PulpFileClient::ApiError: Error message: the server returns an error
HTTP status code: 404
Response headers: {"Server"=>"nginx/1.12.2", "Date"=>"Mon, 03 Jun 2019 19:40:07 GMT", "Content-Type"=>"text/html", "Content-Length"=>"77", "Connection"=>"keep-alive", "X-Frame-Options"=>"SAMEORIGIN"}
Response body: <h1>Not Found</h1><p>The requested resource was not found on this server.</p>
    /home/vagrant/projects/katello/app/lib/pulp/v3/api.rb:29:in `remotes_file_file_delete'
    /home/vagrant/projects/katello/app/services/katello/pulp3/repository/file.rb:40:in `delete_remote'
    /home/vagrant/projects/katello/test/support/pulp3_support.rb:26:in `ensure_creatable'
    /home/vagrant/projects/katello/test/services/katello/pulp3/file_unit_test.rb:13:in `setup'
    /home/vagrant/projects/katello/test/support/vcr.rb:24:in `block in run'
    /home/vagrant/projects/katello/test/support/vcr.rb:23:in `run'

And on the pulp3 server side:

gunicorn[2934]: pulp: django.request:WARNING: Not Found: /%2Fpulp%2Fapi%2Fv3%2Fremotes%2Ffile%2Ffile%2F0bbe78bc-eea8-4103-bc2f-eede6a1c8c7a%2F

Related issues

Has duplicate Pulp - Issue #4906: Cannot read remote using remotes_file_file_read methodCLOSED - DUPLICATEActions

Also available in: Atom PDF