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

CyberSource library uses some out-of-date regexes, generates a lot of chatter when starting apps #151

Open
jkachel opened this issue Apr 2, 2024 · 0 comments
Assignees
Labels
Bug Something isn't working

Comments

@jkachel
Copy link
Contributor

jkachel commented Apr 2, 2024

The version of the CyberSource payment gateway library that was current when this was last used seems to have some issues with regular expressions - upon starting an app that uses the payment_gateway app, you get a bunch of messages like this:

web-1     | /usr/local/lib/python3.12/site-packages/CyberSource/models/boardingv1registrations_organization_information_business_information.py:136: SyntaxWarning: invalid escape sequence '\/'
web-1     |   raise ValueError("Invalid value for `name`, must be a follow pattern or equal to `/^[0-9a-zA-Z _\\-\\+\\.\\*\\\"\/'&\\,\\(\\)!$;:?@\\#¡-�]+$/`")
web-1     | /usr/local/lib/python3.12/site-packages/CyberSource/models/boardingv1registrations_organization_information_business_information.py:158: SyntaxWarning: invalid escape sequence '\/'

These seem to be mostly in a section of the library that we don't use, so these don't cause an issue for running code; they are annoying, though, and the library gets updated pretty frequently so it should be rebuilt to get a newer version in place.

Expected Behavior

You don't get a bunch of messages on app startup.

Current Behavior

You do get a bunch of messages on app startup.

Steps to Reproduce

Start an app that uses payment_gateway (like MITx Online).

Possible Solution

Bump the lower bound of the requirement and rebuild/release.

@jkachel jkachel added the Bug Something isn't working label Apr 2, 2024
@jkachel jkachel self-assigned this Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant