<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/gitlab.git/gitlab/utils.py, branch v2.7.1</title>
<subtitle>github.com: gpocentek/python-gitlab.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/'/>
<entry>
<title>chore: remove unused function sanitize_parameters()</title>
<updated>2021-04-18T21:55:37+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-04-18T21:55:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=443b93482e29fecc12fdbd2329427b37b05ba425'/>
<id>443b93482e29fecc12fdbd2329427b37b05ba425</id>
<content type='text'>
The function sanitize_parameters() was used when the v3 API was in
use. Since v3 API support has been removed there are no more users of
this function.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The function sanitize_parameters() was used when the v3 API was in
use. Since v3 API support has been removed there are no more users of
this function.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix: handle tags like debian/2%2.6-21 as identifiers</title>
<updated>2021-03-05T00:04:00+00:00</updated>
<author>
<name>Emanuele Aina</name>
<email>emanuele.aina@collabora.com</email>
</author>
<published>2021-02-25T21:53:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=b4dac5ce33843cf52badeb9faf0f7f52f20a9a6a'/>
<id>b4dac5ce33843cf52badeb9faf0f7f52f20a9a6a</id>
<content type='text'>
Git refnames are relatively free-form and can contain all sort for
special characters, not just `/` and `#`, see
http://git-scm.com/docs/git-check-ref-format

In particular, Debian's DEP-14 standard for storing packaging in git
repositories mandates the use of the `%` character in tags in some
cases like `debian/2%2.6-21`.

Unfortunately python-gitlab currently only escapes `/` to `%2F` and in
some cases `#` to `%23`. This means that when using the commit API to
retrieve information about the `debian/2%2.6-21` tag only the slash is
escaped before being inserted in the URL path and the `%` is left
untouched, resulting in something like
`/api/v4/projects/123/repository/commits/debian%2F2%2.6-21`. When
urllib3 seees that it detects the invalid `%` escape and then urlencodes
the whole string, resulting in
`/api/v4/projects/123/repository/commits/debian%252F2%252.6-21`, where
the original `/` got escaped twice and produced `%252F`.

To avoid the issue, fully urlencode identifiers and parameters to avoid
the urllib3 auto-escaping in all cases.

Signed-off-by: Emanuele Aina &lt;emanuele.aina@collabora.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Git refnames are relatively free-form and can contain all sort for
special characters, not just `/` and `#`, see
http://git-scm.com/docs/git-check-ref-format

In particular, Debian's DEP-14 standard for storing packaging in git
repositories mandates the use of the `%` character in tags in some
cases like `debian/2%2.6-21`.

Unfortunately python-gitlab currently only escapes `/` to `%2F` and in
some cases `#` to `%23`. This means that when using the commit API to
retrieve information about the `debian/2%2.6-21` tag only the slash is
escaped before being inserted in the URL path and the `%` is left
untouched, resulting in something like
`/api/v4/projects/123/repository/commits/debian%2F2%2.6-21`. When
urllib3 seees that it detects the invalid `%` escape and then urlencodes
the whole string, resulting in
`/api/v4/projects/123/repository/commits/debian%252F2%252.6-21`, where
the original `/` got escaped twice and produced `%252F`.

To avoid the issue, fully urlencode identifiers and parameters to avoid
the urllib3 auto-escaping in all cases.

Signed-off-by: Emanuele Aina &lt;emanuele.aina@collabora.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: disallow incomplete type defs</title>
<updated>2021-02-28T16:48:31+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-02-27T01:35:02+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=907634fe4d0d30706656b8bc56260b5532613e62'/>
<id>907634fe4d0d30706656b8bc56260b5532613e62</id>
<content type='text'>
Don't allow a partially annotated function definition. Either none of
the function is annotated or all of it must be.

Update code to ensure no-more partially annotated functions.

Update gitlab/cli.py with better type-hints. Changed Tuple[Any, ...]
to Tuple[str, ...]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't allow a partially annotated function definition. Either none of
the function is annotated or all of it must be.

Update code to ensure no-more partially annotated functions.

Update gitlab/cli.py with better type-hints. Changed Tuple[Any, ...]
to Tuple[str, ...]
</pre>
</div>
</content>
</entry>
<entry>
<title>chore: add type hints to gitlab/utils.py</title>
<updated>2021-02-25T18:37:57+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-02-25T18:27:38+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=acd9294fac52a636a016a7a3c14416b10573da28'/>
<id>acd9294fac52a636a016a7a3c14416b10573da28</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: split unit tests by GitLab API resources</title>
<updated>2020-08-22T18:09:52+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2020-04-17T00:26:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=76b2cadf1418e4ea2ac420ebba5a4b4f16fbd4c7'/>
<id>76b2cadf1418e4ea2ac420ebba5a4b4f16fbd4c7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix: remove null values from features POST data, because it fails</title>
<updated>2020-02-07T10:00:18+00:00</updated>
<author>
<name>Mateusz Filipowicz</name>
<email>mateusz.filipowicz@roche.com</email>
</author>
<published>2020-02-05T14:26:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=1ec1816d7c76ae079ad3b3e3b7a1bae70e0dd95b'/>
<id>1ec1816d7c76ae079ad3b3e3b7a1bae70e0dd95b</id>
<content type='text'>
with HTTP 500
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
with HTTP 500
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: remove six dependency</title>
<updated>2019-12-18T12:50:19+00:00</updated>
<author>
<name>Max Wittig</name>
<email>max.wittig@siemens.com</email>
</author>
<published>2019-12-18T12:14:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=9fb46454c6dab1a86ab4492df2368ed74badf7d6'/>
<id>9fb46454c6dab1a86ab4492df2368ed74badf7d6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix: convert # to %23 in URLs</title>
<updated>2019-06-08T08:04:27+00:00</updated>
<author>
<name>Gauvain Pocentek</name>
<email>gauvain@pocentek.net</email>
</author>
<published>2019-06-08T08:04:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=14f538501bfb47c92e02e615d0817675158db3cf'/>
<id>14f538501bfb47c92e02e615d0817675158db3cf</id>
<content type='text'>
Refactor a bit to handle this change, and add unit tests.

Closes #779
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refactor a bit to handle this change, and add unit tests.

Closes #779
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: format everything black</title>
<updated>2019-05-16T16:03:56+00:00</updated>
<author>
<name>Max Wittig</name>
<email>max.wittig95@gmail.com</email>
</author>
<published>2019-05-16T16:00:34+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=318d2770cbc90ae4d33170274e214b9d828bca43'/>
<id>318d2770cbc90ae4d33170274e214b9d828bca43</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Raise an exception on https redirects for PUT/POST</title>
<updated>2018-08-24T15:09:55+00:00</updated>
<author>
<name>Gauvain Pocentek</name>
<email>gauvain@pocentek.net</email>
</author>
<published>2018-08-24T15:09:55+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=a221d7b35bc20da758e7467fe789e16613c54275'/>
<id>a221d7b35bc20da758e7467fe789e16613c54275</id>
<content type='text'>
POST and PUT requests are modified by clients when redirections happen.
A common problem with python-gitlab is a misconfiguration of the server
URL: the http to https redirection breaks some requests.

With this change python-gitlab should detect problematic redirections,
and raise a proper exception instead of failing with a cryptic error.

Closes #565
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
POST and PUT requests are modified by clients when redirections happen.
A common problem with python-gitlab is a misconfiguration of the server
URL: the http to https redirection breaks some requests.

With this change python-gitlab should detect problematic redirections,
and raise a proper exception instead of failing with a cryptic error.

Closes #565
</pre>
</div>
</content>
</entry>
</feed>
