Bulk coupon code generation currently uses both uppercase and lowercase letters even though coupon code matching is case-insensitive due to default MySQL behavior. This means two coupon codes could be generated that would appear to be different even though either one might match on load (e.g., abcd and ABCD).

While we could change the database to use case-sensitive matching, this would not be backwards compatible. Let's instead update the CouponCodeGenerator to remove lowercase letters from generated patterns.

CommentFileSizeAuthor
#2 3454460-2.patch1.12 KBjsacksick

Comments

rszrama created an issue. See original summary.

jsacksick’s picture

Status: Active » Needs review
StatusFileSize
new1.12 KB

The attached should do.

  • jsacksick committed 03350c60 on 8.x-2.x
    Issue #3454460 by jsacksick, rszrama: Bulk generate coupons using...

  • jsacksick committed e1f5b8cc on 3.0.x
    Issue #3454460 by jsacksick, rszrama: Bulk generate coupons using...
jsacksick’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.