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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0034277
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Retail Modules] StoreServerminorhave not tried2016-10-23 10:572016-12-23 15:17
ReportermtaalView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in VersionRR17Q1
StatusclosedFix in branchFixed in SCM revision0a4ebceba039
ProjectionnoneETAnoneTarget VersionRR17Q1
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0034277: Support stateless web/mobile service requests which do not create a http session but still supports login

DescriptionThe standard webservice calls from retail to the server do login and create a http session.

We should support an approach in which a webservice does support login, but does not create/keep a session.

Note: that this approach only works for simple webservices which do not require data present in http session. But this is fine.
Steps To ReproduceSee retail webservices, more specific see MobileServerStatusInformation webservice as an example. It is called many times and each time causes a http session to be created.
TagsNo tags attached.
Attached Filesdiff file icon stateless-mobile-core.diff [^] (10,645 bytes) 2016-11-04 16:38 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 00344863.0PR17Q1 closedmtaal Openbravo ERP Support web/mobile service requests which do not create a http session but still supports login 

-  Notes
(0091528)
hgbot (developer)
2016-11-15 09:23

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 0a4ebceba03923ba9f8fa851fea5cc9a6730ded0
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Nov 15 09:22:39 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/0a4ebceba03923ba9f8fa851fea5cc9a6730ded0 [^]

Fixes issue 34277: Support stateless web/mobile service requests which do not create a http session but still supports login

Summary of changes:
- MobileKeyAuthenticationManager: prevent creating http session, in case of stateless requests do a webservice login
- DataSynchronizationProcess: noticed during testing that if import entry id is not set then when an error occurred also a separate error was created because the import entry id was not set, change not directly related to the topic of the issue, but too small to warrant own issue
- JSONRowConverter: prevent creating http session when creating error message
- MobileService: determine if the service is a stateless service and if so set the correct attribute
- SecuredJSONProcess: prevent hasPermission check as we don't have http session
- MobileServerRequestExecutor: move read of cookie to later place as then clearer error message if given on connection error, during testing the system seemed to stall on storing the session cookie
- MobileServerStatusInformation: make this a stateless service
- RetrieveMobileServerStatus: make this a stateless service

---
M src/org/openbravo/mobile/core/authenticate/MobileKeyAuthenticationManager.java
M src/org/openbravo/mobile/core/process/DataSynchronizationProcess.java
M src/org/openbravo/mobile/core/process/JSONRowConverter.java
M src/org/openbravo/mobile/core/process/MobileService.java
M src/org/openbravo/mobile/core/process/SecuredJSONProcess.java
M src/org/openbravo/mobile/core/servercontroller/MobileServerRequestExecutor.java
M src/org/openbravo/mobile/core/servercontroller/MobileServerStatusInformation.java
M src/org/openbravo/mobile/core/servercontroller/RetrieveMobileServerStatus.java
---
(0091530)
hgbot (developer)
2016-11-15 09:26

Repository: erp/pmods/org.openbravo.retail.postest
Changeset: 79702a25c485ef542d409e90c85dbfd027fa18e6
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Nov 15 09:25:50 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.postest/rev/79702a25c485ef542d409e90c85dbfd027fa18e6 [^]

Related to issue 34277: Support stateless web/mobile service requests which do not create a http session
Adding test webservices to be called from test cases

---
A src/org/openbravo/retail/postest/POSTestParameterStatelessMobileService.java
A src/org/openbravo/retail/postest/POSTestParameterStatelessWebservice.java
A src/org/openbravo/retail/postest/POSTestStatefulMobileService.java
A src/org/openbravo/retail/postest/POSTestStatefulWebservice.java
A src/org/openbravo/retail/postest/POSTestStatelessMobileService.java
A src/org/openbravo/retail/postest/POSTestStatelessWebservice.java
---
(0091613)
hgbot (developer)
2016-11-16 21:02

Repository: erp/pmods/org.openbravo.retail.postest
Changeset: 1c0a2ecb0cc9a37eff8a8586dcddc74d30d87928
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Nov 16 21:01:55 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.postest/rev/1c0a2ecb0cc9a37eff8a8586dcddc74d30d87928 [^]

Related to issue 34277: Support stateless web/mobile service requests which do not create a http session
Add config of webservice

---
A config/org.openbravo.retail.postest-provider-config.xml
---
(0091671)
hgbot (developer)
2016-11-20 00:58

Repository: tools/automation/pi-mobile
Changeset: dd68f2b5bab47e9de1694b6cf719254ea12fe23c
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Nov 20 00:57:45 2016 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/dd68f2b5bab47e9de1694b6cf719254ea12fe23c [^]

Related to issue 34277: Support stateless web/mobile service requests which do not create a http session
Added testcases

---
A src-test/org/openbravo/test/mobile/retail/extmodules/unittest/suites/StatelessTestSuite.java
A src-test/org/openbravo/test/mobile/retail/extmodules/unittest/tests/statelesswebservice/TestStatelessWebService.java
---
(0091679)
hgbot (developer)
2016-11-20 22:48

Repository: tools/automation/pi-mobile
Changeset: 41c22490c55fb33a9d9a5397ec163b7fb61568c3
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Nov 20 22:46:06 2016 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/41c22490c55fb33a9d9a5397ec163b7fb61568c3 [^]

Related to issue 34277: Support stateless web/mobile service requests which do not create a http session
Remove unused methods

---
M src-test/org/openbravo/test/mobile/retail/extmodules/unittest/tests/statelesswebservice/TestStatelessWebService.java
---
(0092046)
hgbot (developer)
2016-12-02 19:36

Repository: tools/automation/pi-mobile
Changeset: cdf73c649e759b2c02e407436439dbb85ebcfc8b
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Fri Dec 02 19:36:20 2016 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/cdf73c649e759b2c02e407436439dbb85ebcfc8b [^]

Related to issue 34277: Support stateless web/mobile service requests which do not create a http session but still supports login
Add a test which does basic authentication to show that stateless works with basic authentication

---
M src-test/org/openbravo/test/mobile/retail/extmodules/unittest/tests/statelesswebservice/TestStatelessWebService.java
---
(0092050)
mtaal (manager)
2016-12-02 19:56

Documentation:
http://wiki.openbravo.com/wiki/How_to_create_a_new_REST_webservice#Stateless_Webservice_Requests_-_HTTP_Session [^]
(0092051)
hgbot (developer)
2016-12-02 20:13

Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: 3c0642565a0f27b1daddf6733272d4a525beffca
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Fri Dec 02 20:12:41 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/3c0642565a0f27b1daddf6733272d4a525beffca [^]

Related to issue 34277: Support stateless web/mobile service requests which do not create a http session but still supports login
Make retrieve sync status stateless

---
M src/org/openbravo/retail/storeserver/synchronization/RetrieveSyncStatus.java
---

- Issue History
Date Modified Username Field Change
2016-10-23 10:57 mtaal New Issue
2016-10-23 10:57 mtaal Assigned To => mtaal
2016-10-23 10:57 mtaal Triggers an Emergency Pack => No
2016-10-23 13:39 mtaal Type design defect => feature request
2016-10-23 13:39 mtaal Summary Make the MobileServerStatusInformation not keep the session => Implement basewebservice which does not create a session but still supports login
2016-10-23 13:39 mtaal Description Updated View Revisions
2016-10-23 13:39 mtaal Steps to Reproduce Updated View Revisions
2016-10-23 13:39 mtaal Proposed Solution updated
2016-10-25 11:17 Asantos9 Issue Monitored: Asantos9
2016-11-04 16:38 mtaal File Added: stateless-mobile-core.diff
2016-11-04 16:38 mtaal File Added: stateless-erp.diff
2016-11-14 12:04 mtaal Summary Implement basewebservice which does not create a session but still supports login => Support web/mobile service requests which do not create a http session but still supports login
2016-11-14 12:05 mtaal Summary Support web/mobile service requests which do not create a http session but still supports login => Support stateless web/mobile service requests which do not create a http session but still supports login
2016-11-14 12:08 mtaal Relationship added related to 0034486
2016-11-14 12:24 mtaal File Deleted: stateless-erp.diff
2016-11-15 09:23 hgbot Checkin
2016-11-15 09:23 hgbot Note Added: 0091528
2016-11-15 09:23 hgbot Status new => resolved
2016-11-15 09:23 hgbot Resolution open => fixed
2016-11-15 09:23 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/0a4ebceba03923ba9f8fa851fea5cc9a6730ded0 [^]
2016-11-15 09:26 hgbot Checkin
2016-11-15 09:26 hgbot Note Added: 0091530
2016-11-15 11:09 mtaal Note Added: 0091547
2016-11-16 21:02 hgbot Checkin
2016-11-16 21:02 hgbot Note Added: 0091613
2016-11-20 00:58 hgbot Checkin
2016-11-20 00:58 hgbot Note Added: 0091671
2016-11-20 22:48 hgbot Checkin
2016-11-20 22:48 hgbot Note Added: 0091679
2016-12-02 19:36 hgbot Checkin
2016-12-02 19:36 hgbot Note Added: 0092046
2016-12-02 19:55 mtaal Note Deleted: 0091547
2016-12-02 19:56 mtaal Note Added: 0092050
2016-12-02 20:13 hgbot Checkin
2016-12-02 20:13 hgbot Note Added: 0092051
2016-12-03 01:24 mtaal Review Assigned To => migueldejuana
2016-12-23 15:17 marvintm Review Assigned To migueldejuana => marvintm
2016-12-23 15:17 marvintm Status resolved => closed
2016-12-23 15:17 marvintm Fixed in Version => RR17Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker