Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0053767Openbravo ERPA. Platformpublic2023-10-26 11:032023-10-26 11:07
njimenez 
Triage Platform Base 
normalmajoralways
newopen 
5
 
 
Core
No
0053767: During a synchronization data process it is not posible to update a column without a flush execution
When a process that extends pos data synchronization process tries to update a column value in cross store from a record that the user role has not access, it is needed to make a flush to update the information.

Otherwise an error will be received while updating the record information as on OBInterceptor class will receive the obContext.isInCrossOrgAdministratorMode() value as false in its second execution.
1. Create a process that extends the POSDataSynchronizationProcess
2. Update a column from an already created record without executing a flush
3. Execute the process with a user that does not have access to the organization that created the record that is intended to be updated.

See how an error is received while updating information.
No tags attached.
related to defect 0050160 closed caristu Openbravo ERP Write access should not be done when flushing dirty changes of bobs saved in admin mode 
related to defect 0053710 closed ander_flores Retail Modules Allow to create a tax refund in another store 
Issue History
2023-10-26 11:03njimenezNew Issue
2023-10-26 11:03njimenezAssigned To => Triage Platform Base
2023-10-26 11:03njimenezModules => Core
2023-10-26 11:03njimenezTriggers an Emergency Pack => No
2023-10-26 11:03njimenezRelationship addedrelated to 0050160
2023-10-26 11:06njimenezNote Added: 0156317
2023-10-26 11:07njimenezRelationship addedrelated to 0053710
2023-10-26 11:11njimenezNote Edited: 0156317bug_revision_view_page.php?bugnote_id=0156317#r27040

Notes
(0156317)
njimenez   
2023-10-26 11:06   
(edited on: 2023-10-26 11:11)
This problem has been rised while developing the fix for the issue, 53710. We have a process that generated this error while trying to update the information with a user without access to the original organization.

See how it has been needed to add a flush to make the process work. Once this issue is fixed will be needed to update this process by removing this statement.

https://gitlab.com/openbravo/product/pmods/org.openbravo.events.taxfree/-/merge_requests/19/diffs#1e42dc14cb99816d829dea9fa1fa61ebaf7f8291_68_64 [^]