Bug 8084 - Names used for new items can cause unexpected overwrites in Web Admin
Summary: Names used for new items can cause unexpected overwrites in Web Admin
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Web Administration (show other bugs)
Version: 4.14.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
: 8132 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-02-06 14:07 CET by Frida Flodin
Modified: 2023-04-05 10:58 CEST (History)
2 users (show)

See Also:
Acceptance Criteria:


Attachments
Screenshot of the subcluster list (71.31 KB, image/png)
2023-02-06 14:07 CET, Frida Flodin
Details

Description Frida Flodin cendio 2023-02-06 14:07:48 CET
Created attachment 1105 [details]
Screenshot of the subcluster list

When adding a new subcluster using Web Admin, and there already is a subcluster named "NewSubcluster", both the old and new subcluster-details is shown. 

When saving the new subcluster, also named "NewSubcluster", it will overwrite the old one.

This does not happen with other names than the default "NewSubcluster".
Comment 1 Frida Flodin cendio 2023-02-07 16:48:14 CET
The page "Application Groups" has an issue on the same theme. 

If you have a group with the default name "New group" and then add a new group, you will not get a new group. You are presented with the details for the old "New group".

I looked at all other pages where you can add new entries, and they all have different ways to solve this.

+-----------------------+--------------------------------------+
| Page                  |                                      |
|                       |                                      |
+-----------------------+--------------------------------------+
| profilelist           | Every new entry gets unique name     |
|                       |"new_profile_1675783399"              |
+-----------------------+--------------------------------------+
| locations             | Error: There already exists a        |
|                       | location with the name "New location"|
+-----------------------+--------------------------------------+
| Terminals             | The hardware address must be unique, |
|                       |the name can be the same              |
+-----------------------+--------------------------------------+
| Applications (Manual) |Saved applications have unique id on  |
|                       | disk, the name can be the same       |
+-----------------------+--------------------------------------+
| Menu Structure        | Saved menus have unique id on disk,  |
|                       |the name can be the same              |
+-----------------------+--------------------------------------+
Comment 2 Frida Flodin cendio 2023-02-08 11:13:59 CET
(In reply to Frida from comment #0)
[...]
> 
> When saving the new subcluster, also named "NewSubcluster", it will
> overwrite the old one.
> 
[...]

Update: it actually doesn't matter what the second subcluster is named, it will always overwrite the existing subcluster named "NewSubcluster".
Comment 3 Samuel Mannehed cendio 2023-03-09 10:14:08 CET
Since bug 8075 we no longer get two forms. Only one popup is shown instead.

However, the issue remains that the existing item is overwritten despite the user pressing the "Add new.."-button.
Comment 4 Alexander Zeijlon cendio 2023-04-05 10:58:52 CEST
*** Bug 8132 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.