Openbravo Issue Tracking System - Retail Modules
View Issue Details
0049267Retail ModulesWeb POSpublic2022-05-09 14:292022-05-25 08:53
malsasua 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR22Q3 
No
0049267: ClientModel request is cached although request is returning an exception
When a compilation is done, and new sources are deployed, the ClientModel request is done to get the properties of "DAL" models and it is cached.

If this request returns one Exception (it is returning "200" but with exception" the request with exception is cached.

When the problem that it is causing the exception is fixed, as the request is cached, the till will execute the request but this request is cached, it is returning the Exception
1. mode NO development (no modules with the flag "in development" to Y)
2. compile and restart tomcat
3. do login in POS
4. stop tomcat
5. do one change in js code
6. in ./org.openbravo.mobile.core/src/org/openbravo/mobile/core/model/ClientModelComponent.java do a raise exception
7. compile
8. do login: ClientModel request will return 200 but with exception
  > error will be returned. Login is not possible
9. remove the change done in 6
10. do login: error is returned. Login is not possible
No tags attached.
png exceptionRequest.png (51,294) 2022-05-09 14:29
https://issues.openbravo.com/file_download.php?file_id=16996&type=bug
png
Issue History
2022-05-09 14:29malsasuaNew Issue
2022-05-09 14:29malsasuaAssigned To => Retail
2022-05-09 14:29malsasuaTriggers an Emergency Pack => No
2022-05-09 14:29malsasuaFile Added: exceptionRequest.png
2022-05-13 14:12ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2022-05-19 14:32ranjith_qualiantech_comStatusnew => scheduled
2022-05-24 06:51hgbotNote Added: 0137650
2022-05-25 08:53hgbotResolutionopen => fixed
2022-05-25 08:53hgbotStatusscheduled => closed
2022-05-25 08:53hgbotNote Added: 0137699
2022-05-25 08:53hgbotFixed in Version => RR22Q3
2022-05-25 08:53hgbotNote Added: 0137700

Notes
(0137650)
hgbot   
2022-05-24 06:51   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/370 [^]
(0137699)
hgbot   
2022-05-25 08:53   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/370 [^]
(0137700)
hgbot   
2022-05-25 08:53   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 9a582abd1686bb8a1a0a428df0c1c03f1522d8f3
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 25-05-2022 06:53:12
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/9a582abd1686bb8a1a0a428df0c1c03f1522d8f3 [^]

Fixed ISSUE-49267: Component Servlet should return status 500 when exception occurs

---
M src/org/openbravo/mobile/core/MobileCoreComponentServlet.java
---