Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #35410 - Fix a pathing issue on exports #10223

Merged
merged 1 commit into from
Aug 23, 2022

Conversation

parthaa
Copy link
Contributor

@parthaa parthaa commented Aug 3, 2022

What are the changes introduced in this pull request?

When exporting a content view version with a space its name we include that space in the generated path. Its not necessarily a bug but ideally we'd like path to be something like ->
/var/lib/pulp/exports/Test_Organization/Test_CV/1.0/2022-08-03T00-17-11-00-00/metadata.json
vs
/var/lib/pulp/exports/Test_Organization/Test CV/1.0/2022-08-03T00-17-11-00-00/metadata.json

The cv name without and with space.

Considerations taken when implementing this change?

This issue was introduced when the previous syncable export work got merged and got caught on bats tests. So useful.

What are the testing steps for this pull request?

  • Create a CV name with a space in it
  • Add a simple custom repo or rh repo with immediate download policy
  • Publish
  • Export the content view version via hammer.
  • hammer content-export complete version --id=<cvv-id>

Before this PR, you 'd see something like

/var/lib/pulp/exports/Test_Organization/Test CV/1.0/2022-08-03T00-17-11-00-00/metadata.json with the space

After this PR

/var/lib/pulp/exports/Test_Organization/Test_CV/1.0/2022-08-03T00-17-11-00-00/metadata.json with the space

@theforeman-bot
Copy link

Issues: #34861

@ianballou
Copy link
Member

Looks like a VCR error was hit

@parthaa
Copy link
Contributor Author

parthaa commented Aug 17, 2022

[test katello]

1 similar comment
@parthaa
Copy link
Contributor Author

parthaa commented Aug 20, 2022

[test katello]

@parthaa parthaa force-pushed the fix-paths branch 2 times, most recently from 50c8076 to 4ffaf7b Compare August 22, 2022 18:02
@parthaa parthaa changed the title Refs #34861 - Fix a pathing issue on exports Fixes #35410 - Fix a pathing issue on exports Aug 22, 2022
@parthaa parthaa force-pushed the fix-paths branch 3 times, most recently from 978347c to cc57a53 Compare August 22, 2022 19:04
Copy link
Member

@sjha4 sjha4 left a comment

Choose a reason for hiding this comment

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

Change looks good and works as advertised.
Before change: /var/lib/pulp/exports/Default_Organization/An example content view/1.0/2022-08-23T15-08-26-00-00
After change: /var/lib/pulp/exports/Default_Organization/An_example_content_view/1.0/2022-08-23T15-07-33-00-00

@parthaa parthaa merged commit 491e8af into Katello:master Aug 23, 2022
@parthaa parthaa deleted the fix-paths branch August 23, 2022 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants