-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Bucket.getOwner() in the Java API is not able to parse the new size of the owner's name. A null pointer exception is raised.
Expected Behavior
You should see an object of the Owner
in the Java in version 1.4.0 while a crash with a null pointer exception in localstack version 2.0.0
How are you starting LocalStack?
With a docker-compose file
Steps To Reproduce
- To replicate, use the following docker-compose file, twice, once with version 1.4.0, and the other with 2.0.0
Each time run the following command:
2. awslocal --endpoint="http://localhost:8010" s3api list-buckets
In the first you should get
{
"Buckets": [],
"Owner": {
"DisplayName": "webfile",
"ID": "bcaf1ffd86f41161ca5fb16fd081034f"
}
}
In the second you should get
{
"Buckets": [],
"Owner": {
"DisplayName": "webfile",
"ID": "75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a"
}
}
Notice the difference in the large string in the ID.
- create a new bucket:
awslocal --endpoint="http://localhost:8010" s3 mb s3://mybucket
- Use java API to get the owner of the bucket which should map to the behavior here.
Docker file:
version: '3.0'
services:
localstack:
container_name: localstack
image: localstack/localstack:2.0.0 # or switch to 1.4.0
network_mode: bridge
environment:
- DEBUG=1
- DEFAULT_REGION=us-east-1
- LAMBDA_EXECUTOR=docker
- LAMBDA_REMOTE_DOCKER=true
- LAMBDA_REMOVE_CONTAINERS=true
- DOCKER_HOST=unix:///var/run/docker.sock
- LOCALSTACK_API_KEY=XXXXXX
volumes:
- ./localstack/bootstrap:/opt/bootstrap/
ports:
- '8010:4566'
Environment
- OS:Ubuntu 22.04.2 LTS
- LocalStack: The problem is found since 2.0.0
Anything else?
No response