René's URL Explorer Experiment


Title: Bind.parse() fails to handle Windows-style absolute paths with drive letters · Issue #2479 · docker-java/docker-java · GitHub

Open Graph Title: Bind.parse() fails to handle Windows-style absolute paths with drive letters · Issue #2479 · docker-java/docker-java

X Title: Bind.parse() fails to handle Windows-style absolute paths with drive letters · Issue #2479 · docker-java/docker-java

Description: Description When using Bind.parse() on Windows, if the bind string contains an absolute path with a drive letter (e.g. G:/path/to/folder:/container/path:rw), it fails with IllegalArgumentException due to incorrect parsing of the colon : ...

Open Graph Description: Description When using Bind.parse() on Windows, if the bind string contains an absolute path with a drive letter (e.g. G:/path/to/folder:/container/path:rw), it fails with IllegalArgumentException ...

X Description: Description When using Bind.parse() on Windows, if the bind string contains an absolute path with a drive letter (e.g. G:/path/to/folder:/container/path:rw), it fails with IllegalArgumentException ...

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

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bind.parse() fails to handle Windows-style absolute paths with drive letters","articleBody":"## Description\n\nWhen using `Bind.parse()` on Windows, if the bind string contains an absolute path with a drive letter (e.g. `G:/path/to/folder:/container/path:rw`), it fails with `IllegalArgumentException` due to incorrect parsing of the colon `:` in the drive letter.\n\n## Example\n\n```java\nString serialized = \"G:/zzcoder-judger-work/304bdf33-8970-4e06-a3d1-e10b7f162960:/app:rw\";\nBind bind = Bind.parse(serialized);\n````\n\n### Result\n\n```\njava.lang.IllegalArgumentException: Error parsing Bind 'G:/zzcoder-judger-work/304bdf33-8970-4e06-a3d1-e10b7f162960:/app:rw'\n\tat com.github.dockerjava.api.model.Bind.parse(Bind.java:...)\n...\n```\n\nThis is because `Bind.parse()` internally uses `split(\":(?!\\\\\\\\)\")`, which incorrectly splits the drive letter (`G:`) as a separate part, resulting in a malformed array of parts like:\n\n```\nparts[0] = \"G\"\nparts[1] = \"/zzcoder-judger-work/...\"\nparts[2] = \"/app\"\nparts[3] = \"rw\"\n```\n\nThus, the method throws `IllegalArgumentException`.\n\n## Expected Behavior\n\n`Bind.parse()` should handle valid Windows-style absolute paths that contain a colon (`:`) as part of the drive letter (e.g. `C:/...`, `D:/...`, etc.) and not split them incorrectly.\n\n## Environment\n\n* OS: Windows 11\n* docker-java version: 3.4.0\n* Java version:  17\n\n## Suggested Fix\n\nConsider improving the parser logic in `Bind.parse()` to:\n\n* Recognize Windows drive letters and handle them gracefully.\n* Avoid blindly splitting on `:` without checking the context.\n* Possibly introduce an overloaded method or helper for cross-platform compatibility.\n\nThanks for your support and for maintaining this useful library!","author":{"url":"https://github.com/zazhiii","@type":"Person","name":"zazhiii"},"datePublished":"2025-07-17T02:08:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2479/docker-java/issues/2479"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8497e8cf-5c1f-2ada-5736-8c92be2b15de
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE904:2D1CC6:28743FF:35AF048:6971C8CF
html-safe-noncebaa54eac569eb2b6ce00d5575434898a7df9f44becf026e987a6106ed6912ba1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTA0OjJEMUNDNjoyODc0M0ZGOjM1QUYwNDg6Njk3MUM4Q0YiLCJ2aXNpdG9yX2lkIjoiODYwODQzMTIzNTUwMTUwODgxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac93a419f1bbfb5ef1465171f2584adbaa4cc293bf27d6845ff9bb0717f72785f4
hovercard-subject-tagissue:3237845917
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/2479/issue_layout
twitter:imagehttps://opengraph.githubassets.com/82ceec148b2f8e9d36451967a5956eaf54bdb7506a7126843773015fea43ebba/docker-java/docker-java/issues/2479
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/82ceec148b2f8e9d36451967a5956eaf54bdb7506a7126843773015fea43ebba/docker-java/docker-java/issues/2479
og:image:altDescription When using Bind.parse() on Windows, if the bind string contains an absolute path with a drive letter (e.g. G:/path/to/folder:/container/path:rw), it fails with IllegalArgumentException ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamezazhiii
hostnamegithub.com
expected-hostnamegithub.com
Noneac615aa66802dad9a938c6abe95edf09ee43c0c7f508315b64b08612858ef32e
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
release6b618569a5f93e0b31f97f620112341421ef5f69
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/docker-java/docker-java/issues/2479#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdocker-java%2Fdocker-java%2Fissues%2F2479
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdocker-java%2Fdocker-java%2Fissues%2F2479
Sign up https://patch-diff.githubusercontent.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://patch-diff.githubusercontent.com/docker-java/docker-java/issues/2479
Reloadhttps://patch-diff.githubusercontent.com/docker-java/docker-java/issues/2479
Reloadhttps://patch-diff.githubusercontent.com/docker-java/docker-java/issues/2479
docker-java https://patch-diff.githubusercontent.com/docker-java
docker-javahttps://patch-diff.githubusercontent.com/docker-java/docker-java
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fdocker-java%2Fdocker-java
Fork 1.1k https://patch-diff.githubusercontent.com/login?return_to=%2Fdocker-java%2Fdocker-java
Star 3.2k https://patch-diff.githubusercontent.com/login?return_to=%2Fdocker-java%2Fdocker-java
Code https://patch-diff.githubusercontent.com/docker-java/docker-java
Issues 37 https://patch-diff.githubusercontent.com/docker-java/docker-java/issues
Pull requests 49 https://patch-diff.githubusercontent.com/docker-java/docker-java/pulls
Discussions https://patch-diff.githubusercontent.com/docker-java/docker-java/discussions
Actions https://patch-diff.githubusercontent.com/docker-java/docker-java/actions
Projects 0 https://patch-diff.githubusercontent.com/docker-java/docker-java/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/docker-java/docker-java/security
Please reload this pagehttps://patch-diff.githubusercontent.com/docker-java/docker-java/issues/2479
Insights https://patch-diff.githubusercontent.com/docker-java/docker-java/pulse
Code https://patch-diff.githubusercontent.com/docker-java/docker-java
Issues https://patch-diff.githubusercontent.com/docker-java/docker-java/issues
Pull requests https://patch-diff.githubusercontent.com/docker-java/docker-java/pulls
Discussions https://patch-diff.githubusercontent.com/docker-java/docker-java/discussions
Actions https://patch-diff.githubusercontent.com/docker-java/docker-java/actions
Projects https://patch-diff.githubusercontent.com/docker-java/docker-java/projects
Security https://patch-diff.githubusercontent.com/docker-java/docker-java/security
Insights https://patch-diff.githubusercontent.com/docker-java/docker-java/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/docker-java/docker-java/issues/2479
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/docker-java/docker-java/issues/2479
Bind.parse() fails to handle Windows-style absolute paths with drive lettershttps://patch-diff.githubusercontent.com/docker-java/docker-java/issues/2479#top
https://github.com/zazhiii
https://github.com/zazhiii
zazhiiihttps://github.com/zazhiii
on Jul 17, 2025https://github.com/docker-java/docker-java/issues/2479#issue-3237845917
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.