Closed
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-services://?action=download-manifest&url=https://theacmeinc.com/abcdefeg" )
print(vals)
newURL = urlunsplit((vals.scheme, vals.netloc, vals.path, vals.query, vals.params))
print( newURL )
prints:
ParseResult(scheme='itms-services', netloc='', path='', params='', query='action=download-manifest&url=https://theacmeinc.com/abcdefeg', fragment='')
itms-services:?action=download-manifest&url=https://theacmeinc.com/abcdefeg
Note the newURL is missing the // after the itms-services scheme.
This scheme is used to install ad-hoc and enterprise iOS apps.
Your environment
Tested on Apple M1 Max - 13.4 Beta (22F5049e)
Python: 3.10.10
For more details on the scheme here is a link to the Apple documentation (look for the "Use a website to distribute the app" section).
https://support.apple.com/en-gb/guide/deployment/depce7cefc4d/web
Linked PRs
Metadata
Metadata
Assignees
Labels
only security fixesonly security fixesPython modules in the Lib dirPython modules in the Lib dirAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or errorA feature request or enhancementA feature request or enhancement