PWABuilder icon indicating copy to clipboard operation
PWABuilder copied to clipboard

[BUG] + in the name of an app causes a build issue

Open doublezze opened this issue 1 year ago • 10 comments

Link to the report card page

https://www.pwabuilder.com/reportcard?site=https://mbyapps.com/mbyappsportal.php

What Store were you trying to package for?

Android Google Play

What is the error message you received?

Internal Server Error

Status code: 500. Error generating app package: Command failed: ./gradlew assembleRelease

Paste your stack trace below

The site I was testing is: https://mbyapps.com/mbyappsportal.php undefined

What environment were you using?

Windows 10

Additional context

None

doublezze avatar Aug 16 '24 05:08 doublezze

It seems related to the "+" plus sign in your app name, I found a workaround that you can try:

Expand all settings: image

Find the Signing key section and remove the plus sign: image

After this change it worked for me to download your package. I kept app and short names w/ plus sign. Still a bug to fix, but sharing the workaround. image

maiconcarraro avatar Aug 16 '24 12:08 maiconcarraro

@maiconcarraro do you think this is a bug in PWABuilder or in the android build tools? Hard to tell where this bug is coming from.

jgw96 avatar Aug 19 '24 17:08 jgw96

@jgw96 well, its more related to UX/DX, either PWABuilder or bubblewrap could sanitise/automatically escape these special characters when generating the key, I dont think its a bug because it will happen anyway if you try keytool directly w/ same args https://stackoverflow.com/a/11809689/3257568

I'd say that would be better to PWABuilder validate/escape since it automatically prefill the inputs for a new key, and especially validate user inputs to prevent the fail, but its up to you to decide on this behavior. The main issue is the unfriendly exception, if it correctly gives feedback to the user that is an invalid input, should be good.

maiconcarraro avatar Aug 19 '24 18:08 maiconcarraro

@jgw96 actually, we can say it's a bug because the options are kinda "hidden" inside of the settings image

so for new users they will have no idea what is the problem, so the correct approach is to escape/remove the characters when prefilling.

maiconcarraro avatar Aug 19 '24 18:08 maiconcarraro

I agree with this, we should update our form validation to warn about the + character.

jgw96 avatar Aug 19 '24 19:08 jgw96

@jgw96 another person had the same issue but with "&", source: https://discord.com/channels/930156205542883409/930871438666235964/1275537693899620394 just to add more context

maiconcarraro avatar Aug 20 '24 19:08 maiconcarraro

Maicon's workaround worked!! Thanks. I'll proceed to test the Android Google Play package. The Windows package though successfully downloaded has an incorrect app name mbyapps+ - mbyappsportal instead of just mbyapps+

doublezze avatar Aug 21 '24 01:08 doublezze

Both Windows and Android packages have incorrect app names. Windows show the name as mbyapps+ - mbyappsportal while Android has name as mbyapps.com. Is this a settings issue on my part or a bug?

doublezze avatar Aug 21 '24 22:08 doublezze

@doublezze can you send a screenshot of the settings you used for packaging either app?

jgw96 avatar Aug 27 '24 16:08 jgw96

Screenshot_28-8-2024_0736_www pwabuilder com Screenshot_28-8-2024_0639_www pwabuilder com Screenshot_28-8-2024_0639_www pwabuilder com Screenshot_28-8-2024_0736_www pwabuilder com

doublezze avatar Aug 28 '24 04:08 doublezze

Thanks, Justin.

Sent from the all new AOL app for iOS

On Wednesday, October 9, 2024, 12:55 PM, Justin Willis @.***> wrote:

Closed #4791 as completed via #4828.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

doublezze avatar Oct 09 '24 22:10 doublezze