Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0038496
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajorhave not tried2018-05-07 15:242018-10-08 20:58
ReporterAugustoMauchView Statuspublic 
Assigned Torqueralta 
PrioritynormalResolutionopenFixed in Version
StatusscheduledFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0038496: Exception in ProcessHQLQuery can result in error JSON response being not properly formatted

DescriptionIf there is an exception in the ProcessHQLQuery after this line [1] but before this line [2], the resulting error JSON response will not be properly formatted, because it will contain the start of the data json array declaration but will not contain the closing brace.

[1] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/tip/src/org/openbravo/mobile/core/process/ProcessHQLQuery.java#l277 [^]
[2] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/tip/src/org/openbravo/mobile/core/process/ProcessHQLQuery.java#l318 [^]
Steps To ReproduceForce any runtime exception between these two lines [1], [2]. Login in in the POS, and check that the exception is captured and that the resulting JSON response is not properly formatted. It will look like this:

{
    "response": {
        "data": ["status": -1, "error": {
                "message": "",
                "title": "",
                "className": "java.lang.ClassCastException"
            }, "totalRows": 0
        }
    }

[1] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/tip/src/org/openbravo/mobile/core/process/ProcessHQLQuery.java#l277 [^]
[2] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/tip/src/org/openbravo/mobile/core/process/ProcessHQLQuery.java#l318 [^]
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0038497 closedStoreServer If the store server receives a response from the central server with bad JSON format, it should not go offline 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2018-05-07 15:24 AugustoMauch New Issue
2018-05-07 15:24 AugustoMauch Assigned To => Retail
2018-05-07 15:24 AugustoMauch Triggers an Emergency Pack => No
2018-05-07 15:40 AugustoMauch Relationship added related to 0038497
2018-10-08 20:58 rqueralta Assigned To Retail => rqueralta
2018-10-08 20:58 rqueralta Status new => scheduled


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker