Skip to content

Unable to configure S3 running with Spring Boot 4 #1499

@espada-edalex

Description

@espada-edalex

Type: Bug

Component:
S3

Describe the bug

I have been testing the Spring Boot 4.0.0-RC1 upgrade and come across an issue with the S3 autoconfigure. The whenNonNull method has been removed in Spring Boot 4 and will now only call the method if the return isn't null (see: spring-projects/spring-boot@239f384).

I release this is an unreleased version of Spring Boot, but I couldn't see any other issues around v4 compatibility.

Sample

    An attempt was made to call a method that does not exist. The attempt was made from the following location:
    
        io.awspring.cloud.autoconfigure.s3.properties.S3Properties.toS3Configuration(S3Properties.java:205)
    
    The following method did not exist:
    
        'org.springframework.boot.context.properties.PropertyMapper$Source org.springframework.boot.context.properties.PropertyMapper$Source.whenNonNull()'
    
    The calling method's class, io.awspring.cloud.autoconfigure.s3.properties.S3Properties, was loaded from the following location:
    
        jar:file:/home/ubuntu/.m2/repository/io/awspring/cloud/spring-cloud-aws-autoconfigure/3.4.0/spring-cloud-aws-autoconfigure-3.4.0.jar!/io/awspring/cloud/autoconfigure/s3/properties/S3Properties.class
    
    The called method's class, org.springframework.boot.context.properties.PropertyMapper$Source, is available from the following locations:
    
        jar:file:/home/ubuntu/.m2/repository/org/springframework/boot/spring-boot/4.0.0-RC1/spring-boot-4.0.0-RC1.jar!/org/springframework/boot/context/properties/PropertyMapper$Source.class
    
    The called method's class hierarchy was loaded from the following locations:
    
        org.springframework.boot.context.properties.PropertyMapper.Source: file:/home/ubuntu/.m2/repository/org/springframework/boot/spring-boot/4.0.0-RC1/spring-boot-4.0.0-RC1.jar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions