Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0046306 | Retail Modules | Web POS Hardware Manager | public | 2021-04-20 12:11 | 2021-05-10 07:45 |
Reporter | joniturralde93 | ||||
Assigned To | ranjith_qualiantech_com | ||||
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | RR21Q3 | |||
Merge Request Status | approved | ||||
Review Assigned To | |||||
OBNetwork customer | Gold | ||||
Support ticket | 21424 | ||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0046306: Number format exception in RFIDencoding | ||||
Description | In this line: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.poshwmanager.sources/-/blob/master/project/src/com/openbravo/pos/util/RFIDEncoding.java#L58 [^] .leftPad(String.valueOf(Integer.parseInt(binaryCompanyPrefix, 2)), 13 - partition, '0'); There are cases where binaryCompanyPrefix is too large for the int type and it is necessary to use Long. Long.parseLong instead of Integer.parseInt Edit: - It seems BigInteger could be needed in some circumstances. - It would be nice to have a log added where we get printed the scanned tag in case some of these conversions fail. | ||||
Steps To Reproduce | Just use screen mode with RFID and enter this tag: E2806890000050031ED6C16D Or debug that part of the code and manually modify the value of binaryCompanyPrefix | ||||
Proposed Solution | Long.parseLong instead of Integer.parseInt Edit: - It seems BigInteger could be needed in some circumstances. - It would be nice to have a log added where we get printed the scanned tag in case some of these conversions fail. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2021-04-20 12:11 | joniturralde93 | New Issue | |||
2021-04-20 12:11 | joniturralde93 | Assigned To | => Retail | ||
2021-04-20 12:11 | joniturralde93 | OBNetwork customer | => Gold | ||
2021-04-20 12:11 | joniturralde93 | Support ticket | => 21424 | ||
2021-04-20 12:11 | joniturralde93 | Resolution time | => 1620684000 | ||
2021-04-20 12:11 | joniturralde93 | Triggers an Emergency Pack | => No | ||
2021-04-21 09:38 | joniturralde93 | Description Updated | bug_revision_view_page.php?rev_id=22352#r22352 | ||
2021-04-21 09:38 | joniturralde93 | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=22354#r22354 | ||
2021-04-21 09:38 | joniturralde93 | Proposed Solution updated | |||
2021-04-21 15:20 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
2021-04-26 07:56 | hgbot | Merge Request Status | => open | ||
2021-04-26 07:56 | hgbot | Note Added: 0127528 | |||
2021-04-26 07:57 | hgbot | Note Added: 0127529 | |||
2021-05-05 14:39 | ranjith_qualiantech_com | Status | new => scheduled | ||
2021-05-10 07:45 | hgbot | Merge Request Status | open => approved | ||
2021-05-10 07:45 | hgbot | Note Added: 0127920 | |||
2021-05-10 07:45 | hgbot | Note Added: 0127921 | |||
2021-05-10 07:45 | hgbot | Resolution | open => fixed | ||
2021-05-10 07:45 | hgbot | Status | scheduled => closed | ||
2021-05-10 07:45 | hgbot | Fixed in Version | => RR21Q3 | ||
2021-05-10 07:45 | hgbot | Note Added: 0127922 | |||
2021-05-10 07:45 | hgbot | Note Added: 0127923 |