Skip to content

Unable to use AWS S3 locations with quotes in path #1545

@dimas-b

Description

@dimas-b

Describe the bug

Polaris fails to accept S3 locations that are valid in AWS, but contain " in the path.

For example: s3://example/pol"3/

To Reproduce

  1. Start Polaris
  2. Try to create catalog:
$ ./polaris --client-id *** --client-secret *** catalogs create polaris2 \
  --storage-type S3 \
  --default-base-location 's3://example-bucket-42/pol"2/' \
  --role-arn arn:aws:iam::11111111111:role/test --external-id ***

Actual Behavior

Exception when communicating with the Polaris server. IllegalArgumentException: Illegal character in path at index 26: s3://example-bucket-42/pol"2/

Expected Behavior

No exception

Additional context

The example location is considered valid in AWS UI. It is possible to create it and copy its S3 location in AWS UI.

System information

Local Polaris Server build as of commit 04c4f91

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions