Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0030701 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | minor | have not tried | 2015-08-30 07:34 | 2015-09-16 09:18 | |||
Reporter | mtaal | View Status | public | |||||
Assigned To | mtaal | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | RR15Q4 | |||
Status | closed | Fix in branch | Fixed in SCM revision | c99e1110f899 | ||||
Projection | none | ETA | none | Target Version | RR15Q4 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | migueldejuana | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0030701: Offline login and then server getting back does not work fine | |||||||
Description | When doing an offline login no authentication token is created, so these are send as undefined to the server resulting in errors there. See screenshots. 65651 [http-8080-3] ERROR org.openbravo.mobile.core.process.MobileService - HTTPSecureAppServlet.service() - exception caught: org.openbravo.base.exception.OBException: Exception when decrypting undefined at org.openbravo.mobile.core.authenticate.MobileAuthenticationKeyUtils.decrypt(MobileAuthenticationKeyUtils.java:167) at org.openbravo.mobile.core.authenticate.MobileKeyAuthenticationManager.doAuthenticate(MobileKeyAuthenticationManager.java:50) at org.openbravo.authentication.AuthenticationManager.authenticate(AuthenticationManager.java:142) at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:203) at org.openbravo.client.kernel.BaseKernelServlet.callServiceInSuper(BaseKernelServlet.java:88) at org.openbravo.mobile.core.process.WebServiceAuthenticatedServlet.service(WebServiceAuthenticatedServlet.java:53) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.codehaus.enunciate.webapp.HTTPRequestContextFilter.doFilter(HTTPRequestContextFilter.java:36) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.openbravo.client.analytics.OBSpringSecurityContextRequestFilter$1.doAction(OBSpringSecurityContextRequestFilter.java:71) at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46) at org.openbravo.client.analytics.OBSpringSecurityContextRequestFilter.doFilter(OBSpringSecurityContextRequestFilter.java:79) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.openbravo.utils.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:66) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.openbravo.utils.CharsetFilter.doFilter(CharsetFilter.java:35) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.openbravo.client.kernel.KernelFilter$1.doAction(KernelFilter.java:62) at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46) at org.openbravo.client.kernel.KernelFilter.doFilter(KernelFilter.java:71) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.openbravo.dal.core.DalRequestFilter$1.doAction(DalRequestFilter.java:81) at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46) at org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:103) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1911) at org.openbravo.mobile.core.authenticate.MobileAuthenticationKeyUtils.decrypt(MobileAuthenticationKeyUtils.java:145) ... 42 more | |||||||
Steps To Reproduce | Login normally in webpos create a ticket logout bring server down do offline login enter a ticket check the console/network from chrome developer tools | |||||||
Tags | No tags attached. | |||||||
Attached Files | Selection_102.png [^] (332,111 bytes) 2015-08-30 07:34 Selection_103.png [^] (92,012 bytes) 2015-08-30 07:34 | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||
|
Notes | |
(0079817) mtaal (manager) 2015-08-30 07:37 |
Also change the message after an order is closed, currently it says data synchronization successful. The data sync successful should be shown after the data is sent to a main server. |
(0080253) hgbot (developer) 2015-09-09 08:52 |
Repository: erp/pmods/org.openbravo.mobile.core Changeset: c99e1110f8997d04360e3b349ae0fc37ce4df34f Author: Martin Taal <martin.taal <at> openbravo.com> Date: Tue Sep 08 17:18:05 2015 +0200 URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/c99e1110f8997d04360e3b349ae0fc37ce4df34f [^] Fixes issue 30701: Offline login and then server getting back does not work fine Handle exceptions in a more subtle way --- M src/org/openbravo/mobile/core/authenticate/MobileAuthenticationKeyUtils.java --- |
(0080427) migueldejuana (developer) 2015-09-16 09:18 |
Tested and reviewed in 5fa909d5e1af |
Issue History | |||
Date Modified | Username | Field | Change |
2015-08-30 07:34 | mtaal | New Issue | |
2015-08-30 07:34 | mtaal | Assigned To | => mtaal |
2015-08-30 07:34 | mtaal | File Added: Selection_102.png | |
2015-08-30 07:34 | mtaal | Triggers an Emergency Pack | => No |
2015-08-30 07:34 | mtaal | File Added: Selection_103.png | |
2015-08-30 07:34 | mtaal | Relationship added | related to 0030560 |
2015-08-30 07:37 | mtaal | Note Added: 0079817 | |
2015-09-09 08:52 | hgbot | Checkin | |
2015-09-09 08:52 | hgbot | Note Added: 0080253 | |
2015-09-09 08:52 | hgbot | Status | new => resolved |
2015-09-09 08:52 | hgbot | Resolution | open => fixed |
2015-09-09 08:52 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/c99e1110f8997d04360e3b349ae0fc37ce4df34f [^] |
2015-09-09 10:08 | mtaal | Relationship added | blocks 0029912 |
2015-09-15 14:06 | mtaal | Review Assigned To | => migueldejuana |
2015-09-16 09:18 | migueldejuana | Note Added: 0080427 | |
2015-09-16 09:18 | migueldejuana | Status | resolved => closed |
2015-09-16 09:18 | migueldejuana | Fixed in Version | => RR15Q4 |
Copyright © 2000 - 2009 MantisBT Group |