Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0050160 | Openbravo ERP | A. Platform | public | 2022-09-05 15:55 | 2022-09-29 11:33 |
|
Reporter | XABIER_AGUADO | |
Assigned To | caristu | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | PR22Q4 | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0050160: Write access should not be done when flushing dirty changes of bobs saved in admin mode |
Description | When saving a new BaseOBObject or flushing changes done in BaseOBObjecs, a check for a write access is done in the OBInterceptor.
This causes that BaseOBObjects created correcly in admin mode, are not finally persisted in the database because the OBInterceptor may perform the write checks on dirty changes not in admin mode.
That check should be skipped BaseOBObjects saved in admin mode. |
Steps To Reproduce | 1) Create a new BaseOBObject in admin mode for an entity not writable for the current context user. Save it with OBDal.getInstance.save(bob) -> This works fine because we are inside an admin mode block.
2) Do an update in that BaseOBObject (this generates a dirty change) and execute OBDal.getInstance.flush() outside of the admin mode block. ERROR: The flush operation fails because the write access check is not passed. |
Proposed Solution | |
Additional Information | |
Tags | FASH |
Relationships | related to | feature request | 0048579 | | closed | caristu | Push API | related to | defect | 0053767 | | new | Triage Platform Base | During a synchronization data process it is not posible to update a column without a flush execution |
|
Attached Files | log.txt (5,871) 2022-09-05 15:55 https://issues.openbravo.com/file_download.php?file_id=17479&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2022-09-05 15:55 | XABIER_AGUADO | New Issue | |
2022-09-05 15:55 | XABIER_AGUADO | Assigned To | => Triage Platform Conn |
2022-09-05 15:55 | XABIER_AGUADO | File Added: log.txt | |
2022-09-05 15:55 | XABIER_AGUADO | Triggers an Emergency Pack | => No |
2022-09-05 15:55 | XABIER_AGUADO | Description Updated | bug_revision_view_page.php?rev_id=24737#r24737 |
2022-09-05 16:04 | XABIER_AGUADO | Tag Attached: FASH | |
2022-09-08 09:33 | hgbot | Note Added: 0140838 | |
2022-09-09 12:41 | caristu | Summary | Some Roles end up having Infinite Loading Screens when trying to do DOIs => Write access should not be done when flushing bobs created/edited in admin mode |
2022-09-09 12:41 | caristu | Description Updated | bug_revision_view_page.php?rev_id=24753#r24753 |
2022-09-09 12:41 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=24755#r24755 |
2022-09-09 12:41 | caristu | Project | Retail Modules => Openbravo ERP |
2022-09-09 12:41 | caristu | Modules | => Core |
2022-09-09 12:41 | caristu | Category | Retail API => A. Platform |
2022-09-09 12:41 | caristu | Relationship added | related to 0048579 |
2022-09-09 12:49 | caristu | Status | new => scheduled |
2022-09-27 13:52 | hgbot | Resolution | open => fixed |
2022-09-27 13:52 | hgbot | Status | scheduled => closed |
2022-09-27 13:52 | hgbot | Fixed in Version | => PR22Q4 |
2022-09-27 13:52 | hgbot | Note Added: 0141403 | |
2022-09-27 13:52 | hgbot | Note Added: 0141404 | |
2022-09-27 13:53 | caristu | Summary | Write access should not be done when flushing bobs created/edited in admin mode => Write access should not be done when flushing dirty changes of bobs saved in admin mode |
2022-09-27 13:53 | caristu | Description Updated | bug_revision_view_page.php?rev_id=24785#r24785 |
2022-09-27 13:53 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=24786#r24786 |
2022-09-29 11:33 | caristu | Assigned To | Triage Platform Conn => caristu |
2023-10-26 11:03 | njimenez | Relationship added | related to 0053767 |