Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0039276 | Openbravo ERP | A. Platform | public | 2018-09-12 15:01 | 2018-09-20 13:11 |
Reporter | alostale | ||||
Assigned To | alostale | ||||
Priority | normal | Severity | trivial | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | 3.0PR18Q4 | |||
Merge Request Status | |||||
Review Assigned To | caristu | ||||
OBNetwork customer | No | ||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0039276: ProcessSchedulingTest fails depending on system locale | ||||
Description | Depending on how system's locale is configured, ProcessSchedulingTest. This issue does not affect production code, only tests. As it trying to create an OBContext instance from a VariablesSecureApp manually initialized without setting a proper language, in this case it defaults to system. | ||||
Steps To Reproduce | * Execute LANG=C.UTF-8 ant run.test -Dtest=org.openbravo.test.scheduling.ProcessSchedulingTest -> ERROR run.test: [junit] 0 [main] INFO org.openbravo.base.weld.test.WeldBaseTest - Creating cdi archive... [junit] 396 [main] INFO org.openbravo.base.weld.test.WeldBaseTest - ... cdi archive created [junit] 5044 [main] INFO org.openbravo.dal.core.DalLayerInitializer - Initializing in-memory model... [junit] 5053 [main] INFO org.openbravo.base.model.ModelProvider - Building runtime model [junit] 10831 [main] INFO org.openbravo.dal.core.DalLayerInitializer - Model read in-memory, generating mapping... [junit] 24165 [main] INFO org.openbravo.base.provider.OBConfigFileProvider - Found provider config file /opt/OpenbravoERP/config/provider-config.xml [junit] 24315 [main] INFO org.openbravo.dal.core.DalLayerInitializer - Dal layer initialized [junit] 24411 [main] INFO org.openbravo.test.base.OBBaseTest - *** Starting test case: org.openbravo.test.scheduling.ProcessSchedulingTest.processesShouldInjectBeans [junit] 24502 [main] INFO org.openbravo.test.base.OBBaseTest - Creating custom DAL layer initialization... [junit] 24506 [main] INFO org.openbravo.dal.core.DalLayerInitializer - Initializing in-memory model... [junit] 24508 [main] INFO org.openbravo.base.model.ModelProvider - Building runtime model [junit] 26587 [main] INFO org.openbravo.dal.core.DalLayerInitializer - Model read in-memory, generating mapping... [junit] 35484 [main] INFO org.openbravo.base.provider.OBConfigFileProvider - Found provider config file /opt/OpenbravoERP/config/provider-config.xml [junit] 35493 [main] INFO org.openbravo.dal.core.DalLayerInitializer - Dal layer initialized [junit] 35986 [main] ERROR org.openbravo.scheduling.ProcessRunner - Process C559EE4A00F041C99D654C5BF412CD7B threw an Exception: No language found for code en_null [junit] java.lang.IllegalArgumentException: No language found for code en_null [junit] at org.openbravo.dal.core.OBContext.initialize(OBContext.java:989) [junit] at org.openbravo.dal.core.OBContext.setOBContext(OBContext.java:500) [junit] at org.openbravo.dal.core.OBContext.setOBContext(OBContext.java:476) [junit] at org.openbravo.service.db.DalBaseProcess.execute(DalBaseProcess.java:82) [junit] at org.openbravo.scheduling.ProcessRunner.execute(ProcessRunner.java:83) | ||||
Proposed Solution | In case VariablesSecureApp is initialized without setting a language, default it to en_US rather than relying on system settings. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2018-09-12 15:01 | alostale | New Issue | |||
2018-09-12 15:01 | alostale | Assigned To | => alostale | ||
2018-09-12 15:01 | alostale | OBNetwork customer | => No | ||
2018-09-12 15:01 | alostale | Modules | => Core | ||
2018-09-12 15:01 | alostale | Triggers an Emergency Pack | => No | ||
2018-09-12 15:02 | alostale | Review Assigned To | => caristu | ||
2018-09-12 15:03 | hgbot | Checkin | |||
2018-09-12 15:03 | hgbot | Note Added: 0106706 | |||
2018-09-12 15:03 | hgbot | Status | new => resolved | ||
2018-09-12 15:03 | hgbot | Resolution | open => fixed | ||
2018-09-12 15:03 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/bfd9f58405fa333a197ea65a2d518e3b0382a132 [^] | ||
2018-09-12 21:33 | hudsonbot | Checkin | |||
2018-09-12 21:33 | hudsonbot | Note Added: 0106736 | |||
2018-09-20 13:11 | caristu | Note Added: 0106878 | |||
2018-09-20 13:11 | caristu | Status | resolved => closed | ||
2018-09-20 13:11 | caristu | Fixed in Version | => 3.0PR18Q4 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|