Openbravo Issue Tracking System - Retail Modules
View Issue Details
0044564Retail ModulesRetail APIpublic2020-07-06 18:102020-08-25 15:34
sebastien_liron 
ranjith_qualiantech_com 
urgentmajoralways
closedfixed 
30Openbravo Appliance 14.04
pi 
piRR20Q4 
No
0044564: Export order works one time, then show an error message
The export order works the first time ( reatil API ) and then will show this error message :

{
  "response": {
    "status": -1,
    "error": {
      "message": "Request CSRF Token does not match with the one provided by Session",
      "messageType": "Error",
      "title": ""
    },
    "totalRows": 0
  }
}

It is the same with postman by example.
https://livebuilds.openbravo.com/retail_modules_pgsql_pi/api?urls.primaryName=exportorder#/Paid%20Receipts%20Web%20Service/get%20an%20order%20information [^]

Go to try it out

Click on execute => should show the list of orders the first time
Click again on execute => show the error

It is also possible to create the POST request via postman, same behaviour.
Attached a proposed solution to be validated by the Retail team
No tags attached.
related to defect 0049544RR20Q3.4 closed axelmercado Problem in the ExportOrder call with a user containing a role with the "Restrict backend access" check enabled. 
png Screenshot from 2020-07-06 18-00-54.png (77,284) 2020-07-06 18:10
https://issues.openbravo.com/file_download.php?file_id=14736&type=bug
png

diff 44564.diff (637) 2020-07-13 10:33
https://issues.openbravo.com/file_download.php?file_id=14755&type=bug
Issue History
2020-07-06 18:10sebastien_lironNew Issue
2020-07-06 18:10sebastien_lironAssigned To => Retail
2020-07-06 18:10sebastien_lironFile Added: Screenshot from 2020-07-06 18-00-54.png
2020-07-06 18:10sebastien_lironTriggers an Emergency Pack => No
2020-07-07 07:20guillermogilResolution time => 1595800800
2020-07-07 07:20guillermogilSeveritycritical => major
2020-07-13 10:33caristuFile Added: 44564.diff
2020-07-13 10:34caristuProposed Solution updated
2020-07-13 10:56hgbotNote Added: 0121412
2020-07-24 08:32ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2020-08-05 10:55ranjith_qualiantech_comStatusnew => scheduled
2020-08-09 04:16hgbotNote Added: 0121921
2020-08-10 11:55hgbotResolutionopen => fixed
2020-08-10 11:55hgbotStatusscheduled => closed
2020-08-10 11:55hgbotNote Added: 0121936
2020-08-10 11:55hgbotFixed in Version => RR20Q4
2020-08-10 11:55hgbotNote Added: 0121937
2020-08-11 14:23sebastien_lironNote Added: 0121985
2020-08-25 15:34hgbotNote Added: 0122353
2022-06-23 18:20caristuRelationship addedrelated to 0049544

Notes
(0121412)
hgbot   
2020-07-13 10:56   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/32 [^]
(0121921)
hgbot   
2020-08-09 04:16   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/50 [^]
(0121936)
hgbot   
2020-08-10 11:55   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/50 [^]
(0121937)
hgbot   
2020-08-10 11:55   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: c9c8815d52435b521dd1805c532c71bc99dd5d34
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2020-08-09T07:44:49+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/c9c8815d52435b521dd1805c532c71bc99dd5d34 [^]

Fixed ISSUE-44564: Added Stateless Authentication for ExportOrder Webservice

---
M src/org/openbravo/retail/posterminal/ExportOrder.java
---
(0121985)
sebastien_liron   
2020-08-11 14:23   
Can we have that backport in release/20Q3 please ?
(0122353)
hgbot   
2020-08-25 15:34   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/32 [^]