Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0055121
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Retail API Gift Cardsmajoralways2024-04-08 11:192024-04-19 08:13
ReportergorkaionView Statuspublic 
Assigned ToRajesh_18 
PriorityhighResolutionfixedFixed in VersionRR24Q3
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0055121: Consume GiftCards API returns a 500 error when the coupon is consumed

DescriptionWhen 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 Reproduce1. 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 Solutionchange the response status to 2XX
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0055120 closedRajesh_18 Consume Coupons API returns a 500 error when the coupon is consumed 
depends on backport 0055260RR24Q2 closedRajesh_18 Consume GiftCards API returns a 500 error when the coupon is consumed 

-  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
Powered by Mantis Bugtracker