-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Redfish: Added handling for trailing slashes in URIs when extracting member identifiers #9057
Redfish: Added handling for trailing slashes in URIs when extracting member identifiers #9057
Conversation
…member identifiers Signed-off-by: Mike Raineri <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mraineri , thanks for your contribution! :-)
Just a minor adjustment on the changelog fragment, for the sake of consistency, other than that it LGTM
Co-authored-by: Alexei Znamensky <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, only spotted that now.
Co-authored-by: Felix Fontein <[email protected]>
Backport to stable-9: 💚 backport PR created✅ Backport PR branch: Backported as #9078 🤖 @patchback |
…member identifiers (#9057) Signed-off-by: Mike Raineri <[email protected]> (cherry picked from commit c71f662)
…ailing slashes in URIs when extracting member identifiers (#9078) Redfish: Added handling for trailing slashes in URIs when extracting member identifiers (#9057) Signed-off-by: Mike Raineri <[email protected]> (cherry picked from commit c71f662) Co-authored-by: Mike Raineri <[email protected]>
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, thesplit
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
COMPONENT NAME
redfish_utils