We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
BaseClient::GetPresignedPostFormData
unable to get presigned post form data; valid policy must be provided
Because !policy is always true here:
!policy
minio-cpp/src/baseclient.cc
Line 1070 in f5132e0
because the policy should be valid if it has an expiration, not if it lacks one -- this change is needed:
diff --git a/include/miniocpp/args.h b/include/miniocpp/args.h index 2010b56..8132771 100644 --- a/include/miniocpp/args.h +++ b/include/miniocpp/args.h @@ -570,7 +570,7 @@ struct PostPolicy { ~PostPolicy() = default; - explicit operator bool() const { return !bucket.empty() && !expiration_; } + explicit operator bool() const { return !bucket.empty() && (bool) expiration_; } error::Error AddEqualsCondition(std::string element, std::string value); error::Error RemoveEqualsCondition(std::string element);
The text was updated successfully, but these errors were encountered:
@ijoseph feel free to send a PR
Sorry, something went wrong.
fixed by #137
No branches or pull requests
Because
!policy
is always true here:minio-cpp/src/baseclient.cc
Line 1070 in f5132e0
because the policy should be valid if it has an expiration, not if it lacks one -- this change is needed:
The text was updated successfully, but these errors were encountered: