Commit 702e41d
committed
fix: stop encoding '.' to '%2E'
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.1 parent ccefe80 commit 702e41dCopy full SHA for 702e41d
File tree
Expand file treeCollapse file tree
6 files changed
+20
-47
lines changedOpen diff view settings
Filter options
- gitlab
- tests/unit
- objects
Expand file treeCollapse file tree
6 files changed
+20
-47
lines changedOpen diff view settings
Collapse file
+11-16Lines changed: 11 additions & 16 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
593 | 593 | |
594 | 594 | |
595 | 595 | |
596 | | - |
597 | | - |
598 | | - |
599 | | - |
600 | | - |
601 | | - |
602 | | - |
603 | | - |
604 | | - |
605 | | - |
606 | | - |
607 | | - |
608 | | - |
609 | | - |
610 | | - |
611 | 596 | |
612 | 597 | |
613 | | - |
| 598 | + |
| 599 | + |
| 600 | + |
| 601 | + |
| 602 | + |
| 603 | + |
| 604 | + |
| 605 | + |
| 606 | + |
| 607 | + |
| 608 | + |
614 | 609 | |
615 | 610 | |
616 | 611 | |
|
Collapse file
+1-7Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
| 19 | + |
20 | 20 | |
21 | 21 | |
22 | 22 | |
| ||
60 | 60 | |
61 | 61 | |
62 | 62 | |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | 63 | |
70 | 64 | |
Collapse file
tests/unit/objects/test_packages.py
Copy file name to clipboardExpand all lines: tests/unit/objects/test_packages.py+3-5Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | | - |
6 | 5 | |
7 | 6 | |
8 | 7 | |
| ||
109 | 108 | |
110 | 109 | |
111 | 110 | |
112 | | - |
113 | | - |
114 | | - |
115 | | - |
| 111 | + |
| 112 | + |
| 113 | + |
116 | 114 | |
117 | 115 | |
118 | 116 | |
|
Collapse file
tests/unit/objects/test_releases.py
Copy file name to clipboardExpand all lines: tests/unit/objects/test_releases.py+4-7Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
14 | | - |
15 | 14 | |
16 | 15 | |
17 | 16 | |
18 | 17 | |
19 | 18 | |
20 | | - |
| 19 | + |
21 | 20 | |
22 | 21 | |
23 | 22 | |
| ||
37 | 36 | |
38 | 37 | |
39 | 38 | |
40 | | - |
41 | | - |
42 | | - |
| 39 | + |
43 | 40 | |
44 | | - |
| 41 | + |
45 | 42 | |
46 | 43 | |
47 | | - |
| 44 | + |
48 | 45 | |
49 | 46 | |
50 | 47 | |
|
Collapse file
tests/unit/objects/test_repositories.py
Copy file name to clipboardExpand all lines: tests/unit/objects/test_repositories.py+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
32 | | - |
33 | | - |
| 32 | + |
34 | 33 | |
35 | 34 | |
36 | 35 | |
|
Collapse file
-10Lines changed: 0 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
30 | 30 | |
31 | 31 | |
32 | 32 | |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
0 commit comments