Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0055121 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Retail API Gift Cards | major | always | 2024-04-08 11:19 | 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 | 0055121: Consume GiftCards API returns a 500 error when the coupon is consumed | |||||||
Description | When the Consume Giftcards API is called with a giftcard that it is already closed 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 new GiftCard instance. 2. Check using the API that the giftcard is available using /org.openbravo.api.ExportService/GiftCard/bySearchKey 3. Consume completelly (with an amount higher than the available) the giftcard using /ws/org.openbravo.retail.api.giftcards.ImportService/ConsumeGiftCard the response is 2XX 4. Check again the giftcard and notice it is closed. 5. Try to consume again the giftcards using the ConsumeGiftcard api, notice that the response is a 500 error. This is wrong, status should be 2XX with a message indicating that the giftcard is already expired/consumed/... | |||||||
Proposed Solution | change the response status to 2XX | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||
|
Notes | |
(0163281) hgbot (developer) 2024-04-16 13:06 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api.giftcards/-/merge_requests/34 [^] |
(0163376) hgbot (developer) 2024-04-18 13:25 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api.giftcards [^] Changeset: 916898b0b4dcbd9654b6f3a875be4e2d35b80996 Author: Rajesh Senthilkumar <rajesh@qualiantech.com> Date: 16-04-2024 16:33:16 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api.giftcards/-/commit/916898b0b4dcbd9654b6f3a875be4e2d35b80996 [^] Fixed ISSUE-55121: Catched OBException and returned the response status as 200 --- M src/org/openbravo/retail/api/giftcards/service/ConsumeGiftCardApiImportWebService.java --- |
(0163377) hgbot (developer) 2024-04-18 13:25 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.api.giftcards/-/merge_requests/34 [^] |
Issue History | |||
Date Modified | Username | Field | Change |
2024-04-08 11:19 | gorkaion | New Issue | |
2024-04-08 11:19 | gorkaion | Assigned To | => Retail |
2024-04-08 11:19 | gorkaion | Triggers an Emergency Pack | => No |
2024-04-08 11:19 | gorkaion | Issue generated from | 0055120 |
2024-04-08 11:19 | gorkaion | Relationship added | related to 0055120 |
2024-04-08 11:23 | marvintm | Status | new => acknowledged |
2024-04-15 06:39 | Rajesh_18 | Assigned To | Retail => Rajesh_18 |
2024-04-15 06:39 | Rajesh_18 | Status | acknowledged => scheduled |
2024-04-16 13:06 | hgbot | Note Added: 0163281 | |
2024-04-18 13:25 | hgbot | Resolution | open => fixed |
2024-04-18 13:25 | hgbot | Status | scheduled => closed |
2024-04-18 13:25 | hgbot | Note Added: 0163376 | |
2024-04-18 13:25 | hgbot | Note Added: 0163377 | |
2024-04-19 08:13 | marvintm | Status | closed => new |
2024-04-19 08:13 | marvintm | Resolution | fixed => open |
2024-04-19 08:13 | marvintm | Status | new => scheduled |
2024-04-19 08:13 | marvintm | Status | scheduled => resolved |
2024-04-19 08:13 | marvintm | Fixed in Version | => RR24Q3 |
2024-04-19 08:13 | 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 |