Openbravo Issue Tracking System - Openbravo ERP | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0025849 | Openbravo ERP | Z. Others | public | 2014-02-26 15:58 | 2014-02-26 15:58 |
| Reporter | smola | ||||
| Assigned To | dmiguelez | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | new | Resolution | open | ||
| Platform | OS | 20 | OS Version | Community Appliance | |
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Merge Request Status | |||||
| Review Assigned To | |||||
| OBNetwork customer | No | ||||
| Web browser | |||||
| Modules | JSON REST Webservice | ||||
| Support ticket | |||||
| Regression level | |||||
| Regression date | |||||
| Regression introduced in release | |||||
| Regression introduced by commit | |||||
| Triggers an Emergency Pack | No | ||||
| Summary | 0025849: endRow parameter on requests and responses is not consistent | ||||
| Description | It seems the URL parameter _endRow and the response parameter endRow do not mean the same. The former is 1-based index and the later is 0-based. (Also note that totalRows value doesn't really look like the total results matching the current criteria...?) | ||||
| Steps To Reproduce | curl --user user:pass "http://localhost/openbravo/org.openbravo.service.json.jsonrest/Country?_startRow=1&_endRow=2" [^] | json_pp { "response" : { "startRow" : 1, "status" : 0, "totalRows" : 4, "endRow" : 1, "data" : [ { // ... truncated ... } ] } } | ||||
| Proposed Solution | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2014-02-26 15:58 | smola | New Issue | |||
| 2014-02-26 15:58 | smola | Assigned To | => dmiguelez | ||
| 2014-02-26 15:58 | smola | Modules | => JSON REST Webservice | ||
| 2014-02-26 15:58 | smola | Triggers an Emergency Pack | => No | ||
| There are no notes attached to this issue. |