You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code Redundancy The logic to prepend 'redis://' to the URI if it does not match the pattern is duplicated in both 'redis-dump' and 'redis-load'. Consider abstracting this logic into a shared method to avoid code duplication and facilitate easier maintenance.
Code Redundancy Similar to the issue in 'redis-dump', the logic to prepend 'redis://' to the URI if it does not match the pattern is duplicated here. Abstracting this logic into a shared method would improve code maintainability.
Modify the URI prefix logic to correctly handle both 'redis' and 'rediss' protocols
To support both 'redis' and 'rediss' (Redis over SSL) protocols, ensure that the URI prefix is correctly set based on the existing protocol in obj.global.uri. Instead of always prepending 'redis://', check if 'rediss://' is required.
Why: The suggestion correctly addresses the need to handle both 'redis' and 'rediss' protocols, ensuring the URI is properly formatted for secure and non-secure connections. This is a significant improvement for robustness.
9
Ensure correct URI formatting for both 'redis' and 'rediss' protocols
To avoid potential issues with URI manipulation, refactor the code to prepend the correct protocol ('redis://' or 'rediss://') based on the existing URI. This ensures that the URI is correctly formatted for both secure and non-secure Redis connections.
Why: The suggestion ensures that the URI is correctly formatted for both secure and non-secure Redis connections, which is crucial for avoiding potential issues with URI manipulation. This enhances the reliability of the code.
I'm not sure if the commit signing needs to be done by me or a maintainer. I don't have it set up and I'm on my way out the door on leave, so if I need to do anything I'm sorry but it won't happen until September. (Feel free to close this PR, make your own, whatever.)
simple patch sed -i 's/redis:/rediss?:/g' "/var/lib/gems/3.1.0/gems/redis-dump-0.6.1/exe/redis-dump" and sed -i 's/redis:/rediss?:/g' "/var/lib/gems/3.1.0/gems/redis-dump-0.6.1/exe/redis-load"
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
redis-dump rediss://some-host
Just Works.PR Type
Enhancement
Description
rediss
(Redis over TLS) URLs in bothredis-dump
andredis-load
.redis
andrediss
schemes.Changes walkthrough 📝
redis-dump
Add support for `rediss` (Redis over TLS) URLs in redis-dump
exe/redis-dump
rediss
scheme.redis
andrediss
schemes.redis-load
Add support for `rediss` (Redis over TLS) URLs in redis-load
exe/redis-load
rediss
scheme.redis
andrediss
schemes.