Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0020191 | Openbravo ERP | A. Platform | public | 2012-04-03 08:56 | 2012-04-27 15:10 |
|
Reporter | VictorVillar | |
Assigned To | alostale | |
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | 3.0MP9 | |
Target Version | 3.0MP12 | Fixed in Version | pi | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | 14881 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0020191: OBContext.getLanguage does only use users' default language, in java process |
Description | We expect that when we put Spanish in the "Role PopUp"
language combo no matter my User default language, everything shoud be in spanish,however we see error messages based on our User default language. we have debugged and the reason is that OBContext.getLanguage give us the User default language. This errors come from a java process (process bundle created in a module). |
Steps To Reproduce | the OBContext code for getLanguage does only read the language from the users default language setting.
The errors come from a java process (process bundle created in a module). |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0013136 | | closed | mtaal | OBContext.getLanguage does only use users' default language, and does not honor language change in the role change popup | has duplicate | defect | 0018214 | | closed | alostale | Scheduled processes executed on tomcat restart |
|
Attached Files | org.openbravo.issue18214-0.0.0.obx (3,017) 2012-04-10 17:51 https://issues.openbravo.com/file_download.php?file_id=5125&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2012-04-03 08:56 | VictorVillar | New Issue | |
2012-04-03 08:56 | VictorVillar | Assigned To | => alostale |
2012-04-03 08:56 | VictorVillar | Modules | => Core |
2012-04-03 08:56 | VictorVillar | OBNetwork customer | => Yes |
2012-04-03 08:56 | VictorVillar | Support ticket | => 14881 |
2012-04-03 08:56 | VictorVillar | Resolution time | => 1339452000 |
2012-04-03 08:56 | VictorVillar | Issue Monitored: networkb | |
2012-04-03 08:57 | VictorVillar | Relationship added | related to 0013136 |
2012-04-04 11:56 | alostale | Note Added: 0047379 | |
2012-04-04 11:56 | alostale | Status | new => feedback |
2012-04-04 13:15 | rafademiguel | Note Added: 0047389 | |
2012-04-04 13:27 | VictorVillar | Note Added: 0047391 | |
2012-04-04 13:27 | VictorVillar | Status | feedback => new |
2012-04-10 17:51 | alostale | Relationship added | has duplicate 0018214 |
2012-04-10 17:51 | alostale | File Added: org.openbravo.issue18214-0.0.0.obx | |
2012-04-10 18:03 | alostale | Note Added: 0047441 | |
2012-04-10 18:04 | alostale | Note Added: 0047442 | |
2012-04-10 18:15 | hgbot | Checkin | |
2012-04-10 18:15 | hgbot | Note Added: 0047443 | |
2012-04-10 18:15 | hgbot | Status | new => resolved |
2012-04-10 18:15 | hgbot | Resolution | open => fixed |
2012-04-10 18:15 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/9547870c49c8555e62399b3c1d18ecd523c6a5a9 [^] |
2012-04-17 05:31 | hudsonbot | Checkin | |
2012-04-17 05:31 | hudsonbot | Note Added: 0047623 | |
2012-04-27 15:10 | guilleaer | Note Added: 0048153 | |
2012-04-27 15:10 | guilleaer | Status | resolved => closed |
2012-04-27 15:10 | guilleaer | Fixed in Version | => pi |
Notes |
|
|
Please provide more information about this issue |
|
|
|
|
|
|
Rafa's news. He gives more information |
|
|
|
This issue affects in 2 different situations:
1. UI generated processes extending DalBaseProcess and executed from button (as reported) or menu
-Install Agile Production module (hg clone http://forge.openbravo.com/hg/repos/agilefixquantities [^] com.openbravo.gps.agileproduction.fixquantities)
-With a role with default language en_US login in es_ES
-Go to Production Run and execute Fix Quantities process
-Check message is tried to be shown in en_US <- Incorrect
2. Scheduled background processes after tomcat restart.
-Install attached obx
-Login in English
-Schedule Process18214
-Login in Spanish
-Schedule Process18214
-Note in openbravo.log process is executed correctly in both languages <-Correct
-Restart tomcat
-Note process is executed always in English <- Incorrect |
|
|
|
This fix is not risky.
Test plan: follow steps mentioned in note above. |
|
|
(0047443)
|
hgbot
|
2012-04-10 18:15
|
|
Repository: erp/devel/pi
Changeset: 9547870c49c8555e62399b3c1d18ecd523c6a5a9
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Apr 10 18:07:42 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/9547870c49c8555e62399b3c1d18ecd523c6a5a9 [^]
fixed bug 20191: Context language is not preserved in processes
-When creating OBContext for processes extending DalBasesProcess, retrieve
language and use it.
-When getting vars from ProcessContext take into account language.
---
M src/org/openbravo/base/secureApp/VariablesSecureApp.java
M src/org/openbravo/scheduling/ProcessContext.java
M src/org/openbravo/service/db/DalBaseProcess.java
---
|
|
|
|
|
|
|
code reviewed and tested pi@1f536d3d1619 |
|