Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Cannot set object metadata #93

Open
e-dorigatti opened this issue Aug 28, 2015 · 0 comments
Open

Cannot set object metadata #93

e-dorigatti opened this issue Aug 28, 2015 · 0 comments

Comments

@e-dorigatti
Copy link

Hello, my objects are created with the wrong content-type and I'd like to change that. The code runs fine and gives no errors, still the metadata is not changed. Here's my code, note that setAsPublicRead works and keys are indeed publicly accessible.

case Some(key) =>
          key.setAsPublicRead()

          key.metadata.setContentType("text/plain")

          val meta = key.getObjectMetadata
          meta.setContentType("text/plain")

          val userMeta = new java.util.HashMap[String, String]
          userMeta.put("test-key", "test-value")
          meta.setUserMetadata(userMeta)

          key.setObjectMetadata(meta)

Issue #89 might be related

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant