-
Notifications
You must be signed in to change notification settings - Fork 877
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
Fixing cloudfront signer logic, and changelog #5892
base: master
Are you sure you want to change the base?
Conversation
@@ -258,7 +258,7 @@ public SignedUrl getSignedUrlWithCustomPolicy(Consumer<CustomSignerRequest.Build | |||
public SignedUrl getSignedUrlWithCustomPolicy(CustomSignerRequest request) { | |||
String resourceUrl = request.resourceUrl(); | |||
try { | |||
String resourceUrlPattern = StringUtils.isEmpty(request.resourceUrlPattern()) | |||
String resourceUrlPattern = request.resourceUrlPattern() == null |
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.
Don't we need to update tests accordingly?
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.
No. There is no test case that checks for ""
specifically.
Both before and after the change this codepath never runs into an issue with null because it uses resourceUrl
as a backfill which is guaranteed to be not null or empty.
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.
Gotcha, should we have had tests though ;)
c946487
to
7dfc920
Compare
@@ -258,7 +258,7 @@ public SignedUrl getSignedUrlWithCustomPolicy(Consumer<CustomSignerRequest.Build | |||
public SignedUrl getSignedUrlWithCustomPolicy(CustomSignerRequest request) { | |||
String resourceUrl = request.resourceUrl(); | |||
try { | |||
String resourceUrlPattern = StringUtils.isEmpty(request.resourceUrlPattern()) | |||
String resourceUrlPattern = request.resourceUrlPattern() == null |
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.
Gotcha, should we have had tests though ;)
7dfc920
to
4606ece
Compare
|
Fixing changelog and minor logic for #5862