-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed GHContent to allow spaces in path
URI path encoding whack-a-mole. This fix should cover a significant number of cases. Also, fixed to NOT do URLEncode for URI path. The encoding is different between path and query. Fixes #624
- Loading branch information
1 parent
7d4f194
commit 8c4b1ef
Showing
59 changed files
with
1,375 additions
and
1,074 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,14 +65,14 @@ | |
"releases_url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/releases{/id}", | ||
"deployments_url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/deployments", | ||
"created_at": "2015-08-15T14:14:57Z", | ||
"updated_at": "2019-10-11T22:17:07Z", | ||
"pushed_at": "2019-10-11T22:17:06Z", | ||
"updated_at": "2019-11-26T01:09:15Z", | ||
"pushed_at": "2019-11-26T01:09:14Z", | ||
"git_url": "git://github.com/github-api-test-org/GHContentIntegrationTest.git", | ||
"ssh_url": "[email protected]:github-api-test-org/GHContentIntegrationTest.git", | ||
"clone_url": "https://github.com/github-api-test-org/GHContentIntegrationTest.git", | ||
"svn_url": "https://github.com/github-api-test-org/GHContentIntegrationTest", | ||
"homepage": null, | ||
"size": 38, | ||
"size": 45, | ||
"stargazers_count": 1, | ||
"watchers_count": 1, | ||
"language": null, | ||
|
@@ -81,13 +81,13 @@ | |
"has_downloads": true, | ||
"has_wiki": true, | ||
"has_pages": false, | ||
"forks_count": 40, | ||
"forks_count": 41, | ||
"mirror_url": null, | ||
"archived": false, | ||
"disabled": false, | ||
"open_issues_count": 0, | ||
"license": null, | ||
"forks": 40, | ||
"forks": 41, | ||
"open_issues": 0, | ||
"watchers": 1, | ||
"default_branch": "master", | ||
|
@@ -296,17 +296,17 @@ | |
"has_downloads": true, | ||
"has_wiki": true, | ||
"has_pages": false, | ||
"forks_count": 59, | ||
"forks_count": 60, | ||
"mirror_url": null, | ||
"archived": false, | ||
"disabled": false, | ||
"open_issues_count": 0, | ||
"license": null, | ||
"forks": 59, | ||
"forks": 60, | ||
"open_issues": 0, | ||
"watchers": 0, | ||
"default_branch": "master" | ||
}, | ||
"network_count": 59, | ||
"network_count": 60, | ||
"subscribers_count": 1 | ||
} |
18 changes: 18 additions & 0 deletions
18
...ontentintegrationtest_contents_testdirectory-50-3cdae02b-77ed-4fb7-96fa-fee8aab5e88d.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[ | ||
{ | ||
"name": "test file-to+create-#1.txt", | ||
"path": "test+directory #50/test file-to+create-#1.txt", | ||
"sha": "8db9c31d79dfb9d0411c7af11b7ec7fabc72c5b1", | ||
"size": 34, | ||
"url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/contents/test%2Bdirectory%20%2350/test%20file-to%2Bcreate-%231.txt?ref=master", | ||
"html_url": "https://github.com/github-api-test-org/GHContentIntegrationTest/blob/master/test%2Bdirectory%20%2350/test%20file-to%2Bcreate-%231.txt", | ||
"git_url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/git/blobs/8db9c31d79dfb9d0411c7af11b7ec7fabc72c5b1", | ||
"download_url": "https://raw.githubusercontent.com/github-api-test-org/GHContentIntegrationTest/master/test%2Bdirectory%20%2350/test%20file-to%2Bcreate-%231.txt", | ||
"type": "file", | ||
"_links": { | ||
"self": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/contents/test%2Bdirectory%20%2350/test%20file-to%2Bcreate-%231.txt?ref=master", | ||
"git": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/git/blobs/8db9c31d79dfb9d0411c7af11b7ec7fabc72c5b1", | ||
"html": "https://github.com/github-api-test-org/GHContentIntegrationTest/blob/master/test%2Bdirectory%20%2350/test%20file-to%2Bcreate-%231.txt" | ||
} | ||
} | ||
] |
36 changes: 18 additions & 18 deletions
36
...30d0709c-ebc9-4631-8f44-bd942c44a711.json → ...04f85e50-583c-48ad-8d45-55368c542148.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
{ | ||
"content": { | ||
"name": "test-file-to-create.txt", | ||
"path": "test-file-to-create.txt", | ||
"name": "test file-to+create-#1.txt", | ||
"path": "test+directory #50/test file-to+create-#1.txt", | ||
"sha": "da2d3cc78776aec68881668775c46a53f0ee2288", | ||
"size": 25, | ||
"url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/contents/test-file-to-create.txt?ref=master", | ||
"html_url": "https://github.com/github-api-test-org/GHContentIntegrationTest/blob/master/test-file-to-create.txt", | ||
"url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/contents/test%2Bdirectory%20%2350/test%20file-to%2Bcreate-%231.txt?ref=master", | ||
"html_url": "https://github.com/github-api-test-org/GHContentIntegrationTest/blob/master/test%2Bdirectory%20%2350/test%20file-to%2Bcreate-%231.txt", | ||
"git_url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/git/blobs/da2d3cc78776aec68881668775c46a53f0ee2288", | ||
"download_url": "https://raw.githubusercontent.com/github-api-test-org/GHContentIntegrationTest/master/test-file-to-create.txt", | ||
"download_url": "https://raw.githubusercontent.com/github-api-test-org/GHContentIntegrationTest/master/test%2Bdirectory%20%2350/test%20file-to%2Bcreate-%231.txt", | ||
"type": "file", | ||
"_links": { | ||
"self": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/contents/test-file-to-create.txt?ref=master", | ||
"self": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/contents/test%2Bdirectory%20%2350/test%20file-to%2Bcreate-%231.txt?ref=master", | ||
"git": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/git/blobs/da2d3cc78776aec68881668775c46a53f0ee2288", | ||
"html": "https://github.com/github-api-test-org/GHContentIntegrationTest/blob/master/test-file-to-create.txt" | ||
"html": "https://github.com/github-api-test-org/GHContentIntegrationTest/blob/master/test%2Bdirectory%20%2350/test%20file-to%2Bcreate-%231.txt" | ||
} | ||
}, | ||
"commit": { | ||
"sha": "bc9cda986e02ae2677358a28f9cb6097865b3536", | ||
"node_id": "MDY6Q29tbWl0NDA3NjM1Nzc6YmM5Y2RhOTg2ZTAyYWUyNjc3MzU4YTI4ZjljYjYwOTc4NjViMzUzNg==", | ||
"url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/git/commits/bc9cda986e02ae2677358a28f9cb6097865b3536", | ||
"html_url": "https://github.com/github-api-test-org/GHContentIntegrationTest/commit/bc9cda986e02ae2677358a28f9cb6097865b3536", | ||
"sha": "00c7107a9d00cfd9116747ce61c91f2fd9a7acbc", | ||
"node_id": "MDY6Q29tbWl0NDA3NjM1Nzc6MDBjNzEwN2E5ZDAwY2ZkOTExNjc0N2NlNjFjOTFmMmZkOWE3YWNiYw==", | ||
"url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/git/commits/00c7107a9d00cfd9116747ce61c91f2fd9a7acbc", | ||
"html_url": "https://github.com/github-api-test-org/GHContentIntegrationTest/commit/00c7107a9d00cfd9116747ce61c91f2fd9a7acbc", | ||
"author": { | ||
"name": "Liam Newman", | ||
"email": "[email protected]", | ||
"date": "2019-10-11T22:17:43Z" | ||
"date": "2019-11-26T01:09:46Z" | ||
}, | ||
"committer": { | ||
"name": "Liam Newman", | ||
"email": "[email protected]", | ||
"date": "2019-10-11T22:17:43Z" | ||
"date": "2019-11-26T01:09:46Z" | ||
}, | ||
"tree": { | ||
"sha": "7aaee6a6cddcf48f94a40093de05be83c580ce10", | ||
"url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/git/trees/7aaee6a6cddcf48f94a40093de05be83c580ce10" | ||
"sha": "50e945108f168faeb2eaf15855904e65e70b9336", | ||
"url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/git/trees/50e945108f168faeb2eaf15855904e65e70b9336" | ||
}, | ||
"message": "Updated file for integration tests.", | ||
"parents": [ | ||
{ | ||
"sha": "88bd1f52fc1e8242758364cee7dce2c82790d272", | ||
"url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/git/commits/88bd1f52fc1e8242758364cee7dce2c82790d272", | ||
"html_url": "https://github.com/github-api-test-org/GHContentIntegrationTest/commit/88bd1f52fc1e8242758364cee7dce2c82790d272" | ||
"sha": "ce407cde9c6e4c970e33a955197512a2c1922ecf", | ||
"url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/git/commits/ce407cde9c6e4c970e33a955197512a2c1922ecf", | ||
"html_url": "https://github.com/github-api-test-org/GHContentIntegrationTest/commit/ce407cde9c6e4c970e33a955197512a2c1922ecf" | ||
} | ||
], | ||
"verification": { | ||
|
14 changes: 7 additions & 7 deletions
14
...c2b7d86b-e154-4f46-8ab0-f253f77f5dda.json → ...1d4297f8-515f-48b0-8f13-99894911d416.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
{ | ||
"name": "test-file-to-create.txt", | ||
"path": "test-file-to-create.txt", | ||
"name": "test file-to+create-#1.txt", | ||
"path": "test+directory #50/test file-to+create-#1.txt", | ||
"sha": "da2d3cc78776aec68881668775c46a53f0ee2288", | ||
"size": 25, | ||
"url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/contents/test-file-to-create.txt?ref=master", | ||
"html_url": "https://github.com/github-api-test-org/GHContentIntegrationTest/blob/master/test-file-to-create.txt", | ||
"url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/contents/test%2Bdirectory%20%2350/test%20file-to%2Bcreate-%231.txt?ref=master", | ||
"html_url": "https://github.com/github-api-test-org/GHContentIntegrationTest/blob/master/test%2Bdirectory%20%2350/test%20file-to%2Bcreate-%231.txt", | ||
"git_url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/git/blobs/da2d3cc78776aec68881668775c46a53f0ee2288", | ||
"download_url": "https://raw.githubusercontent.com/github-api-test-org/GHContentIntegrationTest/master/test-file-to-create.txt", | ||
"download_url": "https://raw.githubusercontent.com/github-api-test-org/GHContentIntegrationTest/master/test%2Bdirectory%20%2350/test%20file-to%2Bcreate-%231.txt", | ||
"type": "file", | ||
"content": "dGhpcyBpcyBzb21lIG5ldyBjb250ZW50Cg==\n", | ||
"encoding": "base64", | ||
"_links": { | ||
"self": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/contents/test-file-to-create.txt?ref=master", | ||
"self": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/contents/test%2Bdirectory%20%2350/test%20file-to%2Bcreate-%231.txt?ref=master", | ||
"git": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/git/blobs/da2d3cc78776aec68881668775c46a53f0ee2288", | ||
"html": "https://github.com/github-api-test-org/GHContentIntegrationTest/blob/master/test-file-to-create.txt" | ||
"html": "https://github.com/github-api-test-org/GHContentIntegrationTest/blob/master/test%2Bdirectory%20%2350/test%20file-to%2Bcreate-%231.txt" | ||
} | ||
} |
Oops, something went wrong.