Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035144Retail ModulesStoreServerpublic2017-02-02 16:492017-02-08 09:43
gorkaion 
mtaal 
normalmajoralways
closedduplicate 
5
 
 
OBPS
No
0035144: [Store Server 2402]Stateless Authentication not working with External Order Loader
When using a implementation of External Order Loader with a stateless WebService is not working.

OBContext is loaded with System Administrator role. So only client '0' and org '0' are accessible by default.
Reproduce in BUT environment;

== Prerequisites ==
On a BUT Snapshot delivered on 2017-01-30 or later. Or having the module com.openbravo.but.integration.ecommerce.

== Steps ==

Try to send a Sales Order using the EcommerceCreateOrderWS webService using a stateless request

Resource: /openbravo/org.openbravo.mobile.core.service.jsonrest/com.openbravo.but.integration.ecommerce.webservices.EcommerceCreateOrderWS
Parameters: synchronizedProcessing=true&stateless=true
content: attached create-order-example.json

Check that not setting the staless=true paremeter it works
Check again using the stateless request and the order is not processed.

No tags attached.
duplicate of feature request 00351723.0PR17Q2 closed mtaal Openbravo ERP In case of stateless request make sure OBContext is set and let VariableBase and other core ERP code not create a session 
related to defect 0035140 closed mtaal Retail Modules [Store Server 2401]Basic Authentication not working with External Order Loader 
? create-order-example.json (2,964) 2017-02-02 16:49
https://issues.openbravo.com/file_download.php?file_id=10386&type=bug
Issue History
2017-02-02 16:49gorkaionNew Issue
2017-02-02 16:49gorkaionAssigned To => mtaal
2017-02-02 16:49gorkaionFile Added: create-order-example.json
2017-02-02 16:49gorkaionOBNetwork customer => Yes
2017-02-02 16:49gorkaionResolution time => 1487199600
2017-02-02 16:49gorkaionTriggers an Emergency Pack => No
2017-02-02 16:49gorkaionIssue generated from0035140
2017-02-02 16:49gorkaionRelationship addedrelated to 0035140
2017-02-06 17:36mtaalRelationship addedcaused by 0035172
2017-02-06 17:43hgbotCheckin
2017-02-06 17:43hgbotNote Added: 0094099
2017-02-08 09:42mtaalRelationship replacedduplicate of 0035172
2017-02-08 09:43mtaalStatusnew => closed
2017-02-08 09:43mtaalResolutionopen => duplicate

Notes
(0094099)
hgbot   
2017-02-06 17:43   
Repository: erp/pmods/org.openbravo.retail.postest
Changeset: 6f49287ef977338bb83a86e5e4cc9ca75dfa64e5
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Feb 06 17:43:39 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.postest/rev/6f49287ef977338bb83a86e5e4cc9ca75dfa64e5 [^]

Related to issue 35144: [Store Server 2402]Stateless Authentication not working with External Order Loader
Add subclass to test creation of session in case of stateless request

---
A src/org/openbravo/retail/postest/TestExternalOrderLoader.java
---