1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon
Boaz Shuster e050f1760d Fix the create API when fromSrc has a bad URL
When sending a bad URL in the fromSrc parameter using cURL
the response will have status code 200 while it should have 404
or 500 (depends on the error).

This commit addresses this problem in the following ways:
 * Before, `src` was parsed using url.Parse and if the
   returned `url.Scheme` was empty it was set to 'http'
   and `url.Host` was set to `src`.
   This is bad because if `src` was 'web.com/tars/image1.tar'
   The `url.String()` returns 'web.com%2Ftars%2Fimage1.tar`
   which will cause the daemon to fail downloading the file
 * Before writing the "Downloading" message, the image
   is attempted to be downloaded and if there is no error
   the "Downloading" message is sent.

Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>
2017-03-26 15:21:13 +03:00
..
caps
cluster Merge pull request #30457 from dmcgowan/distribution-reference-update-2 2017-02-07 22:01:25 +01:00
events Use distribution reference 2017-02-07 11:08:37 -08:00
exec
graphdriver Fix RefCounter count return 2017-02-03 08:47:55 -08:00
initlayer Implement content addressability for plugins 2016-12-23 13:29:58 -08:00
links
logger Merge pull request #30694 from godefroi/26937-fix-rfc5424-log-format-1 2017-02-07 23:22:39 +01:00
network
stats Extract daemon statsCollector to its own package 2017-01-04 18:18:30 +01:00
apparmor_default.go
apparmor_default_unsupported.go
archive.go
archive_unix.go
archive_windows.go
attach.go Resolve race conditions in attach API call 2017-02-01 09:01:36 +00:00
auth.go
bindmount_solaris.go
bindmount_unix.go
cache.go Extract the daemon image cache to its own package 2017-01-03 19:19:27 +01:00
changes.go
checkpoint.go Move names to package api 2016-12-21 22:42:47 +01:00
cluster.go
commit.go Use distribution reference 2017-02-07 11:08:37 -08:00
config.go sort volume drivers and auth plugins in info response 2017-02-01 12:01:49 +08:00
config_common_unix.go Clean some stuff from runconfig that are cli only… 2016-12-24 13:16:00 +01:00
config_experimental.go
config_solaris.go
config_test.go
config_unix.go Add daemon option --default-shm-size 2017-01-27 12:17:06 -08:00
config_unix_test.go Add daemon option --default-shm-size 2017-01-27 12:17:06 -08:00
config_windows.go Update docker daemon to dockerd 2016-12-27 17:32:15 +08:00
config_windows_test.go
container.go remove Register return value 2017-02-06 12:44:24 +08:00
container_linux.go Added an apparmorEnabled boolean in the Daemon struct to indicate if AppArmor is enabled or not. It is set in NewDaemon using sysInfo information. 2017-01-30 16:23:23 +01:00
container_operations.go Merge pull request #30117 from msabansal/natfix 2017-01-31 11:05:29 +01:00
container_operations_solaris.go
container_operations_unix.go Add daemon option --default-shm-size 2017-01-27 12:17:06 -08:00
container_operations_windows.go
container_windows.go Added an apparmorEnabled boolean in the Daemon struct to indicate if AppArmor is enabled or not. It is set in NewDaemon using sysInfo information. 2017-01-30 16:23:23 +01:00
create.go remove Register return value 2017-02-06 12:44:24 +08:00
create_unix.go
create_windows.go
daemon.go Use distribution reference 2017-02-07 11:08:37 -08:00
daemon_experimental.go
daemon_linux.go Add Windows specific exec root for plugins. 2017-02-02 14:00:12 -08:00
daemon_linux_test.go
daemon_solaris.go Use distribution reference 2017-02-07 11:08:37 -08:00
daemon_test.go support registry mirror config reload 2017-01-04 11:04:00 +08:00
daemon_unix.go Merge pull request #29692 from yongtang/29492-daemon-shm-size 2017-02-01 16:56:10 +01:00
daemon_unix_test.go
daemon_unsupported.go
daemon_windows.go Add Windows specific exec root for plugins. 2017-02-02 14:00:12 -08:00
debugtrap.go
debugtrap_unix.go
debugtrap_unsupported.go
debugtrap_windows.go
delete.go Extract daemon statsCollector to its own package 2017-01-04 18:18:30 +01:00
delete_test.go
discovery.go
discovery_test.go
disk_usage.go *: use opencontainers/go-digest package 2017-01-06 18:48:41 -08:00
errors.go Use distribution reference 2017-02-07 11:08:37 -08:00
events.go
events_test.go
exec.go Resolve race conditions in attach API call 2017-02-01 09:01:36 +00:00
exec_linux.go
exec_solaris.go
exec_windows.go
export.go
getsize_unix.go
health.go
health_test.go Enhance pkg/{httputils,integration}, distribution/xfer unit tests 2016-12-28 11:54:05 +01:00
image.go Use distribution reference 2017-02-07 11:08:37 -08:00
image_delete.go Use distribution reference 2017-02-07 11:08:37 -08:00
image_exporter.go
image_history.go Use distribution reference 2017-02-07 11:08:37 -08:00
image_inspect.go Use distribution reference 2017-02-07 11:08:37 -08:00
image_pull.go Use distribution reference 2017-02-07 11:08:37 -08:00
image_push.go Use distribution reference 2017-02-07 11:08:37 -08:00
image_tag.go Use distribution reference 2017-02-07 11:08:37 -08:00
images.go Use distribution reference 2017-02-07 11:08:37 -08:00
import.go Fix the create API when fromSrc has a bad URL 2017-03-26 15:21:13 +03:00
info.go sort volume drivers and auth plugins in info response 2017-02-01 12:01:49 +08:00
info_unix.go
info_windows.go
inspect.go
inspect_solaris.go
inspect_unix.go
inspect_windows.go
keys.go
keys_unsupported.go change minor mistake of spelling 2016-12-20 21:05:19 +08:00
kill.go fix nits in comments 2016-12-27 23:30:50 +08:00
links.go
list.go Add publish and expose filter for docker ps --filter 2017-01-27 13:25:32 -08:00
list_unix.go
list_windows.go
logdrivers_linux.go
logdrivers_windows.go
logs.go Close logwatcher on context cancellation 2017-01-17 14:36:13 -08:00
logs_test.go
metrics.go
monitor.go
monitor_linux.go
monitor_solaris.go
monitor_windows.go
mounts.go
names.go Use quoted form of container name and container id 2017-01-17 08:26:05 +00:00
network.go getAllNetworks unnecessary walks all the networks 2017-02-06 16:37:51 -08:00
oci_linux.go Allow adding rules to cgroup devices.allow on container create/run 2017-01-26 07:20:45 -08:00
oci_solaris.go
oci_windows.go Windows: Unify workdir handling 2017-02-02 11:25:07 -08:00
pause.go
prune.go Use distribution reference 2017-02-07 11:08:37 -08:00
rename.go Fix rename error when sid is empty 2017-01-11 21:35:59 +08:00
resize.go
restart.go
search.go
search_test.go Remove redundant format 2016-12-27 21:46:52 +08:00
seccomp_disabled.go
seccomp_linux.go
seccomp_unsupported.go
secrets.go
secrets_linux.go
secrets_unsupported.go
selinux_linux.go
selinux_unsupported.go
start.go Added an apparmorEnabled boolean in the Daemon struct to indicate if AppArmor is enabled or not. It is set in NewDaemon using sysInfo information. 2017-01-30 16:23:23 +01:00
start_unix.go daemon: honor default runtime when starting containers 2017-01-12 20:36:22 +01:00
start_windows.go Added support for dns-search and fixes #30102 2017-01-13 12:01:10 -08:00
stats.go Extract daemon statsCollector to its own package 2017-01-04 18:18:30 +01:00
stats_collector.go Extract daemon statsCollector to its own package 2017-01-04 18:18:30 +01:00
stats_unix.go
stats_windows.go
stop.go fix nits in comments 2016-12-27 23:30:50 +08:00
top_unix.go Convert ContainerTopOKResponse from swagger spec. 2017-01-03 11:47:47 -05:00
top_unix_test.go
top_windows.go Convert ContainerTopOKResponse from swagger spec. 2017-01-03 11:47:47 -05:00
unpause.go
update.go
update_linux.go
update_solaris.go
update_windows.go
volumes.go Fix duplicate mount point for --volumes-from in docker run 2017-02-07 08:30:56 -08:00
volumes_unit_test.go
volumes_unix.go
volumes_windows.go
wait.go
workdir.go Ignore the daemon log config when building images. 2017-01-30 10:59:19 -05:00