Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0046306 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS Hardware Manager | major | always | 2021-04-20 12:11 | 2021-05-10 07:45 | |||
Reporter | joniturralde93 | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | RR21Q3 | |||
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 | |||||||
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. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|||
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 | View Revisions |
2021-04-21 09:38 | joniturralde93 | Steps to Reproduce Updated | View Revisions |
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 |
Copyright © 2000 - 2009 MantisBT Group |