View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006127 | OXID eShop (all versions) | 2. ----- eShop backend (admin) ----- | public | 2015-04-20 18:44 | 2024-11-11 14:34 |
Reporter | vschmi | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | always |
Status | resolved | Resolution | won't fix | ||
Summary | 0006127: Concurrent users are overwriting values of each other | ||||
Description | When multiple users are using the admin area, they overwrite each other's values. OXID does not warn the user if the area in question (e.g. Product, Category etc) is opened by another user. | ||||
Steps To Reproduce | Example for editing articles: 1. Open the admin area in two browser windows 2. Open the same article in both admin windows 3. Change the title to "FOO" in one admin window, click save 4. Change the Short Description to "BAR" in the other admin window, click save Expected result: - The article has the title "FOO" and short description "BAR" Actual result: - The article has whatever title it had when the second admin window was opened, plus the short description "BAR" | ||||
Additional Information | There are several ways to solve that issue: 1. Show a "object is in use" Message whenever an article/category/etc object is opened in the browser 2. Only assign values to the objects which are actually changed in the browser 3. Output an error or warning whenever the fields have changed while editing the obect | ||||
Tags | No tags attached. | ||||
Theme | All | ||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
|
Here's a detailed article about the issue: http://jim-mcbeath.blogspot.de/2009/02/concurrent-editing-without-locking.html |
|
Another note: From my experience as developer, you really should get rid of ADODB soon. For example, Doctrine2 already supports optimistic locking: http://doctrine-orm.readthedocs.org/en/latest/reference/transactions-and-concurrency.html#optimistic-locking Yes, I know that refactoring the whole shop takes quite some effort and I'm afraid there's no short-term solution for that issue. |
|
This is a feature request |
|
This might be an issue in very big companies. We would need some kind of locking mechanism to counter this though. Not a trivial thing to do. |
|
We decided to not do this for the following reason: This is a thing that neither affects small customers nowadays because they would probably not have many people editing the same products at the same time, nor big customers, as those would have an ERP or PIM to edit the product data instead of the shop backoffice. |