<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-swiftclient.git/swiftclient/utils.py, branch stable/queens</title>
<subtitle>opendev.org: openstack/python-swiftclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/'/>
<entry>
<title>Fix SLO re-upload</title>
<updated>2019-07-29T15:56:16+00:00</updated>
<author>
<name>Tim Burke</name>
<email>tim.burke@gmail.com</email>
</author>
<published>2019-04-10T23:22:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=660ae3420acbe0809f153d4fb7a5fc2b68126569'/>
<id>660ae3420acbe0809f153d4fb7a5fc2b68126569</id>
<content type='text'>
Previously, if you uploaded a file as an SLO then re-uploaded it
with the same segment size and mtime, the second upload would
go delete the segments it just (re)uploaded. This was due to
us tracking old_slo_manifest_paths and new_slo_manifest_paths
in different formats; one would have a leading slash while the
other would not.

Now, normalize to the stripped-slash version so we stop deleting
segments we just uploaded.

Change-Id: Ibcbed3df4febe81cdf13855656e2daaca8d521b4
(cherry picked from commit 9021a58c240e156f54ffafdc4609868f348d3ebc)
(cherry picked from commit 2cd8b86075997f2997118bd92286849ddb0c93d7)
(cherry picked from commit d76aa4d810f948279ccffa6d3255f7200aed0323)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, if you uploaded a file as an SLO then re-uploaded it
with the same segment size and mtime, the second upload would
go delete the segments it just (re)uploaded. This was due to
us tracking old_slo_manifest_paths and new_slo_manifest_paths
in different formats; one would have a leading slash while the
other would not.

Now, normalize to the stripped-slash version so we stop deleting
segments we just uploaded.

Change-Id: Ibcbed3df4febe81cdf13855656e2daaca8d521b4
(cherry picked from commit 9021a58c240e156f54ffafdc4609868f348d3ebc)
(cherry picked from commit 2cd8b86075997f2997118bd92286849ddb0c93d7)
(cherry picked from commit d76aa4d810f948279ccffa6d3255f7200aed0323)
</pre>
</div>
</content>
</entry>
<entry>
<title>ISO 8601 timestamps for tempurl</title>
<updated>2017-03-29T18:27:39+00:00</updated>
<author>
<name>Christopher Bartz</name>
<email>bartz@dkrz.de</email>
</author>
<published>2017-01-20T17:04:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=8e08931b9ffd872a2b5537149a5d3b9f3e9bb5d4'/>
<id>8e08931b9ffd872a2b5537149a5d3b9f3e9bb5d4</id>
<content type='text'>
Client-side implementation for ISO 8601 timestamp
support of tempurl middleware. Please see

https://review.openstack.org/#/c/422679/

Change-Id: I76da28b48948475ec1bae5258e0b39a316553fb7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Client-side implementation for ISO 8601 timestamp
support of tempurl middleware. Please see

https://review.openstack.org/#/c/422679/

Change-Id: I76da28b48948475ec1bae5258e0b39a316553fb7
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix some reST field lists in docstrings</title>
<updated>2017-03-29T01:28:46+00:00</updated>
<author>
<name>liuyamin</name>
<email>liuyamin@fiberhome.com</email>
</author>
<published>2017-03-28T08:50:55+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=2710ff255b5d3954eebdf469587bf73bbfd48431'/>
<id>2710ff255b5d3954eebdf469587bf73bbfd48431</id>
<content type='text'>
Probably the most common format for documenting arguments is
reST field lists [1]. This change updates some docstrings to
comply with the field lists syntax.

[1] http://sphinx-doc.org/domains.html#info-field-lists

Change-Id: Ic011fd3e3a8c5bafa24a3438a6ed5bb126b50e95
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Probably the most common format for documenting arguments is
reST field lists [1]. This change updates some docstrings to
comply with the field lists syntax.

[1] http://sphinx-doc.org/domains.html#info-field-lists

Change-Id: Ic011fd3e3a8c5bafa24a3438a6ed5bb126b50e95
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix logging of the gzipped body</title>
<updated>2017-03-07T20:50:55+00:00</updated>
<author>
<name>Vitaly Gridnev</name>
<email>vgridnev@mirantis.com</email>
</author>
<published>2017-03-07T09:38:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=028c4824d0190e0b605ae9c90756167083e46cd3'/>
<id>028c4824d0190e0b605ae9c90756167083e46cd3</id>
<content type='text'>
Change-Id: I6d7ccbf4ef9b46e890ecec58842c5cdd2804c7a9
Closes-bug: 1670620
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I6d7ccbf4ef9b46e890ecec58842c5cdd2804c7a9
Closes-bug: 1670620
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Accept more types of input for headers/meta"</title>
<updated>2017-01-24T00:39:54+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2017-01-24T00:39:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=5ffd496f1f5c7cbbb4bd65803cecd37a6bfb7080'/>
<id>5ffd496f1f5c7cbbb4bd65803cecd37a6bfb7080</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>prefix-based tempurls support</title>
<updated>2017-01-19T15:34:26+00:00</updated>
<author>
<name>Christopher Bartz</name>
<email>bartz@dkrz.de</email>
</author>
<published>2016-12-08T12:42:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=3934bd606acc2333ee9ae63a40baa35928ef908d'/>
<id>3934bd606acc2333ee9ae63a40baa35928ef908d</id>
<content type='text'>
Implements client-side functionality for
prefix-based tempurls.

Please see: https://review.openstack.org/#/c/274048/

Change-Id: I8d7701daee888ed1120271a96c0660b01543ca2d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implements client-side functionality for
prefix-based tempurls.

Please see: https://review.openstack.org/#/c/274048/

Change-Id: I8d7701daee888ed1120271a96c0660b01543ca2d
</pre>
</div>
</content>
</entry>
<entry>
<title>Accept more types of input for headers/meta</title>
<updated>2016-11-18T19:47:14+00:00</updated>
<author>
<name>Tim Burke</name>
<email>tim.burke@gmail.com</email>
</author>
<published>2016-08-23T23:17:21+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=a1e2bcde4a54a33054c7dcb31c3c3b0e6d72d021'/>
<id>a1e2bcde4a54a33054c7dcb31c3c3b0e6d72d021</id>
<content type='text'>
Previously, we only accepted iterables of strings like 'Header: Value'.
Now, we'll also accept lists of tuples like ('Header', 'Value') as well
as dictionaries like {'Header': 'Value'}.

This should be more intuitive for application developers, who are
already used to being able to pass dicts or lists of tuples to libraries
like requests.

Change-Id: I93ed2f1e8305f0168b7a4bd90c205b04730da836
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, we only accepted iterables of strings like 'Header: Value'.
Now, we'll also accept lists of tuples like ('Header', 'Value') as well
as dictionaries like {'Header': 'Value'}.

This should be more intuitive for application developers, who are
already used to being able to pass dicts or lists of tuples to libraries
like requests.

Change-Id: I93ed2f1e8305f0168b7a4bd90c205b04730da836
</pre>
</div>
</content>
</entry>
<entry>
<title>Add additional headers for HEAD/GET/DELETE requests.</title>
<updated>2016-11-07T05:18:29+00:00</updated>
<author>
<name>Charles Hsu</name>
<email>charles0126@gmail.com</email>
</author>
<published>2016-09-19T15:18:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=6cf2bd6626df8e4c68bd5463d9b030e315f76b42'/>
<id>6cf2bd6626df8e4c68bd5463d9b030e315f76b42</id>
<content type='text'>
Change-Id: I69276ba711057c122f97deac412e492e313c34dd
Closes-Bug: 1615830
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I69276ba711057c122f97deac412e492e313c34dd
Closes-Bug: 1615830
</pre>
</div>
</content>
</entry>
<entry>
<title>Make tempurl subcommand insist on whole number seconds</title>
<updated>2016-09-14T17:17:40+00:00</updated>
<author>
<name>Alistair Coles</name>
<email>alistair.coles@hpe.com</email>
</author>
<published>2016-09-09T10:06:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=e41158d79e4bcb280ec94365226f9423f72d7b66'/>
<id>e41158d79e4bcb280ec94365226f9423f72d7b66</id>
<content type='text'>
Previously the tempurl subcommand would dump a traceback
due to a TypeError if the seconds option was not an int
value. With this patch it will now return the same
error message as if the seconds option were negative or not
a number.

Also changes the error message to state that the seconds
option should be a "whole number" rather than a "positive
integer", since 0 is a valid value.

Change-Id: Ie940d470f2be8006aa8eb7fe242f092457aeae21
Closes-Bug: #1621817
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously the tempurl subcommand would dump a traceback
due to a TypeError if the seconds option was not an int
value. With this patch it will now return the same
error message as if the seconds option were negative or not
a number.

Also changes the error message to state that the seconds
option should be a "whole number" rather than a "positive
integer", since 0 is a valid value.

Change-Id: Ie940d470f2be8006aa8eb7fe242f092457aeae21
Closes-Bug: #1621817
</pre>
</div>
</content>
</entry>
<entry>
<title>Make tempurl command check for valid object path</title>
<updated>2016-09-14T15:24:22+00:00</updated>
<author>
<name>Alistair Coles</name>
<email>alistair.coles@hpe.com</email>
</author>
<published>2016-09-08T13:15:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=4c955751d340a8f71a2eebdb3c58d90b36874a66'/>
<id>4c955751d340a8f71a2eebdb3c58d90b36874a66</id>
<content type='text'>
If the supplied path is not of the form /v1/a/c/o then
swift tempurl subcommand will now return an error message.

Also removes redundant check for seconds parameter being an int
from shell.py because the same check is made when calling
utils.generate_temp_url.

Drive-by fix for missing param definition for generate_temp_url.

Change-Id: I41f4389948b01fadaa5fc4939ea12e0ed2167345
Related-Change: I0fb2ce125fe12d660e4deb778265016bdd5ff31b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the supplied path is not of the form /v1/a/c/o then
swift tempurl subcommand will now return an error message.

Also removes redundant check for seconds parameter being an int
from shell.py because the same check is made when calling
utils.generate_temp_url.

Drive-by fix for missing param definition for generate_temp_url.

Change-Id: I41f4389948b01fadaa5fc4939ea12e0ed2167345
Related-Change: I0fb2ce125fe12d660e4deb778265016bdd5ff31b
</pre>
</div>
</content>
</entry>
</feed>
