irods-contrib / metalnx-web

Metalnx Web Application
https://metalnx.github.io/
BSD 3-Clause "New" or "Revised" License
36 stars 36 forks source link

Templates from different users can't have the same name, even if they are private #292

Open jefscheepers opened 2 years ago

jefscheepers commented 2 years ago

What did you try to do?

I made a private metadata template with the name 'testtemplate2' with one account (my admin account), and saved it.

image

Then I repeated this with another account (my normal account).

What did you expect to happen?

I expected I would be able to create this template and save it. After all:

What happened?

I cannot save the template:

image

Moreover, if I try to add an AVU (e.g. 'testattribute - testvalue'), their layout is malformed:

image

Note: the same goes for public templates, there it might be more logical to keep all names unique.

Tested on Metalnx version 2.4.0 with iRODS 4.2.10.