Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0025899
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2014-03-04 17:132014-03-07 05:25
ReporteregoitzView Statuspublic 
Assigned Toshankarb 
PriorityimmediateResolutionfixedFixed in Version3.0PR14Q2
StatusclosedFix in branchFixed in SCM revision7b3a543035a2
ProjectionnoneETAnoneTarget Version3.0PR14Q2
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToAugustoMauch
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0025899: When invoking the method Utility.getDocumentNo from a DalBaseProcess the client is not obtained

DescriptionWhen invoking the method Utility.getDocumentNo from a DalBaseProcess the client is not obtained
Steps To Reproduce-Create a new table (Prefix_Tablename) that includes all the mandatory columns and also name and documentno columns.
-Define it on application dictionary with name Prefix_Tablename
-Create a sequence with name DocumentNo_Prefix_Tablename. Do it with role different than system administrator.
-Create a new DalBaseProcess that creates a row on the new table using DAL
-fill only the name
-Define the DalBAseProcess as background process for client different than system
-When saving the documentno column should be filled automatically with the value of the sequence created.
*That does not work becuase the client is not obtained.
This happens because when trying to get the client the following method is used:
 String AD_Client_ID = getContext(con, vars, "AD_Client_ID", WindowNo);

ON getcontext method the client is obtained from a preference and if not fromthe httpsesson.
It is null for background processes.
Proposed SolutionAttached a posible solution
TagsNo tags attached.
Attached Filesdiff file icon client.diff [^] (842 bytes) 2014-03-04 17:13 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0064901)
hgbot (developer)
2014-03-06 11:25

Repository: erp/devel/pi
Changeset: 7b3a543035a290bed343af1cfe290312caf04664
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Thu Mar 06 13:22:06 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/7b3a543035a290bed343af1cfe290312caf04664 [^]

Fixes Issue 0025899: In Utility.getDocumentNo the client is not obtained in some cases

When invoking the method Utility.getDocumentNo from a DalBaseProcess the client is not obtained.
In case client is not present in context, it is fetched from vars.

---
M src/org/openbravo/erpCommon/utility/Utility.java
---
(0064908)
AugustoMauch (manager)
2014-03-06 12:09

Code reviewed and verified in pi@7b3a543035a2
(0064944)
hudsonbot (developer)
2014-03-07 05:25

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/9364dd72aca6 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2014-03-04 17:13 egoitz New Issue
2014-03-04 17:13 egoitz Assigned To => AugustoMauch
2014-03-04 17:13 egoitz File Added: client.diff
2014-03-04 17:13 egoitz Modules => Core
2014-03-04 17:13 egoitz Resolution time => 1394406000
2014-03-04 17:13 egoitz Triggers an Emergency Pack => No
2014-03-05 13:03 alostale Target Version => PR14Q2
2014-03-05 13:36 shankarb Assigned To AugustoMauch => shankarb
2014-03-06 08:01 shankarb Status new => scheduled
2014-03-06 08:01 shankarb fix_in_branch => pi
2014-03-06 11:22 shankarb Review Assigned To => AugustoMauch
2014-03-06 11:22 shankarb fix_in_branch pi =>
2014-03-06 11:22 shankarb Issue Monitored: AugustoMauch
2014-03-06 11:24 hgbot Checkin
2014-03-06 11:25 hgbot Note Added: 0064901
2014-03-06 11:25 hgbot Status scheduled => resolved
2014-03-06 11:25 hgbot Resolution open => fixed
2014-03-06 11:25 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7b3a543035a290bed343af1cfe290312caf04664 [^]
2014-03-06 12:09 AugustoMauch Note Added: 0064908
2014-03-06 12:09 AugustoMauch Status resolved => closed
2014-03-06 12:09 AugustoMauch Fixed in Version => PR14Q2
2014-03-07 05:25 hudsonbot Checkin
2014-03-07 05:25 hudsonbot Note Added: 0064944


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker