The Onboarding service fails to onboard tenants when only EFS is configured as a FileSystem
Reproduction Steps
Install the latest version of SaaS Boost.
Configure an AppConfig according to the getting-started instructions
Upload an image once the ECR repository is created
Try to onboard a tenant
What did you expect to happen?
The tenant should successfully onboard
What actually happened?
The onboarded moved to "Validated", but never past. Looking into the CloudWatch logs for onboarding-events shows:
java.lang.NullPointerException: java.lang.NullPointerException
java.lang.NullPointerException
at com.amazon.aws.partners.saasfactory.saasboost.OnboardingService.handleOnboardingTenantAssigned(OnboardingService.java:574)
at com.amazon.aws.partners.saasfactory.saasboost.OnboardingService.handleOnboardingEvent(OnboardingService.java:354)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
This is happening because the configureManagedAd is not actually part of the Filesystem object if EFS is selected. View the filesystem key in my appConfig:
The Onboarding service fails to onboard tenants when only EFS is configured as a FileSystem
Reproduction Steps
What did you expect to happen?
The tenant should successfully onboard
What actually happened?
The onboarded moved to "Validated", but never past. Looking into the CloudWatch logs for onboarding-events shows:
The code in question at this line is:
This is happening because the
configureManagedAd
is not actually part of the Filesystem object if EFS is selected. View the filesystem key in my appConfig:This fix for this should just be to include a Null check. working on it now.
Environment
Other
This is :bug: Bug Report