Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0029707 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
defect | [Retail Modules] Discounts and Promotions | minor | always | 2015-04-27 16:02 | 2015-04-27 16:02 | |||||||
Reporter | plujan | View Status | public | |||||||||
Assigned To | Retail | |||||||||||
Priority | normal | Resolution | open | Fixed in Version | ||||||||
Status | new | Fix in branch | Fixed in SCM revision | |||||||||
Projection | none | ETA | none | Target Version | ||||||||
OS | Any | Database | Any | Java version | ||||||||
OS Version | Database version | Ant version | ||||||||||
Product Version | main | SCM revision | ||||||||||
Review Assigned To | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0029707: [Coupons] Generating more codes than upper limit of code combinations blocks the system | |||||||||||
Description | Generation of codes has an upper limit considering the type (numeric, letters or mixed) and the number of digits/letters. However, I can request more coupons. This upper limit is not checked and the system does not finish processing because of this. See steps. | |||||||||||
Steps To Reproduce | 1. On a system having Coupons and Code Generator modules installed, login as White Valle admin. 2. Go to Discounts and Promotions window 3. Click on Generate Code button 4. On the pop up, select "Only numbers", code length 1, number of codes 11 Since there are only 10 possibilities for one digit code, the eleventh code is never found and the system does not detect that it is in an infinite loop. | |||||||||||
Proposed Solution | One option is to verify the possibilities before trying to calculate them, throwing an error if there are less than the desired number of coupons. However, already generated coupons should be also taken into accounts. Lets say I've generated 6 coupons using one digit code, if I execute the process again, 6 coupons seems fine, but since I've already created 6, it will not finish neither. Also, if I create 30 letters&numbers some numbers will be used so the number of available numbers is unknown. | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | ||||||||||||
![]() |
|
![]() |
|||
Date Modified | Username | Field | Change |
2015-04-27 16:02 | plujan | New Issue | |
2015-04-27 16:02 | plujan | Assigned To | => Retail |
2015-04-27 16:02 | plujan | Triggers an Emergency Pack | => No |
Copyright © 2000 - 2009 MantisBT Group |