Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0022650 | Openbravo ERP | A. Platform | public | 2012-12-21 08:16 | 2013-02-20 04:49 |
Reporter | malsasua | ||||
Assigned To | AugustoMauch | ||||
Priority | normal | Severity | minor | Reproducibility | sometimes |
Status | closed | Resolution | fixed | ||
Platform | OS | 20 | OS Version | Community Appliance | |
Product Version | |||||
Target Version | 3.0MP21 | Fixed in Version | 3.0MP21 | ||
Merge Request Status | |||||
Review Assigned To | shankarb | ||||
OBNetwork customer | No | ||||
Web browser | Google Chrome | ||||
Modules | Core | ||||
Support ticket | |||||
Regression level | Production - Confirmed Stable | ||||
Regression date | 2012-10-29 | ||||
Regression introduced in release | |||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/8d14f5d88c458fd555bdfc4202205bc58b2bd8e0 [^] | ||||
Triggers an Emergency Pack | No | ||||
Summary | 0022650: error in the log file is displayed when login is done without "User-Agent" | ||||
Description | when a login is done from request without "User-Agent", an error is displayed in the log file | ||||
Steps To Reproduce | The error is: ef0fb8d 11:26:48 [ajp-8009-39] ERROR org.openbravo.dal.core.ThreadHandler - java.lang.NullPointerException at org.openbravo.erpCommon.utility.Utility.isMobileBrowser(Utility.java:2500) at org.openbravo.erpCommon.security.Login.doPost(Login.java:55) at org.openbravo.base.HttpBaseServlet.doGet(HttpBaseServlet.java:287) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at org.openbravo.base.HttpBaseServlet.service(HttpBaseServlet.java:245) 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.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) .... | ||||
Proposed Solution | In Utility.java, replace the method public static boolean isMobileBrowser(HttpServletRequest request) { final String ua = request.getHeader("User-Agent").toLowerCase(); return (ua.matches(MOBILE_VENDORS) || ua.substring(0, 4).matches(MOBILE_VERSION)); } by public static boolean isMobileBrowser(HttpServletRequest request) { final String ua = request.getHeader("User-Agent"); if (ua == null) then return null; return (ua.toLowerCase().matches(MOBILE_VENDORS) || ua.toLowerCase().substring(0, 4).matches(MOBILE_VERSION)); } | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=5936&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-12-21 08:16 | malsasua | New Issue | |||
2012-12-21 08:16 | malsasua | Assigned To | => AugustoMauch | ||
2012-12-21 08:16 | malsasua | Web browser | => Google Chrome | ||
2012-12-21 08:16 | malsasua | Modules | => Core | ||
2012-12-21 08:16 | malsasua | OBNetwork customer | => No | ||
2012-12-21 08:16 | malsasua | Triggers an Emergency Pack | => No | ||
2013-01-22 15:47 | AugustoMauch | Web browser | Google Chrome => Google Chrome | ||
2013-01-22 15:47 | AugustoMauch | Fixed in Version | => 3.0MP20 | ||
2013-01-22 15:52 | AugustoMauch | Web browser | Google Chrome => Google Chrome | ||
2013-01-22 15:52 | AugustoMauch | Regression level | => Production - Confirmed Stable | ||
2013-01-22 15:52 | AugustoMauch | Regression date | => 2012-10-29 | ||
2013-01-22 15:52 | AugustoMauch | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/8d14f5d88c458fd555bdfc4202205bc58b2bd8e0 [^] | ||
2013-02-05 16:57 | AugustoMauch | Web browser | Google Chrome => Google Chrome | ||
2013-02-05 16:57 | AugustoMauch | Fixed in Version | 3.0MP20 => | ||
2013-02-05 16:57 | AugustoMauch | Target Version | => 3.0MP21 | ||
2013-02-05 16:57 | AugustoMauch | File Added: issue22650.diff | |||
2013-02-05 16:58 | AugustoMauch | Note Added: 0056175 | |||
2013-02-05 16:59 | AugustoMauch | Status | new => scheduled | ||
2013-02-05 16:59 | AugustoMauch | fix_in_branch | => pi | ||
2013-02-11 17:35 | AugustoMauch | Issue Monitored: shankarb | |||
2013-02-11 17:35 | AugustoMauch | Review Assigned To | => shankarb | ||
2013-02-11 17:35 | AugustoMauch | Web browser | Google Chrome => Google Chrome | ||
2013-02-11 17:35 | AugustoMauch | fix_in_branch | pi => | ||
2013-02-11 17:37 | hgbot | Checkin | |||
2013-02-11 17:37 | hgbot | Note Added: 0056344 | |||
2013-02-11 17:37 | hgbot | Status | scheduled => resolved | ||
2013-02-11 17:37 | hgbot | Resolution | open => fixed | ||
2013-02-11 17:37 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/1f39c81dc9b9090197eac10ae23a413fc07504b5 [^] | ||
2013-02-12 12:20 | shankarb | Note Added: 0056370 | |||
2013-02-12 12:20 | shankarb | Status | resolved => closed | ||
2013-02-12 12:20 | shankarb | Fixed in Version | => 3.0MP21 | ||
2013-02-20 04:49 | hudsonbot | Checkin | |||
2013-02-20 04:49 | hudsonbot | Note Added: 0056567 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|