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

Fixing cloudfront signer logic, and changelog #5892

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RanVaknin
Copy link
Contributor

Fixing changelog and minor logic for #5862

@RanVaknin RanVaknin requested a review from a team as a code owner February 19, 2025 19:57
@RanVaknin RanVaknin changed the title Fixing cloudfront signer logic, and documentation Fixing cloudfront signer logic, and changelog Feb 19, 2025
@@ -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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@zoewangg zoewangg Feb 19, 2025

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 ;)

@RanVaknin RanVaknin force-pushed the fix-cloudfront-signer-logic-and-changelog branch from c946487 to 7dfc920 Compare February 19, 2025 22:54
@@ -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
Copy link
Contributor

@zoewangg zoewangg Feb 19, 2025

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 ;)

@RanVaknin RanVaknin enabled auto-merge February 20, 2025 00:17
@RanVaknin RanVaknin force-pushed the fix-cloudfront-signer-logic-and-changelog branch from 7dfc920 to 4606ece Compare February 24, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants