Closed nickstanish closed 2 years ago
Delete Object breaks if / is present in objectId: for example arn:aws:s3:::bucket/123
/
objectId
arn:aws:s3:::bucket/123
{"message":"Path not supported by Algolia REST API. Please have a look at http://www.algolia.com/doc/rest_api for the list of valid commands","status":404}
Acceptable Characters for ObjectId states that objectId can "Contain any character", and the Algolia REST API has several routes with objectId as a parameter.
Currently it appears that only Get Object handles url encoding the objectId https://github.com/algolia/algoliasearch-client-java-2/blob/9df8d4f4a0d5ae7e92921e17ff43607fa5424664/algoliasearch-core/src/main/java/com/algolia/search/SearchIndex.java#L185
Delete and Partial Update do not url encode the objectId
Delete Object breaks if
/
is present inobjectId
: for examplearn:aws:s3:::bucket/123
Description
Acceptable Characters for ObjectId states that
objectId
can "Contain any character", and the Algolia REST API has several routes withobjectId
as a parameter.Currently it appears that only Get Object handles url encoding the
objectId
https://github.com/algolia/algoliasearch-client-java-2/blob/9df8d4f4a0d5ae7e92921e17ff43607fa5424664/algoliasearch-core/src/main/java/com/algolia/search/SearchIndex.java#L185Delete and Partial Update do not url encode the
objectId
Steps To Reproduce
arn:aws:s3:::bucket/123