Title: Setting X-Delete-After and other system metadata on objectStore · Issue #249 · php-opencloud/openstack · GitHub
Open Graph Title: Setting X-Delete-After and other system metadata on objectStore · Issue #249 · php-opencloud/openstack
X Title: Setting X-Delete-After and other system metadata on objectStore · Issue #249 · php-opencloud/openstack
Description: I need to set X-Delete-At or X-Delete-After for already existing Object in storage. I tried to do it using $openstack->objectStoreV1() ->getContainer($containerName) ->getObject($fileName)->mergeMetadata([ 'X-Delete-After' => "10", ]); A...
Open Graph Description: I need to set X-Delete-At or X-Delete-After for already existing Object in storage. I tried to do it using $openstack->objectStoreV1() ->getContainer($containerName) ->getObject($fileName)->mergeMe...
X Description: I need to set X-Delete-At or X-Delete-After for already existing Object in storage. I tried to do it using $openstack->objectStoreV1() ->getContainer($containerName) ->getObject($fileName)...
Opengraph URL: https://github.com/php-opencloud/openstack/issues/249
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Setting X-Delete-After and other system metadata on objectStore","articleBody":"I need to set X-Delete-At or X-Delete-After for already existing Object in storage. I tried to do it using `$openstack-\u003eobjectStoreV1()`\r\n -\u003egetContainer($containerName)\r\n -\u003egetObject($fileName)-\u003emergeMetadata([\r\n 'X-Delete-After' =\u003e \"10\",\r\n ]);\r\n\r\nAND\r\n\r\nI used:\r\n`$openstack-\u003eobjectStoreV1()\r\n -\u003egetContainer($containerName)\r\n -\u003egetObject($fileName)\r\n -\u003emergeMetadata([\r\n 'deleteAfter' =\u003e '100',\r\n ]);`\r\n\r\nBut it sets X-Object-Meta-deleteAfter param, and not the X-Delete-After metadata value.\r\n\r\n**So my question is how to set them?**\r\n\r\nAdditionaly\r\nOfficial docs https://developer.openstack.org/api-ref/object-store/?expanded=get-object-content-and-metadata-detail\r\nsays that \"In addition to the custom metadata (like X-Object-Meta-name), you can update the Content-Type, Content-Encoding, Content-Disposition, and X-Delete-At system metadata items. However you cannot update other system metadata, such as Content-Length or Last-Modified.\"\r\n\r\nBut I cant find this ability in php-opencloud.","author":{"url":"https://github.com/tarik23","@type":"Person","name":"tarik23"},"datePublished":"2018-08-19T12:12:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/249/openstack/issues/249"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c28c5955-bbb5-ca1b-da3f-9311b55ce055 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D4C8:8B50E:CF011EE:10D59BB6:69772FF2 |
| html-safe-nonce | e9ba9e8d64c851261b9332780674a87422fe1a4d52a530a57d10f078aa3674c1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEM4OjhCNTBFOkNGMDExRUU6MTBENTlCQjY6Njk3NzJGRjIiLCJ2aXNpdG9yX2lkIjoiODYyMDA3OTM0MTQyNzQzNzU1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 46707c439d4eef017f82924db4cdbf88aaf171ce1165753d829c44dfc959bc02 |
| hovercard-subject-tag | issue:351898066 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/php-opencloud/openstack/249/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a85511df33a7634051287d12418daf9469c94c9973202f31b89aad9900d1290/php-opencloud/openstack/issues/249 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a85511df33a7634051287d12418daf9469c94c9973202f31b89aad9900d1290/php-opencloud/openstack/issues/249 |
| og:image:alt | I need to set X-Delete-At or X-Delete-After for already existing Object in storage. I tried to do it using $openstack->objectStoreV1() ->getContainer($containerName) ->getObject($fileName)->mergeMe... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tarik23 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/php-opencloud/openstack git https://github.com/php-opencloud/openstack.git |
| octolytics-dimension-user_id | 8049082 |
| octolytics-dimension-user_login | php-opencloud |
| octolytics-dimension-repository_id | 32149778 |
| octolytics-dimension-repository_nwo | php-opencloud/openstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 32149778 |
| octolytics-dimension-repository_network_root_nwo | php-opencloud/openstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width