Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional special characters in version_description causing 403 error #53

Closed
Kieran-rP opened this issue Feb 6, 2021 · 5 comments
Closed

Comments

@Kieran-rP
Copy link

Kieran-rP commented Feb 6, 2021

I'm getting a 403 error when deploying my application.
The problem seems to be my application version string 0.0.0-dev+440e3f0 which uses the + character to add commit hash metadata to the version number (as permitted by the semver spec)

This looks to be the same issue as #28 (and in particular @einaregilsson's fix mentioned here addresses some special characters, but not +).

Would it be possible to add + to the list of allowed (and escaped) characters?

@einaregilsson
Copy link
Collaborator

I just tried this and it worked for me.

Screenshot 2021-02-08 at 13 02 12

Did you perhaps mean the version_label, not the version_description?

@einaregilsson
Copy link
Collaborator

The version label gets used for the filename in S3 and I'm not sure that allows + in it.

@einaregilsson
Copy link
Collaborator

This should be fixed in version 15. We now change any characters that's not alphanumeric, a dash or and underscore in the S3 filename and replace it with a dash. But the version label in Elastic Beanstalk keeps all the special characters.

@einaregilsson
Copy link
Collaborator

Sorry, use v16 instead, that fixes some additional issues with * in version description and truncates commit messages that are too long to be used as a version description 🙂

@Kieran-rP
Copy link
Author

Awesome! Thanks @einaregilsson!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant