<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-swiftclient.git/swiftclient/client.py, branch stable/kilo</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>Release connection after consuming the content</title>
<updated>2015-02-25T11:00:56+00:00</updated>
<author>
<name>Ian Cordasco</name>
<email>ian.cordasco@rackspace.com</email>
</author>
<published>2015-01-21T20:38:02+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=8756591b0ad24320a0b6fa3b2f7513e17ec46b6c'/>
<id>8756591b0ad24320a0b6fa3b2f7513e17ec46b6c</id>
<content type='text'>
When using stream=True, we need to make sure we release a connection
back to the connection pool to avoid warnings clogging up the logs. We
can do this by releasing the connection once we've read all the content
from the response. In situations where stream=False, requests already
does this for us.

Related-bug: 1424732
Closes-bug: 1341777
Change-Id: Id1c72ad86135a49d4b985992d788736b65f7dbda
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When using stream=True, we need to make sure we release a connection
back to the connection pool to avoid warnings clogging up the logs. We
can do this by releasing the connection once we've read all the content
from the response. In situations where stream=False, requests already
does this for us.

Related-bug: 1424732
Closes-bug: 1341777
Change-Id: Id1c72ad86135a49d4b985992d788736b65f7dbda
</pre>
</div>
</content>
</entry>
<entry>
<title>Verify MD5 of uploaded objects.</title>
<updated>2015-02-19T11:21:32+00:00</updated>
<author>
<name>Daniel Wakefield</name>
<email>daniel.wakefield@hp.com</email>
</author>
<published>2014-10-29T10:11:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=f0300e3714e0d8cdd0ed9e4744b813e3b263d034'/>
<id>f0300e3714e0d8cdd0ed9e4744b813e3b263d034</id>
<content type='text'>
Changed existing code to calculate the MD5 of the object
during the upload stream. Checks this MD5 against the etag
returned in the response.
An exception is raised if they do not match.

Closes-Bug: 1379263

Change-Id: I6c8bc1366dfb591a26d934a30cd21c9e6b9a04ce
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Changed existing code to calculate the MD5 of the object
during the upload stream. Checks this MD5 against the etag
returned in the response.
An exception is raised if they do not match.

Closes-Bug: 1379263

Change-Id: I6c8bc1366dfb591a26d934a30cd21c9e6b9a04ce
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix missing ca-certificate parameter to get_auth.</title>
<updated>2015-02-07T03:42:49+00:00</updated>
<author>
<name>Charles Hsu</name>
<email>charles0126@gmail.com</email>
</author>
<published>2015-02-07T00:51:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=df2442166ceb63533f32073a5a2eea146eddb6a9'/>
<id>df2442166ceb63533f32073a5a2eea146eddb6a9</id>
<content type='text'>
Missing cacert parameter in get_auth_1_0() and it makes requests_args['verify']
is True in default(likes "swift --os-cacert ssl.crti list").
The requests_args['verify'] should be a ca-certificate file name("ssl.crt").

Change-Id: Id3110f3818f55922ad19eeb1ead80fface824009
Closes-Bug: 1418473
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Missing cacert parameter in get_auth_1_0() and it makes requests_args['verify']
is True in default(likes "swift --os-cacert ssl.crti list").
The requests_args['verify'] should be a ca-certificate file name("ssl.crt").

Change-Id: Id3110f3818f55922ad19eeb1ead80fface824009
Closes-Bug: 1418473
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Suppress 'No handlers...' message from keystoneclient logger"</title>
<updated>2015-01-02T19:07:11+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2015-01-02T19:07:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=9aeb2cfaf47e1a97835fdf651c78b2dcc29f3e44'/>
<id>9aeb2cfaf47e1a97835fdf651c78b2dcc29f3e44</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make preauth params work</title>
<updated>2014-12-17T12:53:56+00:00</updated>
<author>
<name>Clay Gerrard</name>
<email>clay.gerrard@gmail.com</email>
</author>
<published>2014-10-24T08:02:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=fbe558885f29e2c545e3260927a625b1027995ec'/>
<id>fbe558885f29e2c545e3260927a625b1027995ec</id>
<content type='text'>
If you specify a token and storage url when creating a Connection,
regardless of the auth api version the first request will be made
directly to swift.  You can either provide a preauthurl and preauthtoken
or fall back to os_options' object_storage_url and auth_token keys
(exposed as --os-storage-url and --os-auth-token on the command line or
OS_STORAGE_URL and OS_AUTH_TOKEN in the environment).

If a _retry wrapped request on a Connection fails because of invalid
authentication (401) the Connection's cached token and url will be
invalidated.  If the Connection's retries attribute is &gt; 0 the
subsequent attempt will call get_auth to refresh the token, but the
pre-configured storage_url will always be re-used.  This is consistent
with current auth v2 behavior and less surprising for auth v1.

The pre-existing, but previously undocumented behavior/interface of
get_auth would override the storage_url returned by the auth service if
the 'os_storage_url' option was provided in the os_options dict.  To
ensure that this behavior is consistent across auth v1 and v2 from the
command line and when using the Connection class as a library - the
preauthurl is stashed in the os_options dict when provided.

Improved Connection.get_capabilities storage_url handling to better
support the consistent behavior of a preauthurl/object_storage_url on
the connection regardless of auth version.

Fixed up some test infrastructure to enable setting up and testing
multiple requests/responses.

Change-Id: I6950fb73f3e28fdddb62760cae9320e2f4336776
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If you specify a token and storage url when creating a Connection,
regardless of the auth api version the first request will be made
directly to swift.  You can either provide a preauthurl and preauthtoken
or fall back to os_options' object_storage_url and auth_token keys
(exposed as --os-storage-url and --os-auth-token on the command line or
OS_STORAGE_URL and OS_AUTH_TOKEN in the environment).

If a _retry wrapped request on a Connection fails because of invalid
authentication (401) the Connection's cached token and url will be
invalidated.  If the Connection's retries attribute is &gt; 0 the
subsequent attempt will call get_auth to refresh the token, but the
pre-configured storage_url will always be re-used.  This is consistent
with current auth v2 behavior and less surprising for auth v1.

The pre-existing, but previously undocumented behavior/interface of
get_auth would override the storage_url returned by the auth service if
the 'os_storage_url' option was provided in the os_options dict.  To
ensure that this behavior is consistent across auth v1 and v2 from the
command line and when using the Connection class as a library - the
preauthurl is stashed in the os_options dict when provided.

Improved Connection.get_capabilities storage_url handling to better
support the consistent behavior of a preauthurl/object_storage_url on
the connection regardless of auth version.

Fixed up some test infrastructure to enable setting up and testing
multiple requests/responses.

Change-Id: I6950fb73f3e28fdddb62760cae9320e2f4336776
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Show warning when auth_version &gt;= 2 and keystoneclient is missing"</title>
<updated>2014-12-15T19:07:23+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2014-12-15T19:07:23+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=d59af8cc8b3f5ddf846046dd11029b84db4828ea'/>
<id>d59af8cc8b3f5ddf846046dd11029b84db4828ea</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Show warning when auth_version &gt;= 2 and keystoneclient is missing</title>
<updated>2014-11-25T12:15:08+00:00</updated>
<author>
<name>Christian Schwede</name>
<email>christian.schwede@enovance.com</email>
</author>
<published>2014-11-25T12:11:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=47546eb14522b70ebb765986560d914a88916276'/>
<id>47546eb14522b70ebb765986560d914a88916276</id>
<content type='text'>
Swiftclient hangs forever without any reasonable hint if someone
uses a recent version of swiftclient together with auth version
2 or later. The reason for this is the sys.exit() call in a thread
- the main thread never exists, and swift just waits forever.

Raising a ClientException instead of calling sys.exit() fixes this
and returns the desired information back to the user.

Change-Id: I1fdff85da2dd4b883d337d6098b1695e448d6f2b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Swiftclient hangs forever without any reasonable hint if someone
uses a recent version of swiftclient together with auth version
2 or later. The reason for this is the sys.exit() call in a thread
- the main thread never exists, and swift just waits forever.

Raising a ClientException instead of calling sys.exit() fixes this
and returns the desired information back to the user.

Change-Id: I1fdff85da2dd4b883d337d6098b1695e448d6f2b
</pre>
</div>
</content>
</entry>
<entry>
<title>Suppress 'No handlers...' message from keystoneclient logger</title>
<updated>2014-11-13T13:38:07+00:00</updated>
<author>
<name>Alistair Coles</name>
<email>alistair.coles@hp.com</email>
</author>
<published>2014-11-13T12:18:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=e566f77a6edca1585179e5048ee41f1edfeb94e1'/>
<id>e566f77a6edca1585179e5048ee41f1edfeb94e1</id>
<content type='text'>
keystoneclient isn't adding a NullHandler to its logger,
so we see 'No handlers could be found for logger...'
messages when using the swift cli with keystone auth.

Since keystoneclient follows the usual pattern of
naming loggers  from module name, we can add a
NullHandler to the 'keystoneclient' logger to handle
any logging from the library.

Note that this makes no change to keystoneclient
logging being emitted when using 'swift --debug'
or 'swift --info'.

No test because I am not sure how to usefully
test this without ending up just testing a mock
of keystoneclient.

Change-Id: Ic81cf8e5a590ae9224d35e3a5b1c5f2a8c33835a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
keystoneclient isn't adding a NullHandler to its logger,
so we see 'No handlers could be found for logger...'
messages when using the swift cli with keystone auth.

Since keystoneclient follows the usual pattern of
naming loggers  from module name, we can add a
NullHandler to the 'keystoneclient' logger to handle
any logging from the library.

Note that this makes no change to keystoneclient
logging being emitted when using 'swift --debug'
or 'swift --info'.

No test because I am not sure how to usefully
test this without ending up just testing a mock
of keystoneclient.

Change-Id: Ic81cf8e5a590ae9224d35e3a5b1c5f2a8c33835a
</pre>
</div>
</content>
</entry>
<entry>
<title>Add unit tests for _encode_meta_headers</title>
<updated>2014-11-13T11:25:45+00:00</updated>
<author>
<name>Daniel Wakefield</name>
<email>daniel.wakefield@hp.com</email>
</author>
<published>2014-11-06T14:10:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=0f2b0dc300be50c69bb0227ec736a535710ead01'/>
<id>0f2b0dc300be50c69bb0227ec736a535710ead01</id>
<content type='text'>
Also move it to a module level function.
Change-Id: I2da64876815619a6db7ff208061df2191767806c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also move it to a module level function.
Change-Id: I2da64876815619a6db7ff208061df2191767806c
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Fix KeyError raised from client Connection"</title>
<updated>2014-11-13T03:12:53+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2014-11-13T03:12:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=f99e71da0fa80b2110887a9694512c2fcaddc191'/>
<id>f99e71da0fa80b2110887a9694512c2fcaddc191</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
