Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0034479 | Retail Modules | StoreServer | public | 2016-11-11 17:25 | 2016-11-15 11:20 |
|
Reporter | AugustoMauch | |
Assigned To | AugustoMauch | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | RR17Q1 | |
Merge Request Status | |
Review Assigned To | mtaal |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0034479: The pingservice is not always properly fetched |
Description | The following code is used to obtain the ping service in :
String pingService = srv.getPingservice() != null ? srv.getPingservice()
: MobileServerUtils.OBWSPATH + MobileServerStatusInformation.class.getName();
Usually the srv.getPingservice() returns either null if it is not defined or an String representing the ping service, but sometimes it returns an empty string. If this happens, then the pingService variable contains an empty String, instead of the default ping service (MobileServerStatusInformation.class.getName()). |
Steps To Reproduce | I have not been able to reproduce it, but I have seen it reproduced in environments when this caused the store server offline->online transition to break.
|
Proposed Solution | Use !StringUtils.isBlank(srv.getPingservice()) instead of a null check to cover the case when the getPingservice method returns an empty string |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2016-11-11 17:25 | AugustoMauch | New Issue | |
2016-11-11 17:25 | AugustoMauch | Assigned To | => AugustoMauch |
2016-11-11 17:25 | AugustoMauch | Triggers an Emergency Pack | => No |
2016-11-11 17:54 | AugustoMauch | Review Assigned To | => mtaal |
2016-11-11 17:54 | hgbot | Checkin | |
2016-11-11 17:54 | hgbot | Note Added: 0091407 | |
2016-11-11 17:54 | hgbot | Status | new => resolved |
2016-11-11 17:54 | hgbot | Resolution | open => fixed |
2016-11-11 17:54 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/c8499556b98e606775f9e204a7f4c39a7e8c99bf [^] |
2016-11-15 11:20 | mtaal | Note Added: 0091549 | |
2016-11-15 11:20 | mtaal | Status | resolved => closed |
2016-11-15 11:20 | mtaal | Fixed in Version | => RR17Q1 |