Stephen Day
7a584f21b8
Merge pull request #1239 from stevvooe/refactor-reference-grammar
...
reference: refactor grammar and regular expressions
2015-12-07 10:31:43 -08:00
Richard Scothern
f18bf5e343
Add clearer messaging around missing content-length headers.
...
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2015-12-07 10:17:49 -08:00
Stephen J Day
3150937b9f
reference: refactor grammar and regular expressions
...
To resolve some inconsistencies between the grammar and the regular
expressions, the grammar has been slightly refactored to match the intent. The
regular expressions have been redefined with the same structure to make it
easier to verify the grammar is correct.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-12-04 17:54:23 -08:00
Sebastiaan van Stijn
434aaf7e4e
update maintainers file for parsing
...
this updates the MAINTAINERS file to the new format,
so that it can be parsed and collected in the docker/opensource
repository.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2015-12-05 01:07:56 +01:00
Sven Dowideit
226d8c4f07
Merge pull request #1234 from SvenDowideit/linkchecker-fixes
...
Small doc fixes found by the linkchecker
2015-12-05 09:30:58 +10:00
Anton Tiurin
d4435b79d9
Fix comment for PathRegexp
...
Signed-off-by: Anton Tiurin <noxiouz@yandex.ru>
2015-12-04 22:14:21 +03:00
Sylvain Baubeau
ef4ab7a885
Use bulk delete to remove segments in Swift driver
...
Signed-off-by: Sylvain Baubeau <sbaubeau@redhat.com>
2015-12-04 12:16:49 +01:00
Stephen Day
568bf038af
Merge pull request #1233 from kendru/patch-1
...
Escape dollar signs
2015-12-03 12:29:12 -08:00
Stephen Day
4cf93714f3
Merge pull request #1231 from tonistiigi/digest-length-check
...
Validate digest length on parsing
2015-12-03 12:17:16 -08:00
Stephen Day
d46b6a8796
Merge pull request #1211 from tt/remove-name-verification
...
Remove name verification
2015-12-03 11:59:21 -08:00
Richard Scothern
eef3382222
Merge pull request #1232 from pdevine/catalog-clarification
...
Clarify pagination for catalog API endpoint
2015-12-03 09:14:23 -08:00
Sven Dowideit
7d0d94814b
Small doc fixes found by the linkchecker
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2015-12-03 21:26:41 +10:00
Andrew Meredith
6357b02236
Escape dollar signs
...
If this example was copied and pasted, the shell would try to interpolate `$upstream_http_docker_distribution_api_version` and `$docker_distribution_api_version`.
Signed-off-by: Andrew Meredith <andymeredith@gmail.com>
2015-12-02 23:45:09 -07:00
Stephen Day
b66bb1287c
Merge pull request #1227 from stevvooe/walk-sorted
...
storage: enforce sorted traversal during Walk
2015-12-02 18:37:44 -08:00
Patrick Devine
b084c77c70
Clarify pagination for catalog API endpoint
...
This change clarifies the way the catalog endpoint returns results
when pagination was not explicitly requested.
Signed-off-by: Patrick Devine <patrick.devine@docker.com>
2015-12-02 18:02:51 -08:00
Stephen Day
2b63f65543
Merge pull request #1226 from aaronlehmann/avoid-stat-roundtrips
...
Avoid stat round-trips when fetching a blob
2015-12-02 16:09:29 -08:00
Tonis Tiigi
f015982f0f
Validate digest length on parsing
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2015-12-02 16:04:06 -08:00
Aaron Lehmann
6beeb935cd
Avoid stat round-trips when fetching a blob
...
Without this commit, three round-trips are required to fetch a blob with
a progress bar. The first is a call to Stat (HEAD request), to determine
the size. Then Open is called, which also calls Stat, and finally
performs a GET request.
Only the GET request is actually needed. The size of the blob can be
sniffed from Content-Length in the GET response.
This commit changes HTTPReadSeeker to automatically detect the size from
Content-Length instead of requiring it to be passed in. The Stat call is
removed from Open because it is no longer necessary.
HTTPReadSeeker now takes an additional errorHandler callback argument which
translates an unsuccessful HTTP response into an appropriate API-level
error. Using a callback for this makes it possible to avoid leaking the
repsonse body to Read's caller, which would make lifecycle management
problematic.
Fixes #1223
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-12-02 14:21:13 -08:00
Stephen J Day
8aa3ee6923
storage: add further tests for Walk implementation
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-12-01 16:55:10 -08:00
Stephen J Day
5d576bc0cd
storage: enforce sorted traversal during Walk
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-12-01 16:25:30 -08:00
Stephen J Day
6ad10796ef
storage: correctly handle error during Walk
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-12-01 16:25:29 -08:00
Troels Thomsen
300ce35c12
Map error type to error code
...
Signed-off-by: Troels Thomsen <troels@thomsen.io>
2015-12-01 22:26:37 +01:00
Troels Thomsen
1ece510198
Use well-known error type
...
Signed-off-by: Troels Thomsen <troels@thomsen.io>
2015-12-01 22:23:47 +01:00
Troels Thomsen
e2b4b426b4
Define error type
...
Signed-off-by: Troels Thomsen <troels@thomsen.io>
2015-12-01 22:23:38 +01:00
Richard Scothern
329c353411
Merge pull request #1225 from SvenDowideit/DOCS-227
...
TOC for configuration page incorrect
2015-12-01 09:57:45 -08:00
Sven Dowideit
9ec49c04fd
TOC for configuration page incorrect
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2015-12-01 14:07:55 +10:00
Richard Scothern
261ed7fa98
Merge pull request #1213 from SvenDowideit/move-to-docs-base-latest
...
Use FROM docs/base:latest again
2015-11-30 10:22:44 -08:00
Sven Dowideit
b43d0baec0
Use FROM docs/base:latest again
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2015-11-26 20:34:00 +10:00
Troels Thomsen
d309bce2d1
Verify manifest name format
...
Signed-off-by: Troels Thomsen <troels@thomsen.io>
2015-11-26 10:28:35 +01:00
Troels Thomsen
34c8194c95
Verify manifest name length
...
Signed-off-by: Troels Thomsen <troels@thomsen.io>
2015-11-26 10:28:28 +01:00
Troels Thomsen
e8f8f4034e
Remove name verification
...
Signed-off-by: Troels Thomsen <troels@thomsen.io>
2015-11-25 21:16:28 +01:00
Troels Thomsen
ca9f0451a6
Use case of type name
...
Signed-off-by: Troels Thomsen <troels@thomsen.io>
2015-11-25 21:12:49 +01:00
Richard Scothern
4874f111ea
Merge pull request #1208 from farmerworking/fix-oss-doc-error
...
Oss secure option default to true, Fix doc error
2015-11-25 11:25:25 -08:00
Richard Scothern
7647f7fe76
Merge pull request #1204 from MHBauer/gh1197
...
Formatting content digest calculation to avoid copyright symbols
2015-11-25 11:24:06 -08:00
farmerworking
8acf5a4d63
Oss secure option default to true, Fix doc error
...
Signed-off-by: farmerworking <farmerworking@gmail.com>
2015-11-25 12:38:44 +08:00
Olivier Gambier
d7a4f6cb6a
Merge pull request #1207 from Djelibeybi/master
...
Adding additional command to enable the shared system certificates
2015-11-24 15:49:58 -08:00
Avi Miller
a7199f5d7c
Fixed whitespace and made the command consistent with the other examples.
...
Signed-off-by: Avi Miller <avi.miller@oracle.com>
2015-11-25 10:41:40 +11:00
Avi Miller
b27d479ad5
Adding additional comment to enable the shared system certificates store.
...
Signed-off-by: Avi Miller <avi.miller@oracle.com>
2015-11-25 10:30:12 +11:00
Morgan Bauer
17d4e82944
Formatting content digest calculation to avoid copyright symbols
...
- resolves #1197
Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>
2015-11-24 10:13:34 -08:00
Richard Scothern
9c3c50faff
Merge pull request #1198 from jonboulle/master
...
README: fix formatting of docker-registry link
2015-11-23 10:14:31 -08:00
Sven Dowideit
54f9743402
Merge pull request #1193 from SvenDowideit/docs-validation-changes
...
Doc fixes found by validation job
2015-11-23 12:17:22 +10:00
Jonathan Boulle
23b1b12b10
README: fix formatting of docker-registry link
...
Signed-off-by: Jonathan Boulle <jonathanboulle@gmail.com>
2015-11-20 17:18:25 -08:00
Sven Dowideit
64bc8af1b9
Doc fixes found by validation job
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2015-11-20 12:21:03 +10:00
Stephen Day
0a3acb2625
Merge pull request #1166 from treed/master
...
De-obfuscate error message
2015-11-11 17:18:25 -08:00
Richard Scothern
9577d3053a
Merge pull request #910 from RichardScothern/go-1.5
...
Use go 1.5 on the build machine
2015-11-11 16:31:28 -08:00
Richard Scothern
c3c932f4e1
Use go 1.5 on the build machine
...
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2015-11-11 09:50:59 -08:00
Richard Scothern
bb745757de
Merge pull request #1125 from rustyconover/fix-url-path-escaping
...
Fix failing test case for URL escaping problem.
2015-11-10 16:50:55 -08:00
Richard Scothern
a33095af80
Merge pull request #1141 from lebauce/swift-no-missing-segment
...
Ensure read after write for segments
2015-11-10 10:39:43 -08:00
Richard Scothern
00aeb6ece7
Merge pull request #1172 from aaronlehmann/swift-empty-delete-request
...
Fix empty delete requests with Swift fs driver
2015-11-10 10:36:19 -08:00
Aaron Lehmann
6664a1384e
Fix empty delete requests with Swift fs driver
...
The Delete method lists objects under the given path and tries to delete
all of them with a bulk delete request. If the path has no objects
underneath it, the body of this request will be empty, which causes
HTTP-level issues. Specifically, Go's HTTP client senses the empty
request buffer and doesn't include a Content-Length, which causes the
Swift server to fail the request.
This commit fixes the problem by avoiding sending empty bulk delete
requests. This is the correct thing to do anyway, since there's no
reason to request deletion of zero objects.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-11-09 15:33:05 -08:00