MinIO for S3Client.getObjectAttributes() request returns JSON but AWS SDK expects XML and fails

0

AWS SDK for Java. MinIO, for S3Client.getObjectAttributes() request returns JSON but AWS SDK expects XML and fails How to configure AWS SDK or MinIO to work for S3Client.getObjectAttributes()? MinIO at https://min.io/ - offers S3 compatible object storage.

gefragt vor 2 Jahren935 Aufrufe
1 Antwort
0
Akzeptierte Antwort

Answer: MinIO server just didn't implemented getObjectAttributes() request. Response for this request is content of the object, not its attributes. It was json file; so, JSON object was returned.

To obtain S3 object metadata instead of getObjectAttributes() you could use headObject().

beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen