mitodl/ol-django

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

Opened this issue · 0 comments

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.