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
Sign encoded URLs #380
Sign encoded URLs #380
Conversation
Validate.isTrue(StringUtils.isEmpty(uri.getQuery()), | ||
"Query must be null or empty. URI: %s", uri); | ||
} | ||
Validate.isTrue(StringUtils.isEmpty(uri.getQuery()), |
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.
StringUtils.isEmpty
returns true for null
and empty strings
@@ -53,7 +56,7 @@ public void beforeClass() throws IOException { | |||
|
|||
mantaClient = new MantaClient(config); | |||
testPathPrefix = IntegrationTestConfigContext.generateBasePath(config, this.getClass().getSimpleName()); | |||
mantaClient.putDirectory(testPathPrefix, null); | |||
mantaClient.putDirectory(testPathPrefix, true); |
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.
This test case can't be run on its own without changing this to recursive putDirectory
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.
LGTM
@tjcelaya Thanks a lot for the fix! |
Resolves #379 and https://trac.cyberduck.io/ticket/10151
We should be using the encoded URL for signing, e.g.:
instead of