-
Notifications
You must be signed in to change notification settings - Fork 3
downloadApp fails when redirect location has funky unicode characters #1
Comments
do you have a config.xml handy so i can replicate this issue? having trouble getting it to fail. |
Sure - here is one lightly redacted. It occurs to me that node version might be part of it: |
yeah still cant reproduce on linux or mac. are you on windows? To see extra logging add the process as a debug event listerner like below: |
I'm on a Mac - 10.13.4. Node is v 8.2.1
|
Tried updating node (v10.1.0). Same result. |
ok it was PhoneGap Build that was sending a bad location header for api download requests which should be ascii encoded. deployed a fix for that on the server so it should be fine now. |
Yep confirmed thanks! |
For CLI 7.1.0 (and presumably all >= 7 versions), the redirect location of the download URL for the iOS app will have unicode characters e.g. é, which is not correctly handled by PGB, and ends up without the correct URL escaped location, which gives you a S3 error on the download.
To reproduce, you'll need to create an IOS app named with and é or the like, and attempt to downloaded via pgb.downloadApp.
I'll have a PR for your consideration up in a bit. You might have better ideas on how to fix, but this seems to address the issue.
The text was updated successfully, but these errors were encountered: