Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0034431 | Retail Modules | Web POS | public | 2016-11-08 17:04 | 2016-11-22 18:48 |
Reporter | guillermogil | ||||
Assigned To | ranjith_qualiantech_com | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | RR17Q1 | |||
Merge Request Status | |||||
Review Assigned To | marvintm | ||||
OBNetwork customer | OBPS | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0034431: If a module add some properties with QueryTerminalProperty if it does not return anything you cannot login on WebPOS | ||||
Description | If a module add some properties with QueryTerminalProperty if it does not return anything you cannot login on WebPOS. If it returns some value it works perfectly. | ||||
Steps To Reproduce | Create a module with the following code: import java.util.Arrays; import java.util.List; import org.codehaus.jettison.json.JSONException; import org.codehaus.jettison.json.JSONObject; import org.openbravo.retail.posterminal.term.QueryTerminalProperty; public class NewTerminalProperties extends QueryTerminalProperty { @Override protected boolean isAdminMode() { return true; } @Override protected List<String> getQuery(JSONObject jsonsent) throws JSONException { return Arrays.asList(new String[] { "QUERY" }); } @Override public String getProperty() { return "decriConfiguration"; } @Override public boolean returnList() { return true; } } Add the query desired that will not return anything. Login on WebPOS | ||||
Proposed Solution | On Terminal.java if (queryterminal.returnList()) { queryaux.put(queryterminal.getProperty(), new JSONArray(new JSONTokener(new JSONObject( "{" + queryWriter.toString() + "}").get("data").toString())).get(0)); } else { queryaux.put(queryterminal.getProperty(), new JSONArray(new JSONTokener(new JSONObject( "{" + queryWriter.toString() + "}").get("data").toString()))); } On the case it is returnList = true it should review if there are some values. If not, return null. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2016-11-08 17:04 | guillermogil | New Issue | |||
2016-11-08 17:04 | guillermogil | Assigned To | => Retail | ||
2016-11-08 17:04 | guillermogil | OBNetwork customer | => Yes | ||
2016-11-08 17:04 | guillermogil | Resolution time | => 1480374000 | ||
2016-11-08 17:04 | guillermogil | Triggers an Emergency Pack | => No | ||
2016-11-09 05:59 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
2016-11-09 05:59 | ranjith_qualiantech_com | Status | new => scheduled | ||
2016-11-10 05:40 | hgbot | Checkin | |||
2016-11-10 05:40 | hgbot | Note Added: 0091302 | |||
2016-11-10 05:40 | hgbot | Status | scheduled => resolved | ||
2016-11-10 05:40 | hgbot | Resolution | open => fixed | ||
2016-11-10 05:40 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1ff9ed660a1049be828b3f9b966d4d7e7a5a6358 [^] | ||
2016-11-11 17:02 | guilleaer | Review Assigned To | => guilleaer | ||
2016-11-11 17:02 | guilleaer | Status | resolved => closed | ||
2016-11-11 17:02 | guilleaer | Fixed in Version | => RR17Q1 | ||
2016-11-15 09:16 | marvintm | Note Added: 0091526 | |||
2016-11-15 09:16 | marvintm | Status | closed => new | ||
2016-11-15 09:16 | marvintm | Resolution | fixed => open | ||
2016-11-15 09:16 | marvintm | Fixed in Version | RR17Q1 => | ||
2016-11-15 10:35 | ranjith_qualiantech_com | Status | new => scheduled | ||
2016-11-15 13:49 | hgbot | Checkin | |||
2016-11-15 13:49 | hgbot | Note Added: 0091557 | |||
2016-11-15 13:49 | hgbot | Status | scheduled => resolved | ||
2016-11-15 13:49 | hgbot | Resolution | open => fixed | ||
2016-11-15 13:49 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1ff9ed660a1049be828b3f9b966d4d7e7a5a6358 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6f8a89f152b1ac1abbb090befc1e21d2a9df5db1 [^] | ||
2016-11-22 18:48 | marvintm | Review Assigned To | guilleaer => marvintm | ||
2016-11-22 18:48 | marvintm | Status | resolved => closed | ||
2016-11-22 18:48 | marvintm | Fixed in Version | => RR17Q1 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|