René's URL Explorer Experiment


Title: Start Container Constructs Incorrect POST · Issue #615 · docker-java/docker-java · GitHub

Open Graph Title: Start Container Constructs Incorrect POST · Issue #615 · docker-java/docker-java

X Title: Start Container Constructs Incorrect POST · Issue #615 · docker-java/docker-java

Description: In docker-java-3.0.0, the StartContainerCmdExec class sends a POST to the Docker API with garbage in the request body, resulting in an HTTP 400 or HTTP 500 (depending on the version of Docker.) This Scala program reproduces the error rel...

Open Graph Description: In docker-java-3.0.0, the StartContainerCmdExec class sends a POST to the Docker API with garbage in the request body, resulting in an HTTP 400 or HTTP 500 (depending on the version of Docker.) Thi...

X Description: In docker-java-3.0.0, the StartContainerCmdExec class sends a POST to the Docker API with garbage in the request body, resulting in an HTTP 400 or HTTP 500 (depending on the version of Docker.) Thi...

Opengraph URL: https://github.com/docker-java/docker-java/issues/615

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Start Container Constructs Incorrect POST","articleBody":"In docker-java-3.0.0,  the StartContainerCmdExec class sends a POST to the Docker API with garbage in the request body, resulting in an HTTP 400 or HTTP 500 (depending on the version of Docker.) \n\nThis Scala program reproduces the error reliably (against Docker 1.12):\n\n``` scala\npackage com.github.m4dc4p.dockerjava\n\nobject Main extends App {\n\n  import com.github.dockerjava.core._\n  import com.github.dockerjava.api._\n\n  val docker: DockerClient = DockerClientBuilder.getInstance(\n    DockerClientConfig.createDefaultConfigBuilder()\n      // .withDockerHost(\"tcp://127.0.0.1:2375\") // uncomment for windows\n      .withApiVersion(\"1.21\")\n      .build())\n    .build()\n\n  val container = docker.createContainerCmd(\"mysql/mysql-server:latest\")\n    .withEnv(\"MYSQL_ALLOW_EMPTY_PASSWORD=yes\")\n    .exec()\n\n  docker.startContainerCmd(container.getId).exec() // HTTP 500/HTTP 400\n}\n```\n\nHere is a trace of the relevant output. I marked the garbage in the body of  the POST request with `***`:\n\n```\n764  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003e\u003e \"POST /v1.21/containers/34e03000dab1be0bc41cd5acd55dae34aa2eb3b743c5c92b3a9c150209a42452/start HTTP/1.1[\\r][\\n]\"\n764  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003e\u003e \"Accept: application/json[\\r][\\n]\"\n764  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003e\u003e \"Content-Type: application/json[\\r][\\n]\"\n764  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003e\u003e \"User-Agent: Jersey/2.11 (Apache HttpClient 4.3.1)[\\r][\\n]\"\n764  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003e\u003e \"Transfer-Encoding: chunked[\\r][\\n]\"\n764  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003e\u003e \"Host: 127.0.0.1:2375[\\r][\\n]\"\n764  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003e\u003e \"Connection: Keep-Alive[\\r][\\n]\"\n764  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003e\u003e \"Accept-Encoding: gzip,deflate[\\r][\\n]\"\n764  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003e\u003e \"[\\r][\\n]\"\n***765  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003e\u003e \"2[\\r][\\n]\"\n***765  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003e\u003e \"{}[\\r][\\n]\"\n***765  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003e\u003e \"0[\\r][\\n]\"\n765  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003e\u003e \"[\\r][\\n]\"\n768  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003c\u003c \"HTTP/1.1 500 Internal Server Error[\\r][\\n]\"\n768  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003c\u003c \"Content-Length: 4[\\r][\\n]\"\n768  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003c\u003c \"Content-Type: text/plain; charset=utf-8[\\r][\\n]\"\n768  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003c\u003c \"Date: Tue, 21 Jun 2016 10:27:16 GMT[\\r][\\n]\"\n768  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003c\u003c \"Server: Docker/1.12.0-rc2 (linux)[\\r][\\n]\"\n768  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003c\u003c \"X-Content-Type-Options: nosniff[\\r][\\n]\"\n768  [main] DEBUG org.apache.http.wire  - http-outgoing-0 \u003c\u003c \"[\\r][\\n]\"\n768  [main] DEBUG org.apache.http.headers  - http-outgoing-0 \u003c\u003c HTTP/1.1 500 Internal Server Error\n```\n\nNote that removing the API version results in an HTTP 400.\n\nThe `.../start` endpoint supports a (deprecated) HostConfig JSON blob in the body, and docker-java must have supported that at some point. However, the `StartContainerCmd` interface does not allow you to add such a thing to the request, but `StartContainerCmdExec` contains some vestige of the old behavior and tries to add a JSON blob to the post body. The fix is simple - pass `null` to the `post` request in `com.github.dockerjava.jaxrs.StartContainerCmdExec#execute`.\n","author":{"url":"https://github.com/m4dc4p","@type":"Person","name":"m4dc4p"},"datePublished":"2016-06-21T23:34:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/615/docker-java/issues/615"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ef358306-508b-20d2-dacf-28c0d24464f7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAA74:5F375:9AF427:D6156E:69738615
html-safe-nonce58837cc5fa2b21216f24677f901dca30a12efe20b25ca92579ed6e26988f3b15
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTc0OjVGMzc1OjlBRjQyNzpENjE1NkU6Njk3Mzg2MTUiLCJ2aXNpdG9yX2lkIjoiMTE2ODE0MTk4NTcwOTc4NjY0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca24e6729a6bedff2ceef089b0afb3eabca09a993bbc549cccb2eb75b7371c906
hovercard-subject-tagissue:161563577
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/docker-java/docker-java/615/issue_layout
twitter:imagehttps://opengraph.githubassets.com/389656f414bffc68bcc66f6374bd0ef8198996ca6855aef221bfb09bcf050019/docker-java/docker-java/issues/615
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/389656f414bffc68bcc66f6374bd0ef8198996ca6855aef221bfb09bcf050019/docker-java/docker-java/issues/615
og:image:altIn docker-java-3.0.0, the StartContainerCmdExec class sends a POST to the Docker API with garbage in the request body, resulting in an HTTP 400 or HTTP 500 (depending on the version of Docker.) Thi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamem4dc4p
hostnamegithub.com
expected-hostnamegithub.com
Nonef0b5e2d1da32de5a0b7bcfbc5ba007c93e8e63098fba29e1200efb674aa72e66
turbo-cache-controlno-preview
go-importgithub.com/docker-java/docker-java git https://github.com/docker-java/docker-java.git
octolytics-dimension-user_id7772003
octolytics-dimension-user_logindocker-java
octolytics-dimension-repository_id20415251
octolytics-dimension-repository_nwodocker-java/docker-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20415251
octolytics-dimension-repository_network_root_nwodocker-java/docker-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec96653671324f9b6d4c5f787435acf56a06087dd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/docker-java/docker-java/issues/615#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdocker-java%2Fdocker-java%2Fissues%2F615
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdocker-java%2Fdocker-java%2Fissues%2F615
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=docker-java%2Fdocker-java
Reloadhttps://github.com/docker-java/docker-java/issues/615
Reloadhttps://github.com/docker-java/docker-java/issues/615
Reloadhttps://github.com/docker-java/docker-java/issues/615
docker-java https://github.com/docker-java
docker-javahttps://github.com/docker-java/docker-java
Notifications https://github.com/login?return_to=%2Fdocker-java%2Fdocker-java
Fork 1.1k https://github.com/login?return_to=%2Fdocker-java%2Fdocker-java
Star 3.2k https://github.com/login?return_to=%2Fdocker-java%2Fdocker-java
Code https://github.com/docker-java/docker-java
Issues 37 https://github.com/docker-java/docker-java/issues
Pull requests 49 https://github.com/docker-java/docker-java/pulls
Discussions https://github.com/docker-java/docker-java/discussions
Actions https://github.com/docker-java/docker-java/actions
Projects 0 https://github.com/docker-java/docker-java/projects
Security 0 https://github.com/docker-java/docker-java/security
Insights https://github.com/docker-java/docker-java/pulse
Code https://github.com/docker-java/docker-java
Issues https://github.com/docker-java/docker-java/issues
Pull requests https://github.com/docker-java/docker-java/pulls
Discussions https://github.com/docker-java/docker-java/discussions
Actions https://github.com/docker-java/docker-java/actions
Projects https://github.com/docker-java/docker-java/projects
Security https://github.com/docker-java/docker-java/security
Insights https://github.com/docker-java/docker-java/pulse
New issuehttps://github.com/login?return_to=https://github.com/docker-java/docker-java/issues/615
New issuehttps://github.com/login?return_to=https://github.com/docker-java/docker-java/issues/615
Start Container Constructs Incorrect POSThttps://github.com/docker-java/docker-java/issues/615#top
type/bughttps://github.com/docker-java/docker-java/issues?q=state%3Aopen%20label%3A%22type%2Fbug%22
3.0.3https://github.com/docker-java/docker-java/milestone/13
https://github.com/m4dc4p
https://github.com/m4dc4p
m4dc4phttps://github.com/m4dc4p
on Jun 21, 2016https://github.com/docker-java/docker-java/issues/615#issue-161563577
type/bughttps://github.com/docker-java/docker-java/issues?q=state%3Aopen%20label%3A%22type%2Fbug%22
3.0.3https://github.com/docker-java/docker-java/milestone/13
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.