Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0041090Openbravo ERPA. Platformpublic2019-06-13 12:432019-06-17 19:39
alostale 
alostale 
normaltrivialhave not tried
closedfixed 
5
 
3.0PR19Q3 
caristu
Core
No
0041090: missing log context info when setting an incorrect org in OBContext
When trying to set in OBContext as default organization one that is not writable for the current role, the following warning message is logged:
  
   The user 100 does not have write access to its current organization repairing that

This message lacks important information:
  * Which role is using that user
  * Which organization was originally set as default
  * Which organization is finally set
  * From which piece of code this was invoked (to help to fix it)
Before fix for 0041088, run, for example, org.openbravo.test.webservice.WSReadTest.testPagedWhereClause test case.
  -> Check in the log appears that warning message
No tags attached.
related to defect 0041088 closed alostale incorrect organization warn message logged in some test cases 
blocks design defect 0036162 acknowledged Triage Platform Base clean up openbravo.log 
Issue History
2019-06-13 12:43alostaleNew Issue
2019-06-13 12:43alostaleAssigned To => platform
2019-06-13 12:43alostaleModules => Core
2019-06-13 12:43alostaleTriggers an Emergency Pack => No
2019-06-13 12:43alostaleRelationship addedrelated to 0041088
2019-06-13 12:43alostaleAssigned Toplatform => alostale
2019-06-13 13:37ngarciaIssue Monitored: ngarcia
2019-06-14 09:36ivancaceresIssue Monitored: ivancaceres
2019-06-17 08:43alostaleSummarymissing context info when setting an incorrect org in OBContext => missing log context info when setting an incorrect org in OBContext
2019-06-17 08:44alostaleRelationship addedblocks 0036162
2019-06-17 09:08hgbotCheckin
2019-06-17 09:08hgbotNote Added: 0112802
2019-06-17 09:08hgbotStatusnew => resolved
2019-06-17 09:08hgbotResolutionopen => fixed
2019-06-17 09:08hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/bc7561d6d981f467de80600c0edb0a9dada0572b [^]
2019-06-17 09:09alostaleReview Assigned To => caristu
2019-06-17 13:06hgbotCheckin
2019-06-17 13:06hgbotNote Added: 0112816
2019-06-17 13:32hudsonbotCheckin
2019-06-17 13:32hudsonbotNote Added: 0112818
2019-06-17 13:54caristuNote Added: 0112825
2019-06-17 13:54caristuStatusresolved => closed
2019-06-17 13:54caristuFixed in Version => 3.0PR19Q3
2019-06-17 19:39hudsonbotCheckin
2019-06-17 19:39hudsonbotNote Added: 0112842

Notes
(0112802)
hgbot   
2019-06-17 09:08   
Repository: erp/devel/pi
Changeset: bc7561d6d981f467de80600c0edb0a9dada0572b
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Jun 13 13:01:03 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/bc7561d6d981f467de80600c0edb0a9dada0572b [^]

fixed bug 41090: missing context info if setting an incorrect org in OBContext

  Including now in log:
   * Identifiers together with IDs, ie. to know username in addtion to their ID
   * Which role is using that user
   * Which organization was originally set as default
   * Which organization is finally set
   * From which piece of code this was invoked (to help to fix it)

---
M src/org/openbravo/dal/core/OBContext.java
---
(0112816)
hgbot   
2019-06-17 13:06   
Repository: erp/devel/pi
Changeset: 9a3d32c7e594e63770b651d6a0b13c556d146a1d
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Jun 17 13:06:35 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/9a3d32c7e594e63770b651d6a0b13c556d146a1d [^]

related to bug 41090: fixed warn message

---
M src/org/openbravo/dal/core/OBContext.java
---
(0112818)
hudsonbot   
2019-06-17 13:32   
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/0d93e33c5440 [^]
Maturity status: Test
(0112825)
caristu   
2019-06-17 13:54   
Revieved
(0112842)
hudsonbot   
2019-06-17 19:39   
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/2ad95dac1570 [^]
Maturity status: Test