Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0027248 | Retail Modules | Web POS | public | 2014-07-31 12:10 | 2014-12-30 23:22 |
|
Reporter | Orekaria | |
Assigned To | marvintm | |
Priority | normal | Severity | minor | Reproducibility | sometimes |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | RR14Q4 | |
Merge Request Status | |
Review Assigned To | migueldejuana |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0027248: Sometimes the session expires before it should, use a different servlet/url for retrieving content before login |
Description | Sometimes the session expires before it should. This happens because the mobile core index.jsp page retrieves javascript and other generated content before the login has taken place.
The code uses the KernelServlet for this, this servlet in its base supports only authenticated access. Only with a workaround it was possible to also retrieve content when not yet authenticated.
To make this work better for mobile core applications (like WEBPOS) a new servlet is introduced which should be used for retrieving content generated by Components before logging in.
See the changeset for the index.jsp to get an example of the change needed.
http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/be816be4ad867771b406dcd0e95e0622f5e0c403 [^] |
Steps To Reproduce | Execute tests until shown in the tomcat log |
Proposed Solution | Change the url to retrieve unauthenticated content. |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | defect | 0027372 | 3.0PR14Q4 | closed | AugustoMauch | Openbravo ERP | KernelServlet is not threadsafe | depends on | defect | 0027200 | | closed | Orekaria | Retail Modules | Stabilization: Current user/role has no access to class org.openbravo.retail.posterminal.term.Terminal | related to | defect | 0027661 | RR14Q4 | closed | mtaal | Retail Modules | Stabilization: Index.jsp is not expiring so updates do not show up in the browser without clearing the cache | blocks | defect | 0027337 | | acknowledged | Retail | Retail Modules | Stabilization: No tomcat errors while running the WebPOS | blocks | defect | 0042676 | | new | Triage Platform Base | Openbravo ERP | Tomcat error appears when navigating to the ERP landing page with the Autologon feature active |
|
Attached Files | 27248_core_q24.diff (13,399) 2014-10-03 14:09 https://issues.openbravo.com/file_download.php?file_id=7299&type=bug 27248_posterminal_q24.diff (6,125) 2014-10-03 14:09 https://issues.openbravo.com/file_download.php?file_id=7300&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2014-07-31 12:10 | Orekaria | New Issue | |
2014-07-31 12:10 | Orekaria | Assigned To | => marvintm |
2014-07-31 12:10 | Orekaria | Triggers an Emergency Pack | => No |
2014-08-19 09:00 | Orekaria | Note Added: 0069490 | |
2014-08-19 09:01 | Orekaria | Relationship added | blocks 0026955 |
2014-08-19 09:01 | Orekaria | Relationship added | blocks 0027337 |
2014-08-19 13:14 | mtaal | Relationship added | depends on 0027372 |
2014-08-22 23:08 | Orekaria | Relationship added | depends on 0027200 |
2014-08-23 01:14 | Orekaria | Relationship deleted | blocks 0026955 |
2014-09-23 04:43 | hgbot | Checkin | |
2014-09-23 04:43 | hgbot | Note Added: 0070255 | |
2014-09-23 04:44 | hgbot | Checkin | |
2014-09-23 04:44 | hgbot | Note Added: 0070256 | |
2014-09-23 04:44 | hgbot | Status | new => resolved |
2014-09-23 04:44 | hgbot | Resolution | open => fixed |
2014-09-23 04:44 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/be816be4ad867771b406dcd0e95e0622f5e0c403 [^] |
2014-09-23 08:33 | migueldejuana | Review Assigned To | => migueldejuana |
2014-09-23 08:33 | migueldejuana | Note Added: 0070264 | |
2014-09-23 08:33 | migueldejuana | Status | resolved => closed |
2014-09-23 08:33 | migueldejuana | Fixed in Version | => RR14Q4 |
2014-09-23 12:02 | hgbot | Checkin | |
2014-09-23 12:02 | hgbot | Note Added: 0070278 | |
2014-09-23 13:00 | mtaal | Summary | Sometimes the session expires before it should => Sometimes the session expires before it should, use a different servlet/url for retrieving content before login |
2014-09-23 13:00 | mtaal | Description Updated | bug_revision_view_page.php?rev_id=6605#r6605 |
2014-09-23 13:00 | mtaal | Proposed Solution updated | |
2014-09-23 15:35 | hgbot | Checkin | |
2014-09-23 15:35 | hgbot | Note Added: 0070282 | |
2014-09-23 15:35 | hgbot | Checkin | |
2014-09-23 15:35 | hgbot | Note Added: 0070283 | |
2014-09-23 15:47 | hgbot | Checkin | |
2014-09-23 15:47 | hgbot | Note Added: 0070284 | |
2014-09-24 19:45 | hgbot | Checkin | |
2014-09-24 19:45 | hgbot | Note Added: 0070321 | |
2014-09-24 19:47 | hgbot | Checkin | |
2014-09-24 19:47 | hgbot | Note Added: 0070322 | |
2014-09-24 19:52 | hgbot | Checkin | |
2014-09-24 19:52 | hgbot | Note Added: 0070325 | |
2014-09-24 20:43 | Orekaria | Relationship added | related to 0027661 |
2014-09-25 11:30 | hudsonbot | Checkin | |
2014-09-25 11:30 | hudsonbot | Note Added: 0070359 | |
2014-09-25 11:30 | hudsonbot | Checkin | |
2014-09-25 11:30 | hudsonbot | Note Added: 0070361 | |
2014-09-26 18:17 | hgbot | Checkin | |
2014-09-26 18:17 | hgbot | Note Added: 0070451 | |
2014-09-29 13:53 | dmitry_mezentsev | Note Added: 0070497 | |
2014-09-29 22:00 | hudsonbot | Checkin | |
2014-09-29 22:00 | hudsonbot | Note Added: 0070516 | |
2014-10-03 14:09 | mtaal | File Added: 27248_core_q24.diff | |
2014-10-03 14:09 | mtaal | File Added: 27248_posterminal_q24.diff | |
2014-10-03 15:03 | hgbot | Checkin | |
2014-10-03 15:03 | hgbot | Note Added: 0070700 | |
2014-10-05 22:54 | hgbot | Checkin | |
2014-10-05 22:54 | hgbot | Note Added: 0070716 | |
2014-10-05 22:55 | hgbot | Checkin | |
2014-10-05 22:55 | hgbot | Note Added: 0070717 | |
2014-11-26 11:00 | hgbot | Checkin | |
2014-11-26 11:00 | hgbot | Note Added: 0072020 | |
2014-11-26 11:02 | hgbot | Checkin | |
2014-11-26 11:02 | hgbot | Note Added: 0072021 | |
2014-11-26 11:24 | hgbot | Checkin | |
2014-11-26 11:24 | hgbot | Note Added: 0072022 | |
2014-12-30 23:22 | hudsonbot | Checkin | |
2014-12-30 23:22 | hudsonbot | Note Added: 0072896 | |
2020-01-02 11:51 | inaki_garcia | Relationship added | causes 0042676 |
2020-01-02 11:52 | inaki_garcia | Relationship replaced | blocks 0042676 |
Notes |
|
|
|
|
(0070255)
|
hgbot
|
2014-09-23 04:43
|
|
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 578c31177869e77787ded3c857983fd699d292f7
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Sep 23 04:42:33 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/578c31177869e77787ded3c857983fd699d292f7 [^]
Related to issue 27248: Sometimes the session expires before it should
Let all requests before the login go through a non-authenticating servlet
---
M src-db/database/sourcedata/AD_MODEL_OBJECT.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml
M web/org.openbravo.mobile.core/source/data/ob-model.js
A src/org/openbravo/mobile/core/MobileCoreComponentServlet.java
---
|
|
|
(0070256)
|
hgbot
|
2014-09-23 04:44
|
|
|
|
|
tested and reviewed in dac0cfbd526b |
|
|
(0070278)
|
hgbot
|
2014-09-23 12:02
|
|
|
|
(0070282)
|
hgbot
|
2014-09-23 15:35
|
|
|
|
(0070283)
|
hgbot
|
2014-09-23 15:35
|
|
|
|
(0070284)
|
hgbot
|
2014-09-23 15:47
|
|
Repository: erp/devel/pi
Changeset: e3050b112ed517232a30a960e9d207ae12a15847
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Sep 23 15:37:31 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e3050b112ed517232a30a960e9d207ae12a15847 [^]
Related to issue 27248: Sometimes the session expires before it should
Added deprecated warning to previous code to handle unauthenticated actions added code comments
---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelServlet.java
---
|
|
|
(0070321)
|
hgbot
|
2014-09-24 19:45
|
|
Repository: erp/devel/pi
Changeset: 713f25f27b6765d58fb4a45bba4dba49b684568d
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Wed Sep 24 19:44:40 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/713f25f27b6765d58fb4a45bba4dba49b684568d [^]
Related to issue 27248: Added 'howto fix' to the log message, but...
- would still be nicer if we inform in the message about the requested resource so the dev knows which one needs to be changed
---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelServlet.java
---
|
|
|
(0070322)
|
hgbot
|
2014-09-24 19:47
|
|
|
|
(0070325)
|
hgbot
|
2014-09-24 19:52
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: f6e4ce6e0dd8a631caa7be9856dda6a37ca87b5e
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Wed Sep 24 19:50:28 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f6e4ce6e0dd8a631caa7be9856dda6a37ca87b5e [^]
Related to issue 27248: Fixed 'ApplicationCacheComponent' to use the new servlet and...
- also added the 'DiscountFilterRole' source that was missing in the manifest and was provoking the offline mode to miss this resource
---
M src/org/openbravo/retail/posterminal/ApplicationCacheComponent.java
---
|
|
|
|
|
|
|
|
|
(0070451)
|
hgbot
|
2014-09-26 18:17
|
|
Repository: erp/devel/pi
Changeset: 6ead95cef7ec799776362fafd47805ba9502fcb1
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Fri Sep 26 18:17:10 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/6ead95cef7ec799776362fafd47805ba9502fcb1 [^]
Related to issue 27248: added request url to warning message, made specific methods private
Made specific static methods private as there is no use for them being protected and
would just increase the api.
---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelServlet.java
---
|
|
|
|
New API method is approved. |
|
|
|
|
|
(0070700)
|
hgbot
|
2014-10-03 15:03
|
|
|
|
(0070716)
|
hgbot
|
2014-10-05 22:54
|
|
Repository: erp/devel/pi
Changeset: a7d456a23dcefc283470644aa448a4a899283816
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Oct 05 22:54:12 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a7d456a23dcefc283470644aa448a4a899283816 [^]
Related to issue 27248: Sometimes the session expires before it should, improve log warning message
Improve the log warning message so that it shows more information when an invalid pre-login
request is received.
---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelServlet.java
---
|
|
|
(0070717)
|
hgbot
|
2014-10-05 22:55
|
|
Repository: erp/pmods/org.openbravo.retail.discounts.bytotal
Changeset: 55b9b1d6e54e9ba5b98d7fea8cac6e57b87bba31
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Oct 05 22:55:47 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bytotal/rev/55b9b1d6e54e9ba5b98d7fea8cac6e57b87bba31 [^]
Related to issue 27248: Sometimes the session expires before it should, let discounts by total use correct servlet
Changes the url used by the discounts by total module use the mobile.core servlet instead of the
authenticated client kernel servlet.
---
M src/org/openbravo/retail/discounts/bytotal/master/DiscountsByTotalAppCacheProvider.java
---
|
|
|
(0072020)
|
hgbot
|
2014-11-26 11:00
|
|
|
|
(0072021)
|
hgbot
|
2014-11-26 11:02
|
|
|
|
(0072022)
|
hgbot
|
2014-11-26 11:24
|
|
|
|
|
|