Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0007277 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | always | 2009-01-30 16:17 | 2022-12-29 20:57 | |||
Reporter | roklenardic | View Status | public | |||||
Assigned To | anthony_wolski | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | pi | |||
Status | closed | Fix in branch | pi | Fixed in SCM revision | 12695 | |||
Projection | none | ETA | none | Target Version | ||||
OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_10 | |||
OS Version | Ubuntu 8.10 | Database version | 8.3.5 | Ant version | 1.7.1 | |||
Product Version | pi | SCM revision | 11999 | |||||
Merge Request Status | open | |||||||
Review Assigned To | ||||||||
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 | 0007277: Background Scheduler Privileges | |||||||
Description | i've written a background process and noticed that the client of the OBContext that is present in the background process is taken from the default role of the user who entered the Process Request. Imagine this. 1 I login using Openbravo user that has the default role System Admin 2 i switch the role to the Openbravo Admin 3 i schedule my background process in Process Request, entering this line with the bigbazaar client for which i would like this process to be run. The process now gets scheduled but the problem is that the default role of the Openbravo user is Sys Admin that does not have access to Bigbazaar. this way, i can't process any bigbazaar records using DAL (see DalBaseProcess class). | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0013056) anthony_wolski (viewer) 2009-02-03 10:18 |
DalBaseProcess now sets the OBContext based on the credentials used when the process was scheduled: OBContext.setOBContext(userId, roleId, clientId, orgId); Added the following method to OBContext; public static void setOBContext(String userId, String roleId, String clientId, String orgId) { final OBContext context = OBProvider.getInstance().get(OBContext.class); setOBContext((OBContext) null); context.initialize(userId, roleId, clientId, orgId); setOBContext(context); } |
(0013172) anthony_wolski (viewer) 2009-02-05 11:06 |
See notes. |
(0145090) hgbot (developer) 2022-12-29 19:40 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt.retail/-/merge_requests/90 [^] |
(0145091) hgbot (developer) 2022-12-29 20:57 |
Merge request closed: https://gitlab.com/openbravo/product/pmods/com.practicsbs.saftpt.retail/-/merge_requests/90 [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2009-01-30 16:17 | roklenardic | New Issue | |
2009-01-30 16:17 | roklenardic | Assigned To | => anthony_wolski |
2009-01-30 16:17 | roklenardic | sf_bug_id | 0 => 2549370 |
2009-01-30 16:17 | roklenardic | OBNetwork customer | => No |
2009-01-30 16:17 | roklenardic | Regression testing | => No |
2009-02-02 06:13 | pjuvara | Priority | normal => urgent |
2009-02-02 09:16 | rafaroda | version | => trunk |
2009-02-02 12:51 | joan | Issue Monitored: joan | |
2009-02-03 10:18 | anthony_wolski | Note Added: 0013056 | |
2009-02-03 10:18 | anthony_wolski | Status | new => feedback |
2009-02-05 11:04 | anthony_wolski | Status | feedback => scheduled |
2009-02-05 11:04 | anthony_wolski | fix_in_branch | => trunk |
2009-02-05 11:06 | anthony_wolski | Status | scheduled => resolved |
2009-02-05 11:06 | anthony_wolski | Fixed in Version | => trunk |
2009-02-05 11:06 | anthony_wolski | svn_revision | => 12695 |
2009-02-05 11:06 | anthony_wolski | Resolution | open => fixed |
2009-02-05 11:06 | anthony_wolski | Note Added: 0013172 | |
2009-04-21 12:39 | psarobe | Status | resolved => closed |
2022-12-29 19:40 | hgbot | Merge Request Status | => open |
2022-12-29 19:40 | hgbot | Note Added: 0145090 | |
2022-12-29 20:57 | hgbot | Note Added: 0145091 |
Copyright © 2000 - 2009 MantisBT Group |