Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
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/abcdefegNote 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