Title: urlunsplit for itms-services scheme returns invalid url · Issue #104139 · python/cpython · GitHub
Open Graph Title: urlunsplit for itms-services scheme returns invalid url · Issue #104139 · python/cpython
X Title: urlunsplit for itms-services scheme returns invalid url · Issue #104139 · python/cpython
Description: Relating to a Werkzueg issue (pallets/werkzeug#2691), when parsing an iOS App install url e.g. itms-services:action=download-manifest&url=https://theacmeinc.com/abcdefeg, urlunpslit returns an invalid url. e.g. vals = urlparse( "itms-ser...
Open Graph Description: Relating to a Werkzueg issue (pallets/werkzeug#2691), when parsing an iOS App install url e.g. itms-services:action=download-manifest&url=https://theacmeinc.com/abcdefeg, urlunpslit returns an inva...
X Description: Relating to a Werkzueg issue (pallets/werkzeug#2691), when parsing an iOS App install url e.g. itms-services:action=download-manifest&url=https://theacmeinc.com/abcdefeg, urlunpslit returns an ...
Opengraph URL: https://github.com/python/cpython/issues/104139
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"urlunsplit for itms-services scheme returns invalid url","articleBody":"Relating to a Werkzueg issue (https://github.com/pallets/werkzeug/issues/2691), when parsing an iOS App install url e.g.\r\nitms-services:action=download-manifest\u0026url=https://theacmeinc.com/abcdefeg, urlunpslit returns an invalid url.\r\n\r\ne.g.\r\n\r\n```from urllib.parse import urlparse, urlunsplit\r\nvals = urlparse( \"itms-services://?action=download-manifest\u0026url=https://theacmeinc.com/abcdefeg\" )\r\nprint(vals)\r\n\r\nnewURL = urlunsplit((vals.scheme, vals.netloc, vals.path, vals.query, vals.params))\r\nprint( newURL )\r\n```\r\n\r\nprints:\r\n```\r\nParseResult(scheme='itms-services', netloc='', path='', params='', query='action=download-manifest\u0026url=https://theacmeinc.com/abcdefeg', fragment='')\r\n\r\nitms-services:?action=download-manifest\u0026url=https://theacmeinc.com/abcdefeg\r\n```\r\n\r\nNote the newURL is missing the // after the itms-services scheme.\r\n\r\nThis scheme is used to install ad-hoc and enterprise iOS apps.\r\n\r\n# Your environment\r\nTested on Apple M1 Max - 13.4 Beta (22F5049e)\r\nPython: 3.10.10 \r\n\r\nFor more details on the scheme here is a link to the Apple documentation (look for the \"Use a website to distribute the app\" section).\r\nhttps://support.apple.com/en-gb/guide/deployment/depce7cefc4d/web\r\n\r\n\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-104312\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/AndyQ","@type":"Person","name":"AndyQ"},"datePublished":"2023-05-03T18:04:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/104139/cpython/issues/104139"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:24e424f2-c42d-8fd5-9de4-f5c02496d748 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADBC:249571:17853F8:1F989BA:6969A9B3 |
| html-safe-nonce | b931fccd8aef6bcdaf62fe7a6147655aee83e43a62b250aaa61c61d6f95fec03 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREJDOjI0OTU3MToxNzg1M0Y4OjFGOTg5QkE6Njk2OUE5QjMiLCJ2aXNpdG9yX2lkIjoiNDQzMzczOTgxNzExMTEwMzkyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1e781c7bea118b6d464d750b07bcdff3e63bcc857437fd31028bb2504c48f1d7 |
| hovercard-subject-tag | issue:1694556063 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/104139/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f74fae3bf7c21ba38aa05c3e0a925da38e8dd9aef0510ae07e4fd8381b756ca5/python/cpython/issues/104139 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f74fae3bf7c21ba38aa05c3e0a925da38e8dd9aef0510ae07e4fd8381b756ca5/python/cpython/issues/104139 |
| og:image:alt | Relating to a Werkzueg issue (pallets/werkzeug#2691), when parsing an iOS App install url e.g. itms-services:action=download-manifest&url=https://theacmeinc.com/abcdefeg, urlunpslit returns an inva... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AndyQ |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width