<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/gitlab.git/gitlab/utils.py, branch v3.0.0</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>fix: stop encoding '.' to '%2E'</title>
<updated>2021-12-20T22:24:17+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john@sodarock.com</email>
</author>
<published>2021-12-20T22:24:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=702e41dd0674e76b292d9ea4f559c86f0a99edfe'/>
<id>702e41dd0674e76b292d9ea4f559c86f0a99edfe</id>
<content type='text'>
Forcing the encoding of '.' to '%2E' causes issues. It also goes
against the RFC:
https://datatracker.ietf.org/doc/html/rfc3986.html#section-2.3

From the RFC:
  For consistency, percent-encoded octets in the ranges of ALPHA
  (%41-%5A and %61-%7A), DIGIT (%30-%39), hyphen (%2D), period (%2E),
  underscore (%5F), or tilde (%7E) should not be created by URI
  producers...

Closes #1006
Related #1356
Related #1561

BREAKING CHANGE: stop encoding '.' to '%2E'. This could potentially be
a breaking change for users who have incorrectly configured GitLab
servers which don't handle period '.' characters correctly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Forcing the encoding of '.' to '%2E' causes issues. It also goes
against the RFC:
https://datatracker.ietf.org/doc/html/rfc3986.html#section-2.3

From the RFC:
  For consistency, percent-encoded octets in the ranges of ALPHA
  (%41-%5A and %61-%7A), DIGIT (%30-%39), hyphen (%2D), period (%2E),
  underscore (%5F), or tilde (%7E) should not be created by URI
  producers...

Closes #1006
Related #1356
Related #1561

BREAKING CHANGE: stop encoding '.' to '%2E'. This could potentially be
a breaking change for users who have incorrectly configured GitLab
servers which don't handle period '.' characters correctly.
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: use f-strings for string formatting</title>
<updated>2021-11-06T03:45:01+00:00</updated>
<author>
<name>Nejc Habjan</name>
<email>hab.nejc@gmail.com</email>
</author>
<published>2021-11-01T18:22:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/gitlab.git/commit/?id=7925c902d15f20abaecdb07af213f79dad91355b'/>
<id>7925c902d15f20abaecdb07af213f79dad91355b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<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>
</feed>
