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

[PR #9057/c71f662d backport][stable-9] Redfish: Added handling for trailing slashes in URIs when extracting member identifiers #9078

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Oct 29, 2024

This is a backport of PR #9057 as merged into main (c71f662).

SUMMARY

Some implementations have trailing slashes in their URIs. While most of this module's code does not rely on exact URIs, some places will take the last URI segment using the split function when determining identifiers for collection members. In these cases, it'll be an empty string. Specifically for volume management, the split function was assuming trailing slashes were always present.

The change here always removes trailing slashes before trying to extract member identifiers.

Fix #9047

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

redfish_utils

…member identifiers (#9057)

Signed-off-by: Mike Raineri <[email protected]>
(cherry picked from commit c71f662)
@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added backport bug This issue/PR relates to a bug module_utils module_utils new_contributor Help guide this first time contributor plugins plugin (any type) labels Oct 29, 2024
@felixfontein felixfontein merged commit beff406 into stable-9 Oct 29, 2024
141 checks passed
@felixfontein felixfontein deleted the patchback/backports/stable-9/c71f662d55d5fb931ab3817a2e627fd357f76ce2/pr-9057 branch October 29, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport bug This issue/PR relates to a bug module_utils module_utils new_contributor Help guide this first time contributor plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants