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
The config documentation configuration here specifies micronaut.object-storage.aws.enabled as a boolean flag, and it defaults to true. So setting this as true in the YAML, such as:
Setting the value as true in the YAML results in two AwsS3Operations beans being in scope for creation - one named "default", and one malformed one named "enabled" that has invalid configuration associated with it.
Copying the existing AwsS3Operations bean class, and mark it with @context for eager initialisation at startup, i.e.
@Context
@EachBean(AwsS3Configuration.class)
@Requires(condition = ToggeableCondition.class)
@Requires(beans = AwsS3Configuration.class)
@Replaces(AwsS3Operations.class)
public class AwsS3OperationsNew implements ObjectStorageOperations<
PutObjectRequest.Builder, PutObjectResponse, DeleteObjectResponse> {
...rest of class here...
Set a breakpoint in the constructor of the new class, and start the application. The constructor will be called twice, with one invocation including a malformed configuration bean argument named "enabled"
Environment Information
No response
Example Application
No response
Version
4.3.1
The text was updated successfully, but these errors were encountered:
Expected Behavior
The config documentation configuration here specifies
micronaut.object-storage.aws.enabled
as a boolean flag, and it defaults to true. So setting this as true in the YAML, such as:Should be the same as omitting it, such as:
Actual Behaviour
Setting the value as true in the YAML results in two AwsS3Operations beans being in scope for creation - one named "default", and one malformed one named "enabled" that has invalid configuration associated with it.
Steps To Reproduce
Environment Information
No response
Example Application
No response
Version
4.3.1
The text was updated successfully, but these errors were encountered: