# HG changeset patch # User Kim Alvefur # Date 1701516195 -3600 # Node ID 59e38aaa3ec113cb792752b6f668a7a690dcf79e # Parent c7affea8bb244cd500767292bc4fd3e3ae5cb578 mod_storage_s3: Remove wrapper and original timestamp from payload (BC) Unpacking the wrapper was already removed in 66986f5271c3 so it was broken already. Just rely on the Last-Modified date instead, it's not going to be accurate if a different timestamp is passed, e.g. with migrations, but that will have to be a future problem. Perhaps the X-Amz-Meta-* can be used? diff -r c7affea8bb24 -r 59e38aaa3ec1 mod_storage_s3/mod_storage_s3.lua --- a/mod_storage_s3/mod_storage_s3.lua Sat Dec 02 12:21:26 2023 +0100 +++ b/mod_storage_s3/mod_storage_s3.lua Sat Dec 02 12:23:15 2023 +0100 @@ -222,12 +222,8 @@ -- PUT .../with/when/id function archive:append(username, key, value, when, with) - local wrapper = st.stanza("wrapper"); - -- Minio had trouble with timestamps, probably the ':' characters, in paths. - wrapper:tag("delay", { xmlns = "urn:xmpp:delay"; stamp = dt.datetime(when) }):up(); - wrapper:add_direct_child(value); key = key or new_uuid(); - return async.wait_for(new_request(self, "PUT", self:_path(username, nil, when, with, key), nil, wrapper):next(function(r) + return async.wait_for(new_request(self, "PUT", self:_path(username, nil, when, with, key), nil, value):next(function(r) if r.code == 200 then return key; else