Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041891Retail ModulesWeb POSpublic2019-09-26 16:282019-10-16 14:05
salvador_campanella 
ranjith_qualiantech_com 
normalmajorunable to reproduce
closedfixed 
5
 
 
adrianromero
No
0041891: LogClientLoader fails when the context field have more than 255 characters
JSON extract of a windows of a custom module that use mobile core.

{
"created":1568817555105,
"createdby":"C36DBF2FE3B6XXXXX03D3E451C337AE",
"loglevel":"Info",
"msg":"Total time since logged in: 54.796 seconds; stackTrace: http:\/\/localhost:8080\/openbravo\/web\/js\/gen\/59ac6cfca590e89c710aaed4108138e8.js:777:235",
"deviceId":"VA01",
"context":"retail.warehouse.movement\/%7B%22title%22:%22De%20Vxxxia%20a%20Baxxlona%22,%22fromBin%22:%7B%22name%22:%22Txxnda%20Vaxxxcia%22,%22id%22:%229A9F875D76184B9xxxxxx34166EDB%22,%22readonly%22:true%7D,%22toBin%22:%7B%22name%22:%22Valencia%20-%20Badalona%20Tr%C3%A1nsito%22,%22id%22:%22AB1819BCC40xxxx946D0D8635A0D51%22,%22readonly%22:true%7D%7D",
"cacheSessionId":"D223D05xxxx299B431ADF954483A",
"link":"http:\/\/localhost:8080\/openbravo\/web\/js\/gen\/59ac6xxxxxx9c710aaed41xxxx8e8.js:197:142",
"isOnline":true
}
Because this error only appears in custom windows that using mobile core.
For the moment there are no steps to reproduce
No tags attached.
Issue History
2019-09-26 16:28salvador_campanellaNew Issue
2019-09-26 16:28salvador_campanellaAssigned To => Retail
2019-09-26 16:28salvador_campanellaResolution time => 1571263200
2019-09-26 16:28salvador_campanellaTriggers an Emergency Pack => No
2019-09-26 16:34PracticsIssue Monitored: Practics
2019-09-26 17:30gorka_gilNote Added: 0114820
2019-09-26 17:30gorka_gilIssue Monitored: gorka_gil
2019-10-01 13:32ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-10-01 13:33ranjith_qualiantech_comStatusnew => scheduled
2019-10-08 07:49hgbotCheckin
2019-10-08 07:49hgbotNote Added: 0114941
2019-10-08 07:49hgbotStatusscheduled => resolved
2019-10-08 07:49hgbotResolutionopen => fixed
2019-10-08 07:49hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/6712cbe71d5952fb4b6e026b95e18e444503e09e [^]
2019-10-16 14:05adrianromeroReview Assigned To => adrianromero
2019-10-16 14:05adrianromeroNote Added: 0115112
2019-10-16 14:05adrianromeroStatusresolved => closed

Notes
(0114820)
gorka_gil   
2019-09-26 17:30   
I think this issue has two parts:

 1.- Check in in LogClientLoader.java if the context is more than 255 and truncate in case that yes.
With this it will stop failing.

 2. Check with the reported the customization that was using the customer, and analyze if can be created a better context for this case, or in case that no, probably disable the context for this functionality.
(Maybe this can be reported in a different issue to not mix things)
(0114941)
hgbot   
2019-10-08 07:49   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 6712cbe71d5952fb4b6e026b95e18e444503e09e
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Oct 08 11:18:58 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/6712cbe71d5952fb4b6e026b95e18e444503e09e [^]

Fixed issue 41891 : Updated LogClientLoader to save context field with 255 characters

---
M src/org/openbravo/mobile/core/utils/LogClientLoader.java
---
(0115112)
adrianromero   
2019-10-16 14:05   
Verified