forked from hub4j/github-api
-
Notifications
You must be signed in to change notification settings - Fork 0
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 hub4j#624
- Loading branch information
1 parent
e1df7bd
commit dfa2ebb
Showing
59 changed files
with
1,102 additions
and
1,095 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
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-11-25T23:03:31Z", | ||
"pushed_at": "2019-11-25T23:03:30Z", | ||
"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": 47, | ||
"size": 45, | ||
"stargazers_count": 1, | ||
"watchers_count": 1, | ||
"language": null, | ||
|
14 changes: 7 additions & 7 deletions
14
...4122f675-92a6-4334-b47d-d09aebf2ec74.json → ...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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
[ | ||
{ | ||
"name": "test+file-to-create-#1.txt", | ||
"path": "test+directory+#50/test+file-to-create-#1.txt", | ||
"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%2B%2350/test%2Bfile-to-create-%231.txt?ref=master", | ||
"html_url": "https://github.com/github-api-test-org/GHContentIntegrationTest/blob/master/test%2Bdirectory%2B%2350/test%2Bfile-to-create-%231.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/8db9c31d79dfb9d0411c7af11b7ec7fabc72c5b1", | ||
"download_url": "https://raw.githubusercontent.com/github-api-test-org/GHContentIntegrationTest/master/test%2Bdirectory%2B%2350/test%2Bfile-to-create-%231.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%2Bdirectory%2B%2350/test%2Bfile-to-create-%231.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/8db9c31d79dfb9d0411c7af11b7ec7fabc72c5b1", | ||
"html": "https://github.com/github-api-test-org/GHContentIntegrationTest/blob/master/test%2Bdirectory%2B%2350/test%2Bfile-to-create-%231.txt" | ||
"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
...f7e75a2a-262e-4729-a4fb-139e88f4a5f6.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-#1.txt", | ||
"path": "test+directory+#50/test+file-to-create-#1.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%2Bdirectory%2B%2350/test%2Bfile-to-create-%231.txt?ref=master", | ||
"html_url": "https://github.com/github-api-test-org/GHContentIntegrationTest/blob/master/test%2Bdirectory%2B%2350/test%2Bfile-to-create-%231.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%2Bdirectory%2B%2350/test%2Bfile-to-create-%231.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%2Bdirectory%2B%2350/test%2Bfile-to-create-%231.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%2Bdirectory%2B%2350/test%2Bfile-to-create-%231.txt" | ||
"html": "https://github.com/github-api-test-org/GHContentIntegrationTest/blob/master/test%2Bdirectory%20%2350/test%20file-to%2Bcreate-%231.txt" | ||
} | ||
}, | ||
"commit": { | ||
"sha": "d5c866c6fc1897a9cdb1b11a3c9ab6505884a442", | ||
"node_id": "MDY6Q29tbWl0NDA3NjM1Nzc6ZDVjODY2YzZmYzE4OTdhOWNkYjFiMTFhM2M5YWI2NTA1ODg0YTQ0Mg==", | ||
"url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/git/commits/d5c866c6fc1897a9cdb1b11a3c9ab6505884a442", | ||
"html_url": "https://github.com/github-api-test-org/GHContentIntegrationTest/commit/d5c866c6fc1897a9cdb1b11a3c9ab6505884a442", | ||
"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-11-25T23:03:56Z" | ||
"date": "2019-11-26T01:09:46Z" | ||
}, | ||
"committer": { | ||
"name": "Liam Newman", | ||
"email": "[email protected]", | ||
"date": "2019-11-25T23:03:56Z" | ||
"date": "2019-11-26T01:09:46Z" | ||
}, | ||
"tree": { | ||
"sha": "8269cd7cca651b2d0f1c649a16cbd3e67809075a", | ||
"url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/git/trees/8269cd7cca651b2d0f1c649a16cbd3e67809075a" | ||
"sha": "50e945108f168faeb2eaf15855904e65e70b9336", | ||
"url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/git/trees/50e945108f168faeb2eaf15855904e65e70b9336" | ||
}, | ||
"message": "Updated file for integration tests.", | ||
"parents": [ | ||
{ | ||
"sha": "c9f5bfb199be85c604bfecbbf8f252b41bdd4a59", | ||
"url": "https://api.github.com/repos/github-api-test-org/GHContentIntegrationTest/git/commits/c9f5bfb199be85c604bfecbbf8f252b41bdd4a59", | ||
"html_url": "https://github.com/github-api-test-org/GHContentIntegrationTest/commit/c9f5bfb199be85c604bfecbbf8f252b41bdd4a59" | ||
"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": { | ||
|
Oops, something went wrong.