Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0034277 | Retail Modules | StoreServer | public | 2016-10-23 10:57 | 2016-12-23 15:17 |
|
Reporter | mtaal | |
Assigned To | mtaal | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | RR17Q1 | Fixed in Version | RR17Q1 | |
Merge Request Status | |
Review Assigned To | marvintm |
OBNetwork customer | No |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0034277: Support stateless web/mobile service requests which do not create a http session but still supports login |
Description | The 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 Reproduce | See 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. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | feature request | 0034486 | 3.0PR17Q1 | closed | mtaal | Openbravo ERP | Support web/mobile service requests which do not create a http session but still supports login |
|
Attached Files | stateless-mobile-core.diff (10,645) 2016-11-04 16:38 https://issues.openbravo.com/file_download.php?file_id=10018&type=bug |
|
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 | OBNetwork customer | => No |
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 | bug_revision_view_page.php?rev_id=13455#r13455 |
2016-10-23 13:39 | mtaal | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=13457#r13457 |
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 |
Notes |
|
(0091528)
|
hgbot
|
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
|
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
|
2016-11-16 21:02
|
|
|
|
(0091671)
|
hgbot
|
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
|
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
|
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
|
2016-12-02 19:56
|
|
|
|
(0092051)
|
hgbot
|
2016-12-02 20:13
|
|
|