Skip to content
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

Fix profile picture retrieval without key #54

Open
wjans opened this issue Aug 1, 2019 · 0 comments
Open

Fix profile picture retrieval without key #54

wjans opened this issue Aug 1, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@wjans
Copy link
Collaborator

wjans commented Aug 1, 2019

Profile pictures should not be fetched if the key is null.

java.lang.IllegalArgumentException: Key cannot be null
	at com.amazonaws.util.ValidationUtils.assertNotNull(ValidationUtils.java:37) ~[aws-java-sdk-core-1.11.125.jar:na]
	at com.amazonaws.util.ValidationUtils.assertStringNotEmpty(ValidationUtils.java:87) ~[aws-java-sdk-core-1.11.125.jar:na]
	at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:1330) ~[aws-java-sdk-s3-1.11.125.jar:na]
	at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:1243) ~[aws-java-sdk-s3-1.11.125.jar:na]
	at com.ixortalk.aws.s3.library.config.AwsS3Template.get(AwsS3Template.java:58) ~[ixortalk-aws-s3-library-1.1.0.jar:1.1.0]
	at com.ixortalk.authserver.web.rest.UserProfilePictureResource.lambda$getProfilePicture$0(UserProfilePictureResource.java:109) ~[classes/:na]
	at java.util.Optional.map(Optional.java:215) ~[na:1.8.0_181]
	at com.ixortalk.authserver.web.rest.UserProfilePictureResource.getProfilePicture(UserProfilePictureResource.java:107) ~[classes/:na]
	at com.ixortalk.authserver.web.rest.UserProfilePictureResource.getProfilePictureByLogin(UserProfilePictureResource.java:95) ~[classes/:na]```
@wjans wjans added the bug Something isn't working label Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant