Skip to content

First fix for pip install issue #6792#273

Merged
dkliban merged 1 commit intopulp:masterfrom
gerrod3:6792
May 22, 2020
Merged

First fix for pip install issue #6792#273
dkliban merged 1 commit intopulp:masterfrom
gerrod3:6792

Conversation

@gerrod3
Copy link
Copy Markdown
Contributor

@gerrod3 gerrod3 commented May 21, 2020

Fixed published metadata relative_path names for the index and project metadata that was causing the pulp contentapp to incorrectly render the wrong html.
Contentapp still incorrectly sets the html's headers causing pip install to fail with the following:

Downloading http://pulp3-source-fedora31.localhost.example.com/pulp/content/foo/simple/ (202 bytes)
ERROR: Cannot unpack file /tmp/pip-unpack-qbmyk3ej/simple.bin (downloaded from /tmp/pip-req-build-or9d4dk4, content-type: application/octet-stream); cannot detect archive format
ERROR: Cannot determine archive format of /tmp/pip-req-build-or9d4dk4

ref #6792
https://pulp.plan.io/issues/6792

@gerrod3
Copy link
Copy Markdown
Contributor Author

gerrod3 commented May 21, 2020

This should be the second fix required to close #6792: pulp/pulpcore#715

Comment thread CHANGES/6792.doc Outdated
@@ -0,0 +1 @@
Added "index.html/" to the relative_path field for both project_metadata and index_metadata.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's index.html without the trailing '/'

…t metadata that was causing the pulp contentapp to incorrectly render the wrong html. Fixed generated links in simple_index_template.

fixes #6792
https://pulp.plan.io/issues/6792
@dkliban
Copy link
Copy Markdown
Member

dkliban commented May 22, 2020

I manually test this and it works!

@dkliban dkliban merged commit b848714 into pulp:master May 22, 2020
@gerrod3 gerrod3 deleted the 6792 branch May 22, 2020 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants