Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0055120 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Retail API | major | always | 2024-04-08 11:14 | 2024-04-19 08:13 | |||
Reporter | gorkaion | View Status | public | |||||
Assigned To | Rajesh_18 | |||||||
Priority | high | Resolution | fixed | Fixed in Version | RR24Q3 | |||
Status | closed | 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 | SCM revision | |||||||
Review Assigned To | marvintm | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0055120: Consume Coupons API returns a 500 error when the coupon is consumed | |||||||
Description | When the Coupons API is called with a coupon that it is already consumed the response has 500 status. The expected result is a 2XX status with an error message since the call has not fail technically. | |||||||
Steps To Reproduce | 1. Create a coupon in backend for a single use. 2. Check using the API that the coupon code is available using /org.openbravo.api.ExportService/Coupon/byCouponCode 3. Consume the coupon using /ws/org.openbravo.retail.discounts.coupons.api.ConsumeCoupon the response is 2XX 4. Check again the coupon and notice the coupon is already used. 5. Try to consume again the coupon using the ConsumeCoupon api, notice that the response is a 500 error. This is wrong, status should be 2XX with a message indicating that the coupon is already expired/consumed/... | |||||||
Proposed Solution | change the response status to 2XX | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||||||||
|
![]() |
|||
Date Modified | Username | Field | Change |
2024-04-08 11:14 | gorkaion | New Issue | |
2024-04-08 11:14 | gorkaion | Assigned To | => Triage Platform Conn |
2024-04-08 11:14 | gorkaion | Triggers an Emergency Pack | => No |
2024-04-08 11:19 | gorkaion | Issue cloned | 0055121 |
2024-04-08 11:19 | gorkaion | Relationship added | related to 0055121 |
2024-04-08 11:20 | gorkaion | Assigned To | Triage Platform Conn => Retail |
2024-04-08 11:23 | marvintm | Status | new => acknowledged |
2024-04-11 08:21 | Rajesh_18 | Assigned To | Retail => Rajesh_18 |
2024-04-11 08:21 | Rajesh_18 | Status | acknowledged => scheduled |
2024-04-16 11:23 | hgbot | Note Added: 0163259 | |
2024-04-16 12:19 | hgbot | Note Added: 0163273 | |
2024-04-16 12:20 | hgbot | Note Added: 0163274 | |
2024-04-18 13:23 | hgbot | Resolution | open => fixed |
2024-04-18 13:23 | hgbot | Status | scheduled => closed |
2024-04-18 13:23 | hgbot | Note Added: 0163373 | |
2024-04-18 13:23 | hgbot | Note Added: 0163374 | |
2024-04-19 08:12 | marvintm | Status | closed => new |
2024-04-19 08:12 | marvintm | Resolution | fixed => open |
2024-04-19 08:12 | marvintm | Status | new => scheduled |
2024-04-19 08:12 | marvintm | Status | scheduled => resolved |
2024-04-19 08:12 | marvintm | Fixed in Version | => RR24Q3 |
2024-04-19 08:12 | marvintm | Resolution | open => fixed |
2024-04-19 08:13 | marvintm | Review Assigned To | => marvintm |
2024-04-19 08:13 | marvintm | Status | resolved => closed |
Copyright © 2000 - 2009 MantisBT Group |